Lines Matching refs:teedev
198 static void optee_get_version(struct tee_device *teedev, in optee_get_version() argument
206 struct optee *optee = tee_get_drvdata(teedev); in optee_get_version()
223 struct tee_device *teedev = ctx->teedev; in optee_open() local
224 struct optee *optee = tee_get_drvdata(teedev); in optee_open()
230 if (teedev == optee->supp_teedev) { in optee_open()
270 struct tee_device *teedev = ctx->teedev; in optee_release() local
271 struct optee *optee = tee_get_drvdata(teedev); in optee_release()
314 if (teedev == optee->supp_teedev) { in optee_release()
603 tee_device_unregister(optee->teedev); in optee_remove()
635 struct tee_device *teedev; in optee_probe() local
694 teedev = tee_device_alloc(&optee_desc, NULL, pool, optee); in optee_probe()
695 if (IS_ERR(teedev)) { in optee_probe()
696 rc = PTR_ERR(teedev); in optee_probe()
699 optee->teedev = teedev; in optee_probe()
701 teedev = tee_device_alloc(&optee_supp_desc, NULL, pool, optee); in optee_probe()
702 if (IS_ERR(teedev)) { in optee_probe()
703 rc = PTR_ERR(teedev); in optee_probe()
706 optee->supp_teedev = teedev; in optee_probe()
708 rc = tee_device_register(optee->teedev); in optee_probe()
755 tee_device_unregister(optee->teedev); in optee_probe()