/openbmc/linux/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->pool) { in shm_alloc_helper() 112 rc = teedev->pool->ops->alloc(teedev->pool, shm, size, align); in shm_alloc_helper() 123 tee_device_put(teedev); in shm_alloc_helper() [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() 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 …]
|
H A D | tee_private.h | 52 bool tee_device_get(struct tee_device *teedev); 53 void tee_device_put(struct tee_device *teedev);
|
/openbmc/linux/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() 722 static void optee_ffa_get_version(struct tee_device *teedev, in optee_ffa_get_version() argument 798 struct tee_device *teedev; in optee_ffa_probe() local 831 teedev = tee_device_alloc(&optee_ffa_clnt_desc, NULL, optee->pool, in optee_ffa_probe() 833 if (IS_ERR(teedev)) { in optee_ffa_probe() 834 rc = PTR_ERR(teedev); in optee_ffa_probe() 837 optee->teedev = 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() 213 struct tee_device *teedev = ctx->teedev; in optee_supp_recv() local 214 struct optee *optee = tee_get_drvdata(teedev); in optee_supp_recv() 322 struct tee_device *teedev = ctx->teedev; in optee_supp_send() local 323 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 1706 teedev = tee_device_alloc(&optee_clnt_desc, NULL, pool, optee); in optee_probe() [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 | 186 struct tee_device *teedev; member
|
/openbmc/linux/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() 528 tee_device_unregister(amdtee->teedev); in amdtee_driver_exit()
|
H A D | amdtee_private.h | 41 struct tee_device *teedev; member
|
/openbmc/linux/include/linux/ |
H A 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);
|