Lines Matching refs:dynid
45 struct usb_dynid *dynid; in usb_store_new_id() local
57 dynid = kzalloc(sizeof(*dynid), GFP_KERNEL); in usb_store_new_id()
58 if (!dynid) in usb_store_new_id()
61 INIT_LIST_HEAD(&dynid->node); in usb_store_new_id()
62 dynid->id.idVendor = idVendor; in usb_store_new_id()
63 dynid->id.idProduct = idProduct; in usb_store_new_id()
64 dynid->id.match_flags = USB_DEVICE_ID_MATCH_DEVICE; in usb_store_new_id()
66 dynid->id.bInterfaceClass = (u8)bInterfaceClass; in usb_store_new_id()
67 dynid->id.match_flags |= USB_DEVICE_ID_MATCH_INT_CLASS; in usb_store_new_id()
71 list_add_tail(&dynid->node, &dynids->list); in usb_store_new_id()
102 struct usb_dynid *dynid, *n; in store_remove_id() local
114 list_for_each_entry_safe(dynid, n, &usb_driver->dynids.list, node) { in store_remove_id()
115 struct usb_device_id *id = &dynid->id; in store_remove_id()
118 list_del(&dynid->node); in store_remove_id()
119 kfree(dynid); in store_remove_id()
169 struct usb_dynid *dynid, *n; in usb_free_dynids() local
172 list_for_each_entry_safe(dynid, n, &usb_drv->dynids.list, node) { in usb_free_dynids()
173 list_del(&dynid->node); in usb_free_dynids()
174 kfree(dynid); in usb_free_dynids()
196 struct usb_dynid *dynid; in usb_match_dynamic_id() local
199 list_for_each_entry(dynid, &drv->dynids.list, node) { in usb_match_dynamic_id()
200 if (usb_match_one_id(intf, &dynid->id)) { in usb_match_dynamic_id()
202 return &dynid->id; in usb_match_dynamic_id()