Lines Matching refs:optee_device
58 struct tee_client_device *optee_device = to_tee_client_device(dev); in optee_release_device() local
60 kfree(optee_device); in optee_release_device()
65 struct tee_client_device *optee_device = NULL; in optee_register_device() local
68 optee_device = kzalloc(sizeof(*optee_device), GFP_KERNEL); in optee_register_device()
69 if (!optee_device) in optee_register_device()
72 optee_device->dev.bus = &tee_bus_type; in optee_register_device()
73 optee_device->dev.release = optee_release_device; in optee_register_device()
74 if (dev_set_name(&optee_device->dev, "optee-ta-%pUb", device_uuid)) { in optee_register_device()
75 kfree(optee_device); in optee_register_device()
78 uuid_copy(&optee_device->id.uuid, device_uuid); in optee_register_device()
80 rc = device_register(&optee_device->dev); in optee_register_device()
83 put_device(&optee_device->dev); in optee_register_device()