/linux-6.12.1/drivers/tee/ |
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_shm.c | 46 static void tee_shm_release(struct tee_device *teedev, struct tee_shm *shm) in tee_shm_release() argument 49 teedev->pool->ops->free(teedev->pool, shm); in tee_shm_release() 51 int rc = teedev->desc->ops->shm_unregister(shm->ctx, shm); in tee_shm_release() 54 dev_err(teedev->dev.parent, in tee_shm_release() 64 tee_device_put(teedev); in tee_shm_release() 70 struct tee_device *teedev = ctx->teedev; in shm_alloc_helper() local 75 if (!tee_device_get(teedev)) in shm_alloc_helper() 78 if (!teedev->pool) { in shm_alloc_helper() 102 rc = teedev->pool->ops->alloc(teedev->pool, shm, size, align); in shm_alloc_helper() 113 tee_device_put(teedev); in shm_alloc_helper() [all …]
|
D | tee_private.h | 17 bool tee_device_get(struct tee_device *teedev); 18 void tee_device_put(struct tee_device *teedev);
|
/linux-6.12.1/drivers/tee/optee/ |
D | core.c | 88 tee_device_set_dev_groups(optee->teedev, optee_dev_groups); in optee_set_dev_group() 95 struct tee_device *teedev = ctx->teedev; in optee_open() local 96 struct optee *optee = tee_get_drvdata(teedev); in optee_open() 102 if (teedev == optee->supp_teedev) { in optee_open() 159 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_release_supp() 182 tee_device_unregister(optee->teedev); in optee_remove_common()
|
D | ffa_abi.c | 274 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_ffa_shm_register() 317 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_ffa_shm_unregister() 346 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_ffa_shm_unregister_supp() 535 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_ffa_yielding_call() 756 static void optee_ffa_get_version(struct tee_device *teedev, in optee_ffa_get_version() argument 878 struct tee_device *teedev; in optee_ffa_probe() local 917 teedev = tee_device_alloc(&optee_ffa_clnt_desc, NULL, optee->pool, in optee_ffa_probe() 919 if (IS_ERR(teedev)) { in optee_ffa_probe() 920 rc = PTR_ERR(teedev); in optee_ffa_probe() 923 optee->teedev = teedev; in optee_ffa_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 | smc_abi.c | 457 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_shm_register() 523 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_shm_unregister() 817 struct tee_device *teedev = ctx->teedev; in optee_handle_rpc() local 818 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() 1154 static void optee_get_version(struct tee_device *teedev, in optee_get_version() argument 1162 struct optee *optee = tee_get_drvdata(teedev); in optee_get_version() 1173 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_smc_open() 1594 struct tee_device *teedev; in optee_probe() local 1693 teedev = tee_device_alloc(&optee_clnt_desc, NULL, pool, optee); in optee_probe() [all …]
|
D | call.c | 269 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_get_msg_arg() 343 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_free_msg_arg() 366 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_open_session() 448 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_system_session() 470 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_close_session_helper() 515 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_invoke_func() 568 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_cancel_req() 646 struct optee *optee = tee_get_drvdata(ctx->teedev); in simple_call_with_arg()
|
D | rpc.c | 40 struct optee *optee = tee_get_drvdata(ctx->teedev); in handle_rpc_func_cmd_i2c_transfer() 221 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_rpc_cmd_alloc_suppl()
|
D | optee_private.h | 219 struct tee_device *teedev; member
|
/linux-6.12.1/drivers/tee/tstee/ |
D | core.c | 44 static void tstee_get_version(struct tee_device *teedev, in tstee_get_version() argument 47 struct tstee *tstee = tee_get_drvdata(teedev); in tstee_get_version() 97 struct tstee *tstee = tee_get_drvdata(ctx->teedev); in tstee_open_session() 163 struct tstee *tstee = tee_get_drvdata(ctx->teedev); in tstee_invoke_func() 246 struct tstee *tstee = tee_get_drvdata(ctx->teedev); in tstee_shm_register() 309 struct tstee *tstee = tee_get_drvdata(ctx->teedev); in tstee_shm_unregister() 430 tstee->teedev = tee_device_alloc(&tstee_desc, NULL, tstee->pool, tstee); in tstee_probe() 431 if (IS_ERR(tstee->teedev)) { in tstee_probe() 432 rc = PTR_ERR(tstee->teedev); in tstee_probe() 433 tstee->teedev = NULL; in tstee_probe() [all …]
|
D | tstee_private.h | 80 struct tee_device *teedev; member
|
/linux-6.12.1/include/linux/ |
D | tee_core.h | 81 void (*get_version)(struct tee_device *teedev, 145 int tee_device_register(struct tee_device *teedev); 155 void tee_device_unregister(struct tee_device *teedev); 166 void tee_device_set_dev_groups(struct tee_device *teedev, 236 void *tee_get_drvdata(struct tee_device *teedev); 310 struct tee_context *teedev_open(struct tee_device *teedev);
|
D | tee_drv.h | 40 struct tee_device *teedev; member
|
/linux-6.12.1/drivers/tee/amdtee/ |
D | core.c | 23 static void amdtee_get_version(struct tee_device *teedev, in amdtee_get_version() argument 196 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
|