| /linux/drivers/tee/ |
| A D | tee_core.c | 61 ctx->teedev = teedev; in teedev_open() 102 struct tee_device *teedev = ctx->teedev; in teedev_close_context() local 275 ctx->teedev->desc->ops->get_version(ctx->teedev, &vers); in tee_ioctl_version() 894 teedev = kzalloc(sizeof(*teedev), GFP_KERNEL); in tee_device_alloc() 926 teedev->dev.devt = MKDEV(MAJOR(tee_devt), teedev->id); in tee_device_alloc() 928 rc = dev_set_name(&teedev->dev, "%s", teedev->name); in tee_device_alloc() 955 if (teedev && teedev->id < TEE_NUM_DEVICES) { in tee_device_alloc() 978 teedev->desc->ops->get_version(teedev, &vers); in implementation_id_show() 1013 rc = cdev_device_add(&teedev->cdev, &teedev->dev); in tee_device_register() 1017 teedev->name, MAJOR(teedev->dev.devt), in tee_device_register() [all …]
|
| A D | tee_shm.c | 49 teedev->pool->ops->free(teedev->pool, shm); in tee_shm_release() 64 tee_device_put(teedev); in tee_shm_release() 70 struct tee_device *teedev = ctx->teedev; in shm_alloc_helper() local 78 if (!teedev->pool) { in shm_alloc_helper() 102 rc = teedev->pool->ops->alloc(teedev->pool, shm, size, align); in shm_alloc_helper() 113 tee_device_put(teedev); in shm_alloc_helper() 132 struct tee_device *teedev = ctx->teedev; in tee_shm_alloc_user_buf() local 274 struct tee_device *teedev = ctx->teedev; in register_shm_helper() local 371 struct tee_device *teedev = ctx->teedev; in tee_shm_register_user_buf() local 540 teedev = ctx->teedev; in tee_shm_get_from_id() [all …]
|
| A D | tee_private.h | 17 bool tee_device_get(struct tee_device *teedev); 18 void tee_device_put(struct tee_device *teedev);
|
| /linux/drivers/tee/optee/ |
| A D | core.c | 88 tee_device_set_dev_groups(optee->teedev, optee_dev_groups); in optee_set_dev_group() 95 struct tee_device *teedev = ctx->teedev; in optee_open() local 96 struct optee *optee = tee_get_drvdata(teedev); in optee_open() 102 if (teedev == optee->supp_teedev) { in optee_open() 159 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_release_supp() 182 tee_device_unregister(optee->teedev); in optee_remove_common()
|
| A D | ffa_abi.c | 274 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_ffa_shm_register() 878 struct tee_device *teedev; in optee_ffa_probe() local 919 if (IS_ERR(teedev)) { in optee_ffa_probe() 920 rc = PTR_ERR(teedev); in optee_ffa_probe() 923 optee->teedev = teedev; in optee_ffa_probe() 927 if (IS_ERR(teedev)) { in optee_ffa_probe() 928 rc = PTR_ERR(teedev); in optee_ffa_probe() 931 optee->supp_teedev = teedev; in optee_ffa_probe() 935 rc = tee_device_register(optee->teedev); in optee_ffa_probe() 952 ctx = teedev_open(optee->teedev); in optee_ffa_probe() [all …]
|
| A 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()
|
| A D | smc_abi.c | 817 struct tee_device *teedev = ctx->teedev; in optee_handle_rpc() local 1594 struct tee_device *teedev; in optee_probe() local 1694 if (IS_ERR(teedev)) { in optee_probe() 1695 rc = PTR_ERR(teedev); in optee_probe() 1698 optee->teedev = teedev; in optee_probe() 1701 if (IS_ERR(teedev)) { in optee_probe() 1702 rc = PTR_ERR(teedev); in optee_probe() 1705 optee->supp_teedev = teedev; in optee_probe() 1709 rc = tee_device_register(optee->teedev); in optee_probe() 1725 ctx = teedev_open(optee->teedev); in optee_probe() [all …]
|
| 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()
|
| A D | rpc.c | 40 struct optee *optee = tee_get_drvdata(ctx->teedev); in handle_rpc_func_cmd_i2c_transfer() 221 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_rpc_cmd_alloc_suppl()
|
| A D | optee_private.h | 219 struct tee_device *teedev; member
|
| /linux/drivers/tee/tstee/ |
| 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() 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() 437 rc = tee_device_register(tstee->teedev); in tstee_probe() 446 tee_device_unregister(tstee->teedev); in tstee_probe() [all …]
|
| A D | tstee_private.h | 80 struct tee_device *teedev; member
|
| /linux/include/linux/ |
| A D | tee_core.h | 81 void (*get_version)(struct tee_device *teedev, 145 int tee_device_register(struct tee_device *teedev); 155 void tee_device_unregister(struct tee_device *teedev); 166 void tee_device_set_dev_groups(struct tee_device *teedev, 236 void *tee_get_drvdata(struct tee_device *teedev); 310 struct tee_context *teedev_open(struct tee_device *teedev);
|
| A D | tee_drv.h | 40 struct tee_device *teedev; member
|
| /linux/drivers/tee/amdtee/ |
| A D | core.c | 23 static void amdtee_get_version(struct tee_device *teedev, in amdtee_get_version() argument 196 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()
|
| A D | amdtee_private.h | 41 struct tee_device *teedev; member
|