Home
last modified time | relevance | path

Searched refs:teedev (Results 1 – 13 of 13) sorted by relevance

/linux/drivers/tee/
A Dtee_core.c61 ctx->teedev = teedev; in teedev_open()
271 ctx->teedev->desc->ops->get_version(ctx->teedev, &vers); in tee_ioctl_version()
893 teedev = kzalloc(sizeof(*teedev), GFP_KERNEL); in tee_device_alloc()
917 snprintf(teedev->name, sizeof(teedev->name), "tee%s%d", in tee_device_alloc()
925 teedev->dev.devt = MKDEV(MAJOR(tee_devt), teedev->id); in tee_device_alloc()
927 rc = dev_set_name(&teedev->dev, "%s", teedev->name); in tee_device_alloc()
954 if (teedev && teedev->id < TEE_NUM_DEVICES) { in tee_device_alloc()
970 teedev->desc->ops->get_version(teedev, &vers); in implementation_id_show()
1002 rc = cdev_device_add(&teedev->cdev, &teedev->dev); in tee_device_register()
1006 teedev->name, MAJOR(teedev->dev.devt), in tee_device_register()
[all …]
A Dtee_shm.c46 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()
81 if (!teedev->pool) { in tee_shm_alloc()
125 tee_device_put(teedev); in tee_shm_alloc()
151 struct tee_device *teedev = ctx->teedev; in tee_shm_register() local
168 tee_device_put(teedev); in tee_shm_register()
253 tee_device_put(teedev); in tee_shm_register()
417 teedev = ctx->teedev; in tee_shm_get_from_id()
[all …]
A Dtee_private.h65 bool tee_device_get(struct tee_device *teedev);
66 void tee_device_put(struct tee_device *teedev);
/linux/drivers/tee/optee/
A Dffa_abi.c273 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_ffa_shm_register()
316 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_ffa_shm_unregister()
796 struct tee_device *teedev; in optee_ffa_probe() local
830 if (IS_ERR(teedev)) { in optee_ffa_probe()
831 rc = PTR_ERR(teedev); in optee_ffa_probe()
834 optee->teedev = teedev; in optee_ffa_probe()
838 if (IS_ERR(teedev)) { in optee_ffa_probe()
839 rc = PTR_ERR(teedev); in optee_ffa_probe()
842 optee->supp_teedev = teedev; in optee_ffa_probe()
844 rc = tee_device_register(optee->teedev); in optee_ffa_probe()
[all …]
A Dcore.c77 struct tee_device *teedev = ctx->teedev; in optee_open() local
78 struct optee *optee = tee_get_drvdata(teedev); in optee_open()
84 if (teedev == optee->supp_teedev) { in optee_open()
145 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_release_supp()
165 tee_device_unregister(optee->teedev); in optee_remove_common()
A Dsmc_abi.c728 struct tee_device *teedev = ctx->teedev; in optee_handle_rpc() local
729 struct optee *optee = tee_get_drvdata(teedev); in optee_handle_rpc()
1179 struct tee_device *teedev; in optee_probe() local
1230 if (IS_ERR(teedev)) { in optee_probe()
1231 rc = PTR_ERR(teedev); in optee_probe()
1234 optee->teedev = teedev; in optee_probe()
1237 if (IS_ERR(teedev)) { in optee_probe()
1238 rc = PTR_ERR(teedev); in optee_probe()
1241 optee->supp_teedev = teedev; in optee_probe()
1243 rc = tee_device_register(optee->teedev); in optee_probe()
[all …]
A Dsupp.c80 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 Dcall.c110 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_get_msg_arg()
144 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_open_session()
223 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_close_session_helper()
260 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_invoke_func()
307 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_cancel_req()
A Drpc.c56 struct optee *optee = tee_get_drvdata(ctx->teedev); in handle_rpc_func_cmd_i2c_transfer()
271 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_rpc_cmd_alloc_suppl()
A Doptee_private.h143 struct tee_device *teedev; member
/linux/drivers/tee/amdtee/
A Dcore.c24 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()
A Damdtee_private.h41 struct tee_device *teedev; member
/linux/include/linux/
A Dtee_drv.h55 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);
324 void *tee_get_drvdata(struct tee_device *teedev);

Completed in 21 milliseconds