/linux-6.1.9/drivers/tee/ |
D | tee_shm.c | 73 static void tee_shm_release(struct tee_device *teedev, struct tee_shm *shm) in tee_shm_release() argument 76 teedev->pool->ops->free(teedev->pool, shm); in tee_shm_release() 78 int rc = teedev->desc->ops->shm_unregister(shm->ctx, shm); in tee_shm_release() 81 dev_err(teedev->dev.parent, in tee_shm_release() 91 tee_device_put(teedev); in tee_shm_release() 97 struct tee_device *teedev = ctx->teedev; in shm_alloc_helper() local 102 if (!tee_device_get(teedev)) in shm_alloc_helper() 105 if (!teedev->pool) { in shm_alloc_helper() 129 rc = teedev->pool->ops->alloc(teedev->pool, shm, size, align); in shm_alloc_helper() 140 tee_device_put(teedev); in shm_alloc_helper() [all …]
|
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() 275 ctx->teedev->desc->ops->get_version(ctx->teedev, &vers); in tee_ioctl_version() 277 if (ctx->teedev->desc->flags & TEE_DESC_PRIVILEGED) in tee_ioctl_version() [all …]
|
D | tee_private.h | 54 bool tee_device_get(struct tee_device *teedev); 55 void tee_device_put(struct tee_device *teedev);
|
/linux-6.1.9/drivers/tee/optee/ |
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 = teedev; in optee_ffa_probe() [all …]
|
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()
|
D | smc_abi.c | 436 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_shm_register() 502 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_shm_unregister() 799 struct tee_device *teedev = ctx->teedev; in optee_handle_rpc() local 800 struct optee *optee = tee_get_drvdata(teedev); in optee_handle_rpc() 870 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_smc_do_call_with_arg() 1063 static void optee_get_version(struct tee_device *teedev, in optee_get_version() argument 1071 struct optee *optee = tee_get_drvdata(teedev); in optee_get_version() 1082 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_smc_open() 1364 struct tee_device *teedev; in optee_probe() local 1454 teedev = tee_device_alloc(&optee_clnt_desc, NULL, pool, optee); in optee_probe() [all …]
|
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()
|
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()
|
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()
|
D | optee_private.h | 162 struct tee_device *teedev; member
|
/linux-6.1.9/drivers/tee/amdtee/ |
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() 454 struct tee_device *teedev; in amdtee_driver_init() local 482 teedev = tee_device_alloc(&amdtee_desc, NULL, pool, amdtee); in amdtee_driver_init() 483 if (IS_ERR(teedev)) { in amdtee_driver_init() 484 rc = PTR_ERR(teedev); in amdtee_driver_init() 487 amdtee->teedev = teedev; in amdtee_driver_init() 489 rc = tee_device_register(amdtee->teedev); in amdtee_driver_init() 501 tee_device_unregister(amdtee->teedev); in amdtee_driver_init() 527 tee_device_unregister(amdtee->teedev); in amdtee_driver_exit()
|
D | amdtee_private.h | 41 struct tee_device *teedev; member
|
/linux-6.1.9/include/linux/ |
D | tee_drv.h | 52 struct tee_device *teedev; member 95 void (*get_version)(struct tee_device *teedev, 158 int tee_device_register(struct tee_device *teedev); 168 void tee_device_unregister(struct tee_device *teedev); 271 void *tee_get_drvdata(struct tee_device *teedev); 502 struct tee_context *teedev_open(struct tee_device *teedev);
|