Home
last modified time | relevance | path

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

/linux/drivers/tee/
A Dtee_core.c61 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 Dtee_shm.c49 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 Dtee_private.h17 bool tee_device_get(struct tee_device *teedev);
18 void tee_device_put(struct tee_device *teedev);
/linux/drivers/tee/optee/
A Dcore.c88 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 Dffa_abi.c274 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 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 Dsmc_abi.c817 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 Dcall.c269 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 Drpc.c40 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 Doptee_private.h219 struct tee_device *teedev; member
/linux/drivers/tee/tstee/
A Dcore.c44 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 Dtstee_private.h80 struct tee_device *teedev; member
/linux/include/linux/
A Dtee_core.h81 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 Dtee_drv.h40 struct tee_device *teedev; member
/linux/drivers/tee/amdtee/
A Dcore.c23 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 Damdtee_private.h41 struct tee_device *teedev; member

Completed in 28 milliseconds