Lines Matching refs:driver

44 			 struct device_driver *driver,  in usb_store_new_id()  argument
102 retval = driver_attach(driver); in usb_store_new_id()
131 static ssize_t new_id_show(struct device_driver *driver, char *buf) in new_id_show() argument
133 struct usb_driver *usb_drv = to_usb_driver(driver); in new_id_show()
138 static ssize_t new_id_store(struct device_driver *driver, in new_id_store() argument
141 struct usb_driver *usb_drv = to_usb_driver(driver); in new_id_store()
143 return usb_store_new_id(&usb_drv->dynids, usb_drv->id_table, driver, buf, count); in new_id_store()
150 static ssize_t remove_id_store(struct device_driver *driver, const char *buf, in remove_id_store() argument
154 struct usb_driver *usb_driver = to_usb_driver(driver); in remove_id_store()
178 static ssize_t remove_id_show(struct device_driver *driver, char *buf) in remove_id_show() argument
180 return new_id_show(driver, buf); in remove_id_show()
192 error = driver_create_file(&usb_drv->drvwrap.driver, in usb_create_newid_files()
195 error = driver_create_file(&usb_drv->drvwrap.driver, in usb_create_newid_files()
198 driver_remove_file(&usb_drv->drvwrap.driver, in usb_create_newid_files()
212 driver_remove_file(&usb_drv->drvwrap.driver, in usb_remove_newid_files()
214 driver_remove_file(&usb_drv->drvwrap.driver, in usb_remove_newid_files()
251 struct usb_device_driver *udriver = to_usb_device_driver(dev->driver); in usb_probe_device()
306 struct usb_device_driver *udriver = to_usb_device_driver(dev->driver); in usb_unbind_device()
320 struct usb_driver *driver = to_usb_driver(dev->driver); in usb_probe_interface() local
343 id = usb_match_dynamic_id(intf, driver); in usb_probe_interface()
345 id = usb_match_id(intf, driver->id_table); in usb_probe_interface()
363 if (driver->supports_autosuspend) in usb_probe_interface()
377 if (driver->disable_hub_initiated_lpm) { in usb_probe_interface()
381 __func__, driver->name); in usb_probe_interface()
396 error = driver->probe(intf, id); in usb_probe_interface()
419 if (driver->supports_autosuspend) in usb_probe_interface()
430 struct usb_driver *driver = to_usb_driver(dev->driver); in usb_unbind_interface() local
448 if (driver->disable_hub_initiated_lpm) in usb_unbind_interface()
455 if (!driver->soft_unbind || udev->state == USB_STATE_NOTATTACHED) in usb_unbind_interface()
458 driver->disconnect(intf); in usb_unbind_interface()
507 if (driver->supports_autosuspend) in usb_unbind_interface()
535 int usb_driver_claim_interface(struct usb_driver *driver, in usb_driver_claim_interface() argument
545 if (dev->driver) in usb_driver_claim_interface()
552 dev->driver = &driver->drvwrap.driver; in usb_driver_claim_interface()
565 if (driver->supports_autosuspend) in usb_driver_claim_interface()
577 dev->driver = NULL; in usb_driver_claim_interface()
586 if (driver->supports_autosuspend) in usb_driver_claim_interface()
609 void usb_driver_release_interface(struct usb_driver *driver, in usb_driver_release_interface() argument
615 if (!dev->driver || dev->driver != &driver->drvwrap.driver) in usb_driver_release_interface()
631 dev->driver = NULL; in usb_driver_release_interface()
949 if (dev->driver != &usb_generic_driver.drvwrap.driver) in __usb_bus_reprobe_drivers()
983 new_udriver->drvwrap.driver.name = new_udriver->name; in usb_register_device_driver()
984 new_udriver->drvwrap.driver.bus = &usb_bus_type; in usb_register_device_driver()
985 new_udriver->drvwrap.driver.probe = usb_probe_device; in usb_register_device_driver()
986 new_udriver->drvwrap.driver.remove = usb_unbind_device; in usb_register_device_driver()
987 new_udriver->drvwrap.driver.owner = owner; in usb_register_device_driver()
988 new_udriver->drvwrap.driver.dev_groups = new_udriver->dev_groups; in usb_register_device_driver()
990 retval = driver_register(&new_udriver->drvwrap.driver); in usb_register_device_driver()
1022 driver_unregister(&udriver->drvwrap.driver); in usb_deregister_device_driver()
1051 new_driver->drvwrap.driver.name = new_driver->name; in usb_register_driver()
1052 new_driver->drvwrap.driver.bus = &usb_bus_type; in usb_register_driver()
1053 new_driver->drvwrap.driver.probe = usb_probe_interface; in usb_register_driver()
1054 new_driver->drvwrap.driver.remove = usb_unbind_interface; in usb_register_driver()
1055 new_driver->drvwrap.driver.owner = owner; in usb_register_driver()
1056 new_driver->drvwrap.driver.mod_name = mod_name; in usb_register_driver()
1057 new_driver->drvwrap.driver.dev_groups = new_driver->dev_groups; in usb_register_driver()
1061 retval = driver_register(&new_driver->drvwrap.driver); in usb_register_driver()
1076 driver_unregister(&new_driver->drvwrap.driver); in usb_register_driver()
1095 void usb_deregister(struct usb_driver *driver) in usb_deregister() argument
1098 usbcore_name, driver->name); in usb_deregister()
1100 usb_remove_newid_files(driver); in usb_deregister()
1101 driver_unregister(&driver->drvwrap.driver); in usb_deregister()
1102 usb_free_dynids(driver); in usb_deregister()
1114 struct usb_driver *driver = to_usb_driver(intf->dev.driver); in usb_forced_unbind_intf() local
1117 usb_driver_release_interface(driver, intf); in usb_forced_unbind_intf()
1139 if (intf->dev.driver && intf->needs_binding) in unbind_marked_interfaces()
1158 if (intf->dev.driver) in usb_rebind_intf()
1225 if (intf->dev.driver) { in unbind_no_pm_drivers_interfaces()
1226 drv = to_usb_driver(intf->dev.driver); in unbind_no_pm_drivers_interfaces()
1244 if (udev->dev.driver) in usb_suspend_device()
1245 udriver = to_usb_device_driver(udev->dev.driver); in usb_suspend_device()
1269 if (udev->dev.driver == NULL) { in usb_resume_device()
1284 udriver = to_usb_device_driver(udev->dev.driver); in usb_resume_device()
1298 struct usb_driver *driver; in usb_suspend_interface() local
1304 driver = to_usb_driver(intf->dev.driver); in usb_suspend_interface()
1307 status = driver->suspend(intf, msg); in usb_suspend_interface()
1319 struct usb_driver *driver; in usb_resume_interface() local
1344 driver = to_usb_driver(intf->dev.driver); in usb_resume_interface()
1347 if (driver->reset_resume) { in usb_resume_interface()
1348 status = driver->reset_resume(intf); in usb_resume_interface()
1355 driver->name); in usb_resume_interface()
1358 status = driver->resume(intf); in usb_resume_interface()
1909 struct usb_driver *driver; in autosuspend_check() local
1911 driver = to_usb_driver(intf->dev.driver); in autosuspend_check()
1912 if (!driver->reset_resume || in autosuspend_check()
1997 if (hcd->driver->set_usb2_hw_lpm) { in usb_set_usb2_hardware_lpm()
1998 ret = hcd->driver->set_usb2_hw_lpm(hcd, udev, enable); in usb_set_usb2_hardware_lpm()