Lines Matching refs:dynids
42 ssize_t usb_store_new_id(struct usb_dynids *dynids, in usb_store_new_id() argument
98 spin_lock(&dynids->lock); in usb_store_new_id()
99 list_add_tail(&dynid->node, &dynids->list); in usb_store_new_id()
100 spin_unlock(&dynids->lock); in usb_store_new_id()
114 ssize_t usb_show_dynids(struct usb_dynids *dynids, char *buf) in usb_show_dynids() argument
119 list_for_each_entry(dynid, &dynids->list, node) in usb_show_dynids()
135 return usb_show_dynids(&usb_drv->dynids, buf); in new_id_show()
143 return usb_store_new_id(&usb_drv->dynids, usb_drv->id_table, driver, buf, count); in new_id_store()
163 spin_lock(&usb_driver->dynids.lock); in remove_id_store()
164 list_for_each_entry_safe(dynid, n, &usb_driver->dynids.list, node) { in remove_id_store()
174 spin_unlock(&usb_driver->dynids.lock); in remove_id_store()
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()
236 spin_lock(&drv->dynids.lock); in usb_match_dynamic_id()
237 list_for_each_entry(dynid, &drv->dynids.list, node) { in usb_match_dynamic_id()
239 spin_unlock(&drv->dynids.lock); in usb_match_dynamic_id()
243 spin_unlock(&drv->dynids.lock); in usb_match_dynamic_id()
1058 spin_lock_init(&new_driver->dynids.lock); in usb_register_driver()
1059 INIT_LIST_HEAD(&new_driver->dynids.list); in usb_register_driver()