Searched refs:teedev (Results 1 – 11 of 11) sorted by relevance
/Linux-v5.10/drivers/tee/ |
D | tee_core.c | 46 static 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() 87 ctx->teedev->desc->ops->release(ctx); in teedev_ctx_release() 101 tee_device_put(ctx->teedev); in teedev_close_context() 271 ctx->teedev->desc->ops->get_version(ctx->teedev, &vers); in tee_ioctl_version() 273 if (ctx->teedev->desc->flags & TEE_DESC_PRIVILEGED) in tee_ioctl_version() 474 if (!ctx->teedev->desc->ops->open_session) in tee_ioctl_open_session() [all …]
|
D | tee_shm.c | 33 struct tee_device *teedev = shm->ctx->teedev; in tee_shm_release() local 36 mutex_lock(&teedev->mutex); in tee_shm_release() 37 idr_remove(&teedev->idr, shm->id); in tee_shm_release() 38 mutex_unlock(&teedev->mutex); in tee_shm_release() 45 poolm = teedev->pool->dma_buf_mgr; in tee_shm_release() 47 poolm = teedev->pool->private_mgr; 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() 108 struct tee_device *teedev = ctx->teedev; in tee_shm_alloc() local [all …]
|
D | tee_private.h | 65 bool tee_device_get(struct tee_device *teedev); 66 void tee_device_put(struct tee_device *teedev);
|
/Linux-v5.10/drivers/tee/optee/ |
D | core.c | 207 static void optee_get_version(struct tee_device *teedev, in optee_get_version() argument 215 struct optee *optee = tee_get_drvdata(teedev); in optee_get_version() 232 struct tee_device *teedev = ctx->teedev; in optee_open() local 233 struct optee *optee = tee_get_drvdata(teedev); in optee_open() 239 if (teedev == optee->supp_teedev) { in optee_open() 279 struct tee_device *teedev = ctx->teedev; in optee_release() local 280 struct optee *optee = tee_get_drvdata(teedev); in optee_release() 322 if (teedev == optee->supp_teedev) { in optee_release() 601 tee_device_unregister(optee->teedev); in optee_remove() 621 struct tee_device *teedev; in optee_probe() local [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 | rpc.c | 266 struct optee *optee = tee_get_drvdata(ctx->teedev); in cmd_alloc_suppl() 496 struct tee_device *teedev = ctx->teedev; in optee_handle_rpc() local 497 struct optee *optee = tee_get_drvdata(teedev); in optee_handle_rpc()
|
D | optee_private.h | 88 struct tee_device *teedev; member
|
D | call.c | 127 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_do_call_with_arg()
|
/Linux-v5.10/drivers/tee/amdtee/ |
D | core.c | 24 static void amdtee_get_version(struct tee_device *teedev, in amdtee_get_version() argument 198 n = request_firmware(&fw, fw_name, &ctx->teedev->dev); in copy_ta_binary() 452 struct tee_device *teedev; in amdtee_driver_init() local 480 teedev = tee_device_alloc(&amdtee_desc, NULL, pool, amdtee); in amdtee_driver_init() 481 if (IS_ERR(teedev)) { in amdtee_driver_init() 482 rc = PTR_ERR(teedev); in amdtee_driver_init() 485 amdtee->teedev = teedev; in amdtee_driver_init() 487 rc = tee_device_register(amdtee->teedev); in amdtee_driver_init() 499 tee_device_unregister(amdtee->teedev); in amdtee_driver_init() 525 tee_device_unregister(amdtee->teedev); in amdtee_driver_exit()
|
D | amdtee_private.h | 40 struct tee_device *teedev; member
|
/Linux-v5.10/include/linux/ |
D | tee_drv.h | 54 struct tee_device *teedev; member 97 void (*get_version)(struct tee_device *teedev, 160 int tee_device_register(struct tee_device *teedev); 170 void tee_device_unregister(struct tee_device *teedev); 318 void *tee_get_drvdata(struct tee_device *teedev);
|