Lines Matching refs:driver
20 struct usb_serial_driver *driver = to_usb_serial_driver(drv); in usb_serial_device_match() local
26 if (driver == port->serial->type) in usb_serial_device_match()
35 struct usb_serial_driver *driver; in usb_serial_device_probe() local
45 driver = port->serial->type; in usb_serial_device_probe()
46 if (driver->port_probe) { in usb_serial_device_probe()
47 retval = driver->port_probe(port); in usb_serial_device_probe()
64 driver->description, minor); in usb_serial_device_probe()
69 if (driver->port_remove) in usb_serial_device_probe()
70 driver->port_remove(port); in usb_serial_device_probe()
80 struct usb_serial_driver *driver; in usb_serial_device_remove() local
95 driver = port->serial->type; in usb_serial_device_remove()
96 if (driver->port_remove) in usb_serial_device_remove()
97 driver->port_remove(port); in usb_serial_device_remove()
100 driver->description, minor); in usb_serial_device_remove()
106 static ssize_t new_id_store(struct device_driver *driver, in new_id_store() argument
109 struct usb_serial_driver *usb_drv = to_usb_serial_driver(driver); in new_id_store()
111 driver, buf, count); in new_id_store()
116 &usb_drv->usb_driver->drvwrap.driver, in new_id_store()
121 static ssize_t new_id_show(struct device_driver *driver, char *buf) in new_id_show() argument
123 struct usb_serial_driver *usb_drv = to_usb_serial_driver(driver); in new_id_show()
155 int usb_serial_bus_register(struct usb_serial_driver *driver) in usb_serial_bus_register() argument
159 driver->driver.bus = &usb_serial_bus_type; in usb_serial_bus_register()
160 spin_lock_init(&driver->dynids.lock); in usb_serial_bus_register()
161 INIT_LIST_HEAD(&driver->dynids.list); in usb_serial_bus_register()
163 retval = driver_register(&driver->driver); in usb_serial_bus_register()
168 void usb_serial_bus_deregister(struct usb_serial_driver *driver) in usb_serial_bus_deregister() argument
170 free_dynids(driver); in usb_serial_bus_deregister()
171 driver_unregister(&driver->driver); in usb_serial_bus_deregister()