Searched refs:teedev (Results 1 – 11 of 11) sorted by relevance
/kernel/linux/linux-5.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 struct tee_device *teedev = ctx->teedev; in teedev_close_context() local 104 tee_device_put(teedev); in teedev_close_context() 273 ctx->teedev->desc->ops->get_version(ctx->teedev, &vers); in tee_ioctl_version() 275 if (ctx->teedev->desc->flags & TEE_DESC_PRIVILEGED) in tee_ioctl_version() [all …]
|
D | tee_shm.c | 31 static void tee_shm_release(struct tee_device *teedev, struct tee_shm *shm) in tee_shm_release() argument 37 poolm = teedev->pool->dma_buf_mgr; in tee_shm_release() 39 poolm = teedev->pool->private_mgr; in tee_shm_release() 43 int rc = teedev->desc->ops->shm_unregister(shm->ctx, shm); in tee_shm_release() 46 dev_err(teedev->dev.parent, in tee_shm_release() 56 tee_device_put(teedev); in tee_shm_release() 61 struct tee_device *teedev = ctx->teedev; in tee_shm_alloc() local 68 dev_err(teedev->dev.parent, in tee_shm_alloc() 74 dev_err(teedev->dev.parent, "invalid shm flags 0x%x", flags); in tee_shm_alloc() 78 if (!tee_device_get(teedev)) in tee_shm_alloc() [all …]
|
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/ |
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 == optee->supp_teedev) { in optee_release() 603 tee_device_unregister(optee->teedev); in optee_remove() 635 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 | 267 struct optee *optee = tee_get_drvdata(ctx->teedev); in cmd_alloc_suppl() 497 struct tee_device *teedev = ctx->teedev; in optee_handle_rpc() local 498 struct optee *optee = tee_get_drvdata(teedev); in optee_handle_rpc()
|
D | optee_private.h | 88 struct tee_device *teedev; member
|
D | call.c | 128 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_do_call_with_arg()
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/include/linux/ |
D | tee_drv.h | 55 struct tee_device *teedev; member 98 void (*get_version)(struct tee_device *teedev, 161 int tee_device_register(struct tee_device *teedev); 171 void tee_device_unregister(struct tee_device *teedev); 319 void *tee_get_drvdata(struct tee_device *teedev);
|