/kernel/linux/linux-6.6/drivers/tee/ |
H A D | tee_shm.c | 56 static void tee_shm_release(struct tee_device *teedev, struct tee_shm *shm) in tee_shm_release() argument 59 teedev->pool->ops->free(teedev->pool, shm); in tee_shm_release() 61 int rc = teedev->desc->ops->shm_unregister(shm->ctx, shm); in tee_shm_release() 64 dev_err(teedev->dev.parent, in tee_shm_release() 74 tee_device_put(teedev); in tee_shm_release() 80 struct tee_device *teedev = ctx->teedev; in shm_alloc_helper() local 85 if (!tee_device_get(teedev)) in shm_alloc_helper() 88 if (!teedev in shm_alloc_helper() 142 struct tee_device *teedev = ctx->teedev; tee_shm_alloc_user_buf() local 220 struct tee_device *teedev = ctx->teedev; register_shm_helper() local 308 struct tee_device *teedev = ctx->teedev; tee_shm_register_user_buf() local 463 struct tee_device *teedev; tee_shm_get_from_id() local 492 struct tee_device *teedev = shm->ctx->teedev; tee_shm_put() local [all...] |
H A D | tee_core.c | 46 struct tee_context *teedev_open(struct tee_device *teedev) in teedev_open() argument 51 if (!tee_device_get(teedev)) in teedev_open() 61 ctx->teedev = teedev; in teedev_open() 62 rc = teedev->desc->ops->open(ctx); in teedev_open() 69 tee_device_put(teedev); in teedev_open() 88 ctx->teedev->desc->ops->release(ctx); in teedev_ctx_release() 102 struct tee_device *teedev = ctx->teedev; in teedev_close_context() local 105 tee_device_put(teedev); in teedev_close_context() 857 struct tee_device *teedev = container_of(dev, struct tee_device, dev); tee_release_device() local 884 struct tee_device *teedev; tee_device_alloc() local 968 struct tee_device *teedev = container_of(dev, struct tee_device, dev); implementation_id_show() local 992 tee_device_register(struct tee_device *teedev) tee_device_register() argument 1017 tee_device_put(struct tee_device *teedev) tee_device_put() argument 1031 tee_device_get(struct tee_device *teedev) tee_device_get() argument 1051 tee_device_unregister(struct tee_device *teedev) tee_device_unregister() argument 1078 tee_get_drvdata(struct tee_device *teedev) tee_get_drvdata() argument 1093 struct tee_device *teedev = container_of(dev, struct tee_device, dev); match_dev() local [all...] |
H A D | tee_private.h | 52 bool tee_device_get(struct tee_device *teedev); 53 void tee_device_put(struct tee_device *teedev);
|
/kernel/linux/linux-5.10/drivers/tee/ |
H A D | tee_core.c | 46 struct tee_context *teedev_open(struct tee_device *teedev) in teedev_open() argument 51 if (!tee_device_get(teedev)) in teedev_open() 61 ctx->teedev = teedev; in teedev_open() 62 rc = teedev->desc->ops->open(ctx); in teedev_open() 69 tee_device_put(teedev); in teedev_open() 88 ctx->teedev->desc->ops->release(ctx); in teedev_ctx_release() 102 struct tee_device *teedev = ctx->teedev; in teedev_close_context() local 105 tee_device_put(teedev); in teedev_close_context() 862 struct tee_device *teedev = container_of(dev, struct tee_device, dev); tee_release_device() local 889 struct tee_device *teedev; tee_device_alloc() local 973 struct tee_device *teedev = container_of(dev, struct tee_device, dev); implementation_id_show() local 997 tee_device_register(struct tee_device *teedev) tee_device_register() argument 1022 tee_device_put(struct tee_device *teedev) tee_device_put() argument 1036 tee_device_get(struct tee_device *teedev) tee_device_get() argument 1056 tee_device_unregister(struct tee_device *teedev) tee_device_unregister() argument 1083 tee_get_drvdata(struct tee_device *teedev) tee_get_drvdata() argument 1098 struct tee_device *teedev = container_of(dev, struct tee_device, dev); match_dev() local [all...] |
H A D | tee_shm.c | 32 static void tee_shm_release(struct tee_device *teedev, struct tee_shm *shm) in tee_shm_release() argument 38 poolm = teedev->pool->dma_buf_mgr; in tee_shm_release() 40 poolm = teedev->pool->private_mgr; in tee_shm_release() 44 int rc = teedev->desc->ops->shm_unregister(shm->ctx, shm); in tee_shm_release() 47 dev_err(teedev->dev.parent, in tee_shm_release() 57 tee_device_put(teedev); in tee_shm_release() 62 struct tee_device *teedev = ctx->teedev; in tee_shm_alloc() local 69 dev_err(teedev->dev.parent, in tee_shm_alloc() 75 dev_err(teedev in tee_shm_alloc() 152 struct tee_device *teedev = ctx->teedev; tee_shm_register() local 412 struct tee_device *teedev; tee_shm_get_from_id() local 441 struct tee_device *teedev = shm->ctx->teedev; tee_shm_put() local [all...] |
H A D | tee_private.h | 65 bool tee_device_get(struct tee_device *teedev); 66 void tee_device_put(struct tee_device *teedev);
|
/kernel/linux/linux-5.10/drivers/tee/optee/ |
H A D | core.c | 198 static void optee_get_version(struct tee_device *teedev, in optee_get_version() argument 206 struct optee *optee = tee_get_drvdata(teedev); in optee_get_version() 223 struct tee_device *teedev = ctx->teedev; in optee_open() local 224 struct optee *optee = tee_get_drvdata(teedev); in optee_open() 230 if (teedev == optee->supp_teedev) { in optee_open() 270 struct tee_device *teedev = ctx->teedev; in optee_release() local 271 struct optee *optee = tee_get_drvdata(teedev); in optee_release() 314 if (teedev in optee_release() 636 struct tee_device *teedev; optee_probe() local [all...] |
H A D | supp.c | 80 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_supp_thrd_req() 232 struct tee_device *teedev = ctx->teedev; in optee_supp_recv() local 233 struct optee *optee = tee_get_drvdata(teedev); in optee_supp_recv() 341 struct tee_device *teedev = ctx->teedev; in optee_supp_send() local 342 struct optee *optee = tee_get_drvdata(teedev); in optee_supp_send()
|
H A D | rpc.c | 267 struct optee *optee = tee_get_drvdata(ctx->teedev); in cmd_alloc_suppl() 499 struct tee_device *teedev = ctx->teedev; in optee_handle_rpc() local 500 struct optee *optee = tee_get_drvdata(teedev); in optee_handle_rpc()
|
H A D | optee_private.h | 72 * @teedev: client device 89 struct tee_device *teedev; member
|
H A D | call.c | 128 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_do_call_with_arg()
|
/kernel/linux/linux-6.6/drivers/tee/optee/ |
H A D | ffa_abi.c | 273 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_ffa_shm_register() 316 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_ffa_shm_unregister() 345 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_ffa_shm_unregister_supp() 533 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_ffa_yielding_call() 716 static void optee_ffa_get_version(struct tee_device *teedev, in optee_ffa_get_version() argument 792 struct tee_device *teedev; in optee_ffa_probe() local 825 teedev = tee_device_alloc(&optee_ffa_clnt_desc, NULL, optee->pool, in optee_ffa_probe() 827 if (IS_ERR(teedev)) { in optee_ffa_probe() 828 rc = PTR_ERR(teedev); in optee_ffa_probe() 831 optee->teedev in optee_ffa_probe() [all...] |
H A D | core.c | 90 struct tee_device *teedev = ctx->teedev; in optee_open() local 91 struct optee *optee = tee_get_drvdata(teedev); in optee_open() 97 if (teedev == optee->supp_teedev) { in optee_open() 158 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_release_supp() 181 tee_device_unregister(optee->teedev); in optee_remove_common()
|
H A D | supp.c | 80 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_supp_thrd_req() 232 struct tee_device *teedev = ctx->teedev; in optee_supp_recv() local 233 struct optee *optee = tee_get_drvdata(teedev); in optee_supp_recv() 341 struct tee_device *teedev = ctx->teedev; in optee_supp_send() local 342 struct optee *optee = tee_get_drvdata(teedev); in optee_supp_send()
|
H A D | smc_abi.c | 456 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_shm_register() 522 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_shm_unregister() 819 struct tee_device *teedev = ctx->teedev; in optee_handle_rpc() local 820 struct optee *optee = tee_get_drvdata(teedev); in optee_handle_rpc() 890 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_smc_do_call_with_arg() 1182 static void optee_get_version(struct tee_device *teedev, in optee_get_version() argument 1190 struct optee *optee = tee_get_drvdata(teedev); in optee_get_version() 1201 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_smc_open() 1612 struct tee_device *teedev; in optee_probe() local [all...] |
H A D | call.c | 187 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_get_msg_arg() 261 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_free_msg_arg() 284 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_open_session() 365 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_close_session_helper() 405 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_invoke_func() 455 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_cancel_req()
|
H A D | rpc.c | 39 struct optee *optee = tee_get_drvdata(ctx->teedev); in handle_rpc_func_cmd_i2c_transfer() 214 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_rpc_cmd_alloc_suppl()
|
H A D | optee_private.h | 169 * @teedev: client device 186 struct tee_device *teedev; member
|
/kernel/linux/linux-5.10/drivers/tee/amdtee/ |
H A D | core.c | 24 static void amdtee_get_version(struct tee_device *teedev, in amdtee_get_version() argument 197 n = request_firmware(&fw, fw_name, &ctx->teedev->dev); in copy_ta_binary() 455 struct tee_device *teedev; in amdtee_driver_init() local 483 teedev = tee_device_alloc(&amdtee_desc, NULL, pool, amdtee); in amdtee_driver_init() 484 if (IS_ERR(teedev)) { in amdtee_driver_init() 485 rc = PTR_ERR(teedev); in amdtee_driver_init() 488 amdtee->teedev = teedev; in amdtee_driver_init() 490 rc = tee_device_register(amdtee->teedev); in amdtee_driver_init() 502 tee_device_unregister(amdtee->teedev); in amdtee_driver_init() [all...] |
H A D | amdtee_private.h | 37 * @teedev: client device 41 struct tee_device *teedev; member
|
/kernel/linux/linux-6.6/drivers/tee/amdtee/ |
H A D | core.c | 24 static void amdtee_get_version(struct tee_device *teedev, in amdtee_get_version() argument 197 n = request_firmware(&fw, fw_name, &ctx->teedev->dev); in copy_ta_binary() 455 struct tee_device *teedev; in amdtee_driver_init() local 483 teedev = tee_device_alloc(&amdtee_desc, NULL, pool, amdtee); in amdtee_driver_init() 484 if (IS_ERR(teedev)) { in amdtee_driver_init() 485 rc = PTR_ERR(teedev); in amdtee_driver_init() 488 amdtee->teedev = teedev; in amdtee_driver_init() 490 rc = tee_device_register(amdtee->teedev); in amdtee_driver_init() 502 tee_device_unregister(amdtee->teedev); in amdtee_driver_init() [all...] |
H A D | amdtee_private.h | 37 * @teedev: client device 41 struct tee_device *teedev; member
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | tee_drv.h | 39 * @teedev: pointer to this drivers struct tee_device 55 struct tee_device *teedev; member 98 void (*get_version)(struct tee_device *teedev, 154 * @teedev: Device to register 156 * tee_device_unregister() need to be called to remove the @teedev if 161 int tee_device_register(struct tee_device *teedev); 165 * @teedev: Device to unregister 167 * This function should be called to remove the @teedev even if 169 * @teedev is NULL. 171 void tee_device_unregister(struct tee_device *teedev); [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | tee_drv.h | 36 * @teedev: pointer to this drivers struct tee_device 52 struct tee_device *teedev; member 95 void (*get_version)(struct tee_device *teedev, 151 * @teedev: Device to register 153 * tee_device_unregister() need to be called to remove the @teedev if 158 int tee_device_register(struct tee_device *teedev); 162 * @teedev: Device to unregister 164 * This function should be called to remove the @teedev even if 166 * @teedev is NULL. 168 void tee_device_unregister(struct tee_device *teedev); [all...] |