Searched refs:teedev (Results 1 – 11 of 11) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/tee/ |
| 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_shm.c | 32 static void tee_shm_release(struct tee_device *teedev, struct tee_shm *shm) in tee_shm_release() argument 38 poolm = teedev->pool->dma_buf_mgr; in tee_shm_release() 40 poolm = teedev->pool->private_mgr; in tee_shm_release() 44 int rc = teedev->desc->ops->shm_unregister(shm->ctx, shm); in tee_shm_release() 47 dev_err(teedev->dev.parent, in tee_shm_release() 57 tee_device_put(teedev); in tee_shm_release() 62 struct tee_device *teedev = ctx->teedev; in tee_shm_alloc() local 69 dev_err(teedev->dev.parent, in tee_shm_alloc() 75 dev_err(teedev->dev.parent, "invalid shm flags 0x%x", flags); in tee_shm_alloc() 79 if (!tee_device_get(teedev)) in tee_shm_alloc() [all …]
|
| H A D | tee_private.h | 65 bool tee_device_get(struct tee_device *teedev); 66 void tee_device_put(struct tee_device *teedev);
|
| /OK3568_Linux_fs/kernel/drivers/tee/optee/ |
| H A 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() 604 tee_device_unregister(optee->teedev); in optee_remove() 636 struct tee_device *teedev; in optee_probe() local [all …]
|
| H A D | supp.c | 80 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_supp_thrd_req() 252 struct tee_device *teedev = ctx->teedev; in optee_supp_recv() local 253 struct optee *optee = tee_get_drvdata(teedev); in optee_supp_recv() 361 struct tee_device *teedev = ctx->teedev; in optee_supp_send() local 362 struct optee *optee = tee_get_drvdata(teedev); in optee_supp_send()
|
| H A D | rpc.c | 267 struct optee *optee = tee_get_drvdata(ctx->teedev); in cmd_alloc_suppl() 499 struct tee_device *teedev = ctx->teedev; in optee_handle_rpc() local 500 struct optee *optee = tee_get_drvdata(teedev); in optee_handle_rpc()
|
| H A D | optee_private.h | 89 struct tee_device *teedev; member
|
| H A D | call.c | 128 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_do_call_with_arg()
|
| /OK3568_Linux_fs/kernel/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() 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()
|
| H A D | amdtee_private.h | 41 struct tee_device *teedev; member
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A 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); 591 struct tee_context *teedev_open(struct tee_device *teedev);
|