Searched refs:teedev (Results 1 – 9 of 9) sorted by relevance
| /Linux-v5.4/drivers/tee/ |
| D | tee_core.c | 31 static struct tee_context *teedev_open(struct tee_device *teedev) in teedev_open() argument 36 if (!tee_device_get(teedev)) in teedev_open() 46 ctx->teedev = teedev; in teedev_open() 48 rc = teedev->desc->ops->open(ctx); in teedev_open() 55 tee_device_put(teedev); in teedev_open() 73 ctx->teedev->desc->ops->release(ctx); in teedev_ctx_release() 87 tee_device_put(ctx->teedev); in teedev_close_context() 119 ctx->teedev->desc->ops->get_version(ctx->teedev, &vers); in tee_ioctl_version() 121 if (ctx->teedev->desc->flags & TEE_DESC_PRIVILEGED) in tee_ioctl_version() 309 if (!ctx->teedev->desc->ops->open_session) in tee_ioctl_open_session() [all …]
|
| D | tee_shm.c | 16 struct tee_device *teedev = shm->teedev; in tee_shm_release() local 18 mutex_lock(&teedev->mutex); in tee_shm_release() 19 idr_remove(&teedev->idr, shm->id); in tee_shm_release() 22 mutex_unlock(&teedev->mutex); in tee_shm_release() 28 poolm = teedev->pool->dma_buf_mgr; in tee_shm_release() 30 poolm = teedev->pool->private_mgr; in tee_shm_release() 35 int rc = teedev->desc->ops->shm_unregister(shm->ctx, shm); in tee_shm_release() 38 dev_err(teedev->dev.parent, in tee_shm_release() 52 tee_device_put(teedev); in tee_shm_release() 101 struct tee_device *teedev, in __tee_shm_alloc() argument [all …]
|
| D | tee_private.h | 64 bool tee_device_get(struct tee_device *teedev); 65 void tee_device_put(struct tee_device *teedev);
|
| /Linux-v5.4/drivers/tee/optee/ |
| D | core.c | 206 static void optee_get_version(struct tee_device *teedev, in optee_get_version() argument 214 struct optee *optee = tee_get_drvdata(teedev); in optee_get_version() 224 struct tee_device *teedev = ctx->teedev; in optee_open() local 225 struct optee *optee = tee_get_drvdata(teedev); in optee_open() 231 if (teedev == optee->supp_teedev) { in optee_open() 256 struct tee_device *teedev = ctx->teedev; in optee_release() local 257 struct optee *optee = tee_get_drvdata(teedev); in optee_release() 299 if (teedev == optee->supp_teedev) in optee_release() 563 struct tee_device *teedev; in optee_probe() local 612 teedev = tee_device_alloc(&optee_desc, NULL, pool, optee); in optee_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 | rpc.c | 174 struct optee *optee = tee_get_drvdata(ctx->teedev); in cmd_alloc_suppl() 401 struct tee_device *teedev = ctx->teedev; in optee_handle_rpc() local 402 struct optee *optee = tee_get_drvdata(teedev); in optee_handle_rpc()
|
| D | optee_private.h | 84 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.4/include/linux/ |
| D | tee_drv.h | 51 struct tee_device *teedev; member 94 void (*get_version)(struct tee_device *teedev, 157 int tee_device_register(struct tee_device *teedev); 167 void tee_device_unregister(struct tee_device *teedev); 188 struct tee_device *teedev; member 303 void *tee_get_drvdata(struct tee_device *teedev); 331 struct tee_shm *tee_shm_priv_alloc(struct tee_device *teedev, size_t size);
|