Searched refs:dynid (Results 1 - 6 of 6) sorted by relevance

/linux-4.1.27/drivers/pci/
H A Dpci-driver.c57 struct pci_dynid *dynid; pci_add_dynid() local
59 dynid = kzalloc(sizeof(*dynid), GFP_KERNEL); pci_add_dynid()
60 if (!dynid) pci_add_dynid()
63 dynid->id.vendor = vendor; pci_add_dynid()
64 dynid->id.device = device; pci_add_dynid()
65 dynid->id.subvendor = subvendor; pci_add_dynid()
66 dynid->id.subdevice = subdevice; pci_add_dynid()
67 dynid->id.class = class; pci_add_dynid()
68 dynid->id.class_mask = class_mask; pci_add_dynid()
69 dynid->id.driver_data = driver_data; pci_add_dynid()
72 list_add_tail(&dynid->node, &drv->dynids.list); pci_add_dynid()
81 struct pci_dynid *dynid, *n; pci_free_dynids() local
84 list_for_each_entry_safe(dynid, n, &drv->dynids.list, node) { pci_free_dynids()
85 list_del(&dynid->node); pci_free_dynids()
86 kfree(dynid); pci_free_dynids()
170 struct pci_dynid *dynid, *n; store_remove_id() local
184 list_for_each_entry_safe(dynid, n, &pdrv->dynids.list, node) { store_remove_id()
185 struct pci_device_id *id = &dynid->id; store_remove_id()
191 list_del(&dynid->node); store_remove_id()
192 kfree(dynid); store_remove_id()
257 struct pci_dynid *dynid; pci_match_device() local
266 list_for_each_entry(dynid, &drv->dynids.list, node) { pci_match_device()
267 if (pci_match_one_device(&dynid->id, dev)) { pci_match_device()
268 found_id = &dynid->id; pci_match_device()
/linux-4.1.27/drivers/usb/serial/
H A Dbus.c156 struct usb_dynid *dynid, *n; free_dynids() local
159 list_for_each_entry_safe(dynid, n, &drv->dynids.list, node) { free_dynids()
160 list_del(&dynid->node); free_dynids()
161 kfree(dynid); free_dynids()
H A Dusb-serial.c621 struct usb_dynid *dynid; match_dynamic_id() local
624 list_for_each_entry(dynid, &drv->dynids.list, node) { match_dynamic_id()
625 if (usb_match_one_id(intf, &dynid->id)) { match_dynamic_id()
627 return &dynid->id; match_dynamic_id()
/linux-4.1.27/drivers/usb/core/
H A Ddriver.c44 struct usb_dynid *dynid; usb_store_new_id() local
57 dynid = kzalloc(sizeof(*dynid), GFP_KERNEL); usb_store_new_id()
58 if (!dynid) usb_store_new_id()
61 INIT_LIST_HEAD(&dynid->node); usb_store_new_id()
62 dynid->id.idVendor = idVendor; usb_store_new_id()
63 dynid->id.idProduct = idProduct; usb_store_new_id()
64 dynid->id.match_flags = USB_DEVICE_ID_MATCH_DEVICE; usb_store_new_id()
71 dynid->id.bInterfaceClass = (u8)bInterfaceClass; usb_store_new_id()
72 dynid->id.match_flags |= USB_DEVICE_ID_MATCH_INT_CLASS; usb_store_new_id()
88 dynid->id.driver_info = id->driver_info; usb_store_new_id()
96 list_add_tail(&dynid->node, &dynids->list); usb_store_new_id()
106 kfree(dynid); usb_store_new_id()
113 struct usb_dynid *dynid; usb_show_dynids() local
116 list_for_each_entry(dynid, &dynids->list, node) usb_show_dynids()
117 if (dynid->id.bInterfaceClass != 0) usb_show_dynids()
119 dynid->id.idVendor, dynid->id.idProduct, usb_show_dynids()
120 dynid->id.bInterfaceClass); usb_show_dynids()
123 dynid->id.idVendor, dynid->id.idProduct); usb_show_dynids()
150 struct usb_dynid *dynid, *n; remove_id_store() local
161 list_for_each_entry_safe(dynid, n, &usb_driver->dynids.list, node) { remove_id_store()
162 struct usb_device_id *id = &dynid->id; remove_id_store()
165 list_del(&dynid->node); remove_id_store()
166 kfree(dynid); remove_id_store()
217 struct usb_dynid *dynid, *n; usb_free_dynids() local
220 list_for_each_entry_safe(dynid, n, &usb_drv->dynids.list, node) { usb_free_dynids()
221 list_del(&dynid->node); usb_free_dynids()
222 kfree(dynid); usb_free_dynids()
230 struct usb_dynid *dynid; usb_match_dynamic_id() local
233 list_for_each_entry(dynid, &drv->dynids.list, node) { usb_match_dynamic_id()
234 if (usb_match_one_id(intf, &dynid->id)) { usb_match_dynamic_id()
236 return &dynid->id; usb_match_dynamic_id()
/linux-4.1.27/drivers/pcmcia/
H A Dds.c100 struct pcmcia_dynid *dynid; pcmcia_store_new_id() local
114 dynid = kzalloc(sizeof(struct pcmcia_dynid), GFP_KERNEL); pcmcia_store_new_id()
115 if (!dynid) pcmcia_store_new_id()
118 dynid->id.match_flags = match_flags; pcmcia_store_new_id()
119 dynid->id.manf_id = manf_id; pcmcia_store_new_id()
120 dynid->id.card_id = card_id; pcmcia_store_new_id()
121 dynid->id.func_id = func_id; pcmcia_store_new_id()
122 dynid->id.function = function; pcmcia_store_new_id()
123 dynid->id.device_no = device_no; pcmcia_store_new_id()
124 memcpy(dynid->id.prod_id_hash, prod_id_hash, sizeof(__u32) * 4); pcmcia_store_new_id()
127 list_add_tail(&dynid->node, &pdrv->dynids.list); pcmcia_store_new_id()
141 struct pcmcia_dynid *dynid, *n; pcmcia_free_dynids() local
144 list_for_each_entry_safe(dynid, n, &drv->dynids.list, node) { pcmcia_free_dynids()
145 list_del(&dynid->node); pcmcia_free_dynids()
146 kfree(dynid); pcmcia_free_dynids()
900 struct pcmcia_dynid *dynid; pcmcia_bus_match() local
904 list_for_each_entry(dynid, &p_drv->dynids.list, node) { pcmcia_bus_match()
906 if (pcmcia_devmatch(p_dev, &dynid->id)) { pcmcia_bus_match()
/linux-4.1.27/drivers/hid/
H A Dhid-core.c2038 struct hid_dynid *dynid; store_new_id() local
2048 dynid = kzalloc(sizeof(*dynid), GFP_KERNEL); store_new_id()
2049 if (!dynid) store_new_id()
2052 dynid->id.bus = bus; store_new_id()
2053 dynid->id.group = HID_GROUP_ANY; store_new_id()
2054 dynid->id.vendor = vendor; store_new_id()
2055 dynid->id.product = product; store_new_id()
2056 dynid->id.driver_data = driver_data; store_new_id()
2059 list_add_tail(&dynid->list, &hdrv->dyn_list); store_new_id()
2070 struct hid_dynid *dynid, *n; hid_free_dynids() local
2073 list_for_each_entry_safe(dynid, n, &hdrv->dyn_list, list) { hid_free_dynids()
2074 list_del(&dynid->list); hid_free_dynids()
2075 kfree(dynid); hid_free_dynids()
2083 struct hid_dynid *dynid; hid_match_device() local
2086 list_for_each_entry(dynid, &hdrv->dyn_list, list) { hid_match_device()
2087 if (hid_match_one_id(hdev, &dynid->id)) { hid_match_device()
2089 return &dynid->id; hid_match_device()

Completed in 326 milliseconds