Lines Matching refs:usb_drv
133 struct usb_driver *usb_drv = to_usb_driver(driver); in new_id_show() local
135 return usb_show_dynids(&usb_drv->dynids, buf); in new_id_show()
141 struct usb_driver *usb_drv = to_usb_driver(driver); in new_id_store() local
143 return usb_store_new_id(&usb_drv->dynids, usb_drv->id_table, driver, buf, count); in new_id_store()
184 static int usb_create_newid_files(struct usb_driver *usb_drv) in usb_create_newid_files() argument
188 if (usb_drv->no_dynamic_id) in usb_create_newid_files()
191 if (usb_drv->probe != NULL) { in usb_create_newid_files()
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()
206 static void usb_remove_newid_files(struct usb_driver *usb_drv) in usb_remove_newid_files() argument
208 if (usb_drv->no_dynamic_id) in usb_remove_newid_files()
211 if (usb_drv->probe != NULL) { in usb_remove_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()
219 static void usb_free_dynids(struct usb_driver *usb_drv) in usb_free_dynids() argument
223 spin_lock(&usb_drv->dynids.lock); in usb_free_dynids()
224 list_for_each_entry_safe(dynid, n, &usb_drv->dynids.list, node) { in usb_free_dynids()
228 spin_unlock(&usb_drv->dynids.lock); in usb_free_dynids()
880 struct usb_driver *usb_drv; in usb_device_match() local
888 usb_drv = to_usb_driver(drv); in usb_device_match()
890 id = usb_match_id(intf, usb_drv->id_table); in usb_device_match()
894 id = usb_match_dynamic_id(intf, usb_drv); in usb_device_match()