Searched refs:teedev (Results 1 – 14 of 14) sorted by relevance
| /drivers/tee/ |
| A D | tee_core.c | 62 ctx->teedev = teedev; in teedev_open() 103 struct tee_device *teedev = ctx->teedev; in teedev_close_context() local 276 ctx->teedev->desc->ops->get_version(ctx->teedev, &vers); in tee_ioctl_version() 895 teedev = kzalloc(sizeof(*teedev), GFP_KERNEL); in tee_device_alloc() 927 teedev->dev.devt = MKDEV(MAJOR(tee_devt), teedev->id); in tee_device_alloc() 929 rc = dev_set_name(&teedev->dev, "%s", teedev->name); in tee_device_alloc() 956 if (teedev && teedev->id < TEE_NUM_DEVICES) { in tee_device_alloc() 979 teedev->desc->ops->get_version(teedev, &vers); in implementation_id_show() 1014 rc = cdev_device_add(&teedev->cdev, &teedev->dev); in tee_device_register() 1018 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);
|
| /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
|
| /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() 901 struct tee_device *teedev; in optee_ffa_probe() local 942 if (IS_ERR(teedev)) { in optee_ffa_probe() 943 rc = PTR_ERR(teedev); in optee_ffa_probe() 946 optee->teedev = teedev; in optee_ffa_probe() 950 if (IS_ERR(teedev)) { in optee_ffa_probe() 951 rc = PTR_ERR(teedev); in optee_ffa_probe() 954 optee->supp_teedev = teedev; in optee_ffa_probe() 958 rc = tee_device_register(optee->teedev); in optee_ffa_probe() 975 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() 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()
|
| 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 | 221 struct tee_device *teedev; member
|
| /drivers/tee/amdtee/ |
| 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()
|
| A D | amdtee_private.h | 41 struct tee_device *teedev; member
|
Completed in 38 milliseconds