Lines Matching refs:dev
56 static void optee_release_device(struct device *dev) in optee_release_device() argument
58 struct tee_client_device *optee_device = to_tee_client_device(dev); in optee_release_device()
63 static ssize_t need_supplicant_show(struct device *dev, in need_supplicant_show() argument
81 optee_device->dev.bus = &tee_bus_type; in optee_register_device()
82 optee_device->dev.release = optee_release_device; in optee_register_device()
83 if (dev_set_name(&optee_device->dev, "optee-ta-%pUb", device_uuid)) { in optee_register_device()
89 rc = device_register(&optee_device->dev); in optee_register_device()
92 put_device(&optee_device->dev); in optee_register_device()
97 device_create_file(&optee_device->dev, in optee_register_device()
179 static int __optee_unregister_device(struct device *dev, void *data) in __optee_unregister_device() argument
181 if (!strncmp(dev_name(dev), "optee-ta", strlen("optee-ta"))) in __optee_unregister_device()
182 device_unregister(dev); in __optee_unregister_device()