Lines Matching refs:teedev
206 static void optee_get_version(struct tee_device *teedev, in optee_get_version() argument
214 struct optee *optee = tee_get_drvdata(teedev); in optee_get_version()
224 struct tee_device *teedev = ctx->teedev; in optee_open() local
225 struct optee *optee = tee_get_drvdata(teedev); in optee_open()
231 if (teedev == optee->supp_teedev) { in optee_open()
256 struct tee_device *teedev = ctx->teedev; in optee_release() local
257 struct optee *optee = tee_get_drvdata(teedev); in optee_release()
299 if (teedev == optee->supp_teedev) in optee_release()
563 struct tee_device *teedev; in optee_probe() local
612 teedev = tee_device_alloc(&optee_desc, NULL, pool, optee); in optee_probe()
613 if (IS_ERR(teedev)) { in optee_probe()
614 rc = PTR_ERR(teedev); in optee_probe()
617 optee->teedev = teedev; in optee_probe()
619 teedev = tee_device_alloc(&optee_supp_desc, NULL, pool, optee); in optee_probe()
620 if (IS_ERR(teedev)) { in optee_probe()
621 rc = PTR_ERR(teedev); in optee_probe()
624 optee->supp_teedev = teedev; in optee_probe()
626 rc = tee_device_register(optee->teedev); in optee_probe()
660 tee_device_unregister(optee->teedev); in optee_probe()
684 tee_device_unregister(optee->teedev); in optee_remove()