Home
last modified time | relevance | path

Searched refs:usb_drv (Results 1 – 3 of 3) sorted by relevance

/drivers/usb/serial/
Dbus.c109 struct usb_serial_driver *usb_drv = to_usb_serial_driver(driver); in new_id_store() local
110 ssize_t retval = usb_store_new_id(&usb_drv->dynids, usb_drv->id_table, in new_id_store()
113 if (retval >= 0 && usb_drv->usb_driver != NULL) in new_id_store()
114 retval = usb_store_new_id(&usb_drv->usb_driver->dynids, in new_id_store()
115 usb_drv->usb_driver->id_table, in new_id_store()
116 &usb_drv->usb_driver->drvwrap.driver, in new_id_store()
123 struct usb_serial_driver *usb_drv = to_usb_serial_driver(driver); in new_id_show() local
125 return usb_show_dynids(&usb_drv->dynids, buf); in new_id_show()
/drivers/staging/r8188eu/os_dep/
Dusb_intf.c65 static struct rtw_usb_drv *usb_drv = &rtl8188e_usb_drv; variable
306 padapter->hw_init_mutex = &usb_drv->hw_init_mutex; in rtw_usb_if1_init()
442 if (usb_drv->drv_registered) in rtw_dev_remove()
457 mutex_init(&usb_drv->hw_init_mutex); in rtw_drv_entry()
459 usb_drv->drv_registered = true; in rtw_drv_entry()
460 return usb_register(&usb_drv->usbdrv); in rtw_drv_entry()
465 usb_drv->drv_registered = false; in rtw_drv_halt()
466 usb_deregister(&usb_drv->usbdrv); in rtw_drv_halt()
468 mutex_destroy(&usb_drv->hw_init_mutex); in rtw_drv_halt()
/drivers/usb/core/
Ddriver.c134 struct usb_driver *usb_drv = to_usb_driver(driver); in new_id_show() local
136 return usb_show_dynids(&usb_drv->dynids, buf); in new_id_show()
142 struct usb_driver *usb_drv = to_usb_driver(driver); in new_id_store() local
144 return usb_store_new_id(&usb_drv->dynids, usb_drv->id_table, driver, buf, count); in new_id_store()
185 static int usb_create_newid_files(struct usb_driver *usb_drv) in usb_create_newid_files() argument
189 if (usb_drv->no_dynamic_id) in usb_create_newid_files()
192 if (usb_drv->probe != NULL) { in usb_create_newid_files()
193 error = driver_create_file(&usb_drv->drvwrap.driver, in usb_create_newid_files()
196 error = driver_create_file(&usb_drv->drvwrap.driver, in usb_create_newid_files()
199 driver_remove_file(&usb_drv->drvwrap.driver, in usb_create_newid_files()
[all …]