Lines Matching refs:teedev
436 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_shm_register()
502 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_shm_unregister()
799 struct tee_device *teedev = ctx->teedev; in optee_handle_rpc() local
800 struct optee *optee = tee_get_drvdata(teedev); in optee_handle_rpc()
870 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_smc_do_call_with_arg()
1063 static void optee_get_version(struct tee_device *teedev, in optee_get_version() argument
1071 struct optee *optee = tee_get_drvdata(teedev); in optee_get_version()
1082 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_smc_open()
1364 struct tee_device *teedev; in optee_probe() local
1454 teedev = tee_device_alloc(&optee_clnt_desc, NULL, pool, optee); in optee_probe()
1455 if (IS_ERR(teedev)) { in optee_probe()
1456 rc = PTR_ERR(teedev); in optee_probe()
1459 optee->teedev = teedev; in optee_probe()
1461 teedev = tee_device_alloc(&optee_supp_desc, NULL, pool, optee); in optee_probe()
1462 if (IS_ERR(teedev)) { in optee_probe()
1463 rc = PTR_ERR(teedev); in optee_probe()
1466 optee->supp_teedev = teedev; in optee_probe()
1468 rc = tee_device_register(optee->teedev); in optee_probe()
1484 ctx = teedev_open(optee->teedev); in optee_probe()
1555 tee_device_unregister(optee->teedev); in optee_probe()