| /linux/drivers/tee/ |
| H A D | tee_shm.c | 36 static void tee_shm_release(struct tee_device *teedev, struct tee_shm *shm) in tee_shm_release() argument 46 dma_free_pages(&teedev->dev, shm->size, dma_mem->page, in tee_shm_release() 56 teedev->pool->ops->free(teedev->pool, shm); in tee_shm_release() 58 int rc = teedev->desc->ops->shm_unregister(shm->ctx, shm); in tee_shm_release() 61 dev_err(teedev->dev.parent, in tee_shm_release() 71 tee_device_put(teedev); in tee_shm_release() 77 struct tee_device *teedev = ctx->teedev; in shm_alloc_helper() local 82 if (!tee_device_get(teedev)) in shm_alloc_helper() 85 if (!teedev->pool) { in shm_alloc_helper() 109 rc = teedev->pool->ops->alloc(teedev->pool, shm, size, align); 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() 89 ctx->teedev->desc->ops->release(ctx); in teedev_ctx_release() 104 struct tee_device *teedev = ctx->teedev; in teedev_close_context() local 106 if (teedev->desc->ops->close_context) in teedev_close_context() 107 teedev->desc->ops->close_context(ctx); in teedev_close_context() 110 tee_device_put(teedev); in teedev_close_context() [all …]
|
| H A D | tee_heap.c | 22 struct tee_device *teedev; member 54 tee_device_put(h->teedev); in tee_heap_release() 56 h->teedev = NULL; in tee_heap_release() 174 struct tee_device *teedev = NULL; in tee_dma_heap_alloc() local 181 if (h->teedev) { in tee_dma_heap_alloc() 182 teedev = h->teedev; in tee_dma_heap_alloc() 188 if (!teedev) in tee_dma_heap_alloc() 244 static int alloc_dma_heap(struct tee_device *teedev, enum tee_dma_heap_id id, in alloc_dma_heap() argument 268 h->teedev = teedev; in alloc_dma_heap() 285 int tee_device_register_dma_heap(struct tee_device *teedev, in tee_device_register_dma_heap() argument [all …]
|
| /linux/drivers/tee/optee/ |
| H A D | core.c | 63 return dma_coerce_mask_and_coherent(&optee->teedev->dev, mask); in optee_set_dma_mask() 66 int optee_get_revision(struct tee_device *teedev, char *buf, size_t len) in optee_get_revision() argument 68 struct optee *optee = tee_get_drvdata(teedev); in optee_get_revision() 118 tee_device_set_dev_groups(optee->teedev, optee_dev_groups); in optee_set_dev_group() 125 struct tee_device *teedev = ctx->teedev; in optee_open() local 126 struct optee *optee = tee_get_drvdata(teedev); in optee_open() 132 if (teedev == optee->supp_teedev) { in optee_open() 189 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_release_supp() 212 tee_device_unregister(optee->teedev); in optee_remove_common()
|
| H A D | ffa_abi.c | 274 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_ffa_shm_register() 317 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_ffa_shm_unregister() 346 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_ffa_shm_unregister_supp() 535 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_ffa_yielding_call() 902 static void optee_ffa_get_version(struct tee_device *teedev, in optee_ffa_get_version() argument 1046 rc = tee_device_register_dma_heap(optee->teedev, id, pool); in optee_ffa_protmem_pool_init() 1061 struct tee_device *teedev; in optee_ffa_probe() local 1105 teedev = tee_device_alloc(&optee_ffa_clnt_desc, NULL, optee->pool, in optee_ffa_probe() 1107 if (IS_ERR(teedev)) { in optee_ffa_probe() 1108 rc = PTR_ERR(teedev); in optee_ffa_probe() [all …]
|
| 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 | 457 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_shm_register() 523 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_shm_unregister() 817 struct tee_device *teedev = ctx->teedev; in optee_handle_rpc() local 818 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() 1218 static void optee_get_version(struct tee_device *teedev, in optee_get_version() argument 1226 struct optee *optee = tee_get_drvdata(teedev); in optee_get_version() 1237 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_smc_open() 1688 p = devm_memremap(&optee->teedev->dev, res.result.start, in static_protmem_pool_init() 1695 devm_memunmap(&optee->teedev->dev, p); in static_protmem_pool_init() [all …]
|
| H A D | call.c | 269 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_get_msg_arg() 343 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_free_msg_arg() 366 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_open_session() 448 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_system_session() 470 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_close_session_helper() 515 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_invoke_func() 568 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_cancel_req() 646 struct optee *optee = tee_get_drvdata(ctx->teedev); in simple_call_with_arg()
|
| H A D | rpc.c | 40 struct optee *optee = tee_get_drvdata(ctx->teedev); in handle_rpc_func_cmd_i2c_transfer() 219 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_rpc_cmd_alloc_suppl()
|
| /linux/drivers/tee/tstee/ |
| H A D | core.c | 44 static void tstee_get_version(struct tee_device *teedev, in tstee_get_version() argument 47 struct tstee *tstee = tee_get_drvdata(teedev); in tstee_get_version() 97 struct tstee *tstee = tee_get_drvdata(ctx->teedev); in tstee_open_session() 163 struct tstee *tstee = tee_get_drvdata(ctx->teedev); in tstee_invoke_func() 246 struct tstee *tstee = tee_get_drvdata(ctx->teedev); in tstee_shm_register() 309 struct tstee *tstee = tee_get_drvdata(ctx->teedev); in tstee_shm_unregister() 430 tstee->teedev = tee_device_alloc(&tstee_desc, NULL, tstee->pool, tstee); in tstee_probe() 431 if (IS_ERR(tstee->teedev)) { in tstee_probe() 432 rc = PTR_ERR(tstee->teedev); in tstee_probe() 433 tstee->teedev = NULL; in tstee_probe() [all …]
|
| H A D | tstee_private.h | 80 struct tee_device *teedev; member
|
| /linux/drivers/tee/qcomtee/ |
| H A D | call.c | 582 if (!tee_device_get(ctx->teedev)) in qcomtee_open() 621 tee_device_put(ctx->teedev); in qcomtee_release() 624 static void qcomtee_get_version(struct tee_device *teedev, in qcomtee_get_version() argument 702 struct tee_device *teedev; in qcomtee_probe() local 719 teedev = tee_device_alloc(&qcomtee_desc, NULL, pool, qcomtee); in qcomtee_probe() 720 if (IS_ERR(teedev)) { in qcomtee_probe() 721 err = PTR_ERR(teedev); in qcomtee_probe() 726 qcomtee->teedev = teedev; in qcomtee_probe() 728 err = tee_device_register(qcomtee->teedev); in qcomtee_probe() 743 ctx = teedev_open(qcomtee->teedev); in qcomtee_probe() [all …]
|
| H A D | core.c | 54 struct qcomtee *qcomtee = tee_get_drvdata(oic->ctx->teedev); in qcomtee_qtee_object_alloc() 91 qcomtee = tee_get_drvdata(object->info.qcomtee_async_ctx->teedev); in qcomtee_do_release_qtee_object() 113 tee_get_drvdata(object->info.qcomtee_async_ctx->teedev); in qcomtee_release_qtee_object() 185 struct qcomtee *qcomtee = tee_get_drvdata(oic->ctx->teedev); in qcomtee_idx_alloc() 197 struct qcomtee *qcomtee = tee_get_drvdata(oic->ctx->teedev); in qcomtee_idx_erase() 267 struct qcomtee *qcomtee = tee_get_drvdata(oic->ctx->teedev); in qcomtee_local_object_get()
|
| /linux/drivers/tee/amdtee/ |
| H A D | core.c | 26 static void amdtee_get_version(struct tee_device *teedev, in amdtee_get_version() argument 199 n = request_firmware(&fw, fw_name, &ctx->teedev->dev); in copy_ta_binary() 457 struct tee_device *teedev; in amdtee_driver_init() local 485 teedev = tee_device_alloc(&amdtee_desc, NULL, pool, amdtee); in amdtee_driver_init() 486 if (IS_ERR(teedev)) { in amdtee_driver_init() 487 rc = PTR_ERR(teedev); in amdtee_driver_init() 490 amdtee->teedev = teedev; in amdtee_driver_init() 492 rc = tee_device_register(amdtee->teedev); in amdtee_driver_init() 503 tee_device_unregister(amdtee->teedev); in amdtee_driver_init() 529 tee_device_unregister(amdtee->teedev); in amdtee_driver_exit()
|
| H A D | amdtee_private.h | 41 struct tee_device *teedev; member
|