Home
last modified time | relevance | path

Searched refs:dynid (Results 1 – 7 of 7) sorted by relevance

/drivers/usb/core/
Ddriver.c48 struct usb_dynid *dynid; in usb_store_new_id() local
61 dynid = kzalloc(sizeof(*dynid), GFP_KERNEL); in usb_store_new_id()
62 if (!dynid) in usb_store_new_id()
65 INIT_LIST_HEAD(&dynid->node); in usb_store_new_id()
66 dynid->id.idVendor = idVendor; in usb_store_new_id()
67 dynid->id.idProduct = idProduct; in usb_store_new_id()
68 dynid->id.match_flags = USB_DEVICE_ID_MATCH_DEVICE; in usb_store_new_id()
75 dynid->id.bInterfaceClass = (u8)bInterfaceClass; in usb_store_new_id()
76 dynid->id.match_flags |= USB_DEVICE_ID_MATCH_INT_CLASS; in usb_store_new_id()
92 dynid->id.driver_info = id->driver_info; in usb_store_new_id()
[all …]
/drivers/pci/
Dpci-driver.c58 struct pci_dynid *dynid; in pci_add_dynid() local
60 dynid = kzalloc(sizeof(*dynid), GFP_KERNEL); in pci_add_dynid()
61 if (!dynid) in pci_add_dynid()
64 dynid->id.vendor = vendor; in pci_add_dynid()
65 dynid->id.device = device; in pci_add_dynid()
66 dynid->id.subvendor = subvendor; in pci_add_dynid()
67 dynid->id.subdevice = subdevice; in pci_add_dynid()
68 dynid->id.class = class; in pci_add_dynid()
69 dynid->id.class_mask = class_mask; in pci_add_dynid()
70 dynid->id.driver_data = driver_data; in pci_add_dynid()
[all …]
/drivers/pcmcia/
Dds.c97 struct pcmcia_dynid *dynid; in new_id_store() local
111 dynid = kzalloc(sizeof(struct pcmcia_dynid), GFP_KERNEL); in new_id_store()
112 if (!dynid) in new_id_store()
115 dynid->id.match_flags = match_flags; in new_id_store()
116 dynid->id.manf_id = manf_id; in new_id_store()
117 dynid->id.card_id = card_id; in new_id_store()
118 dynid->id.func_id = func_id; in new_id_store()
119 dynid->id.function = function; in new_id_store()
120 dynid->id.device_no = device_no; in new_id_store()
121 memcpy(dynid->id.prod_id_hash, prod_id_hash, sizeof(__u32) * 4); in new_id_store()
[all …]
/drivers/usb/serial/
Dbus.c154 struct usb_dynid *dynid, *n; in free_dynids() local
157 list_for_each_entry_safe(dynid, n, &drv->dynids.list, node) { in free_dynids()
158 list_del(&dynid->node); in free_dynids()
159 kfree(dynid); in free_dynids()
Dusb-serial.c623 struct usb_dynid *dynid; in match_dynamic_id() local
626 list_for_each_entry(dynid, &drv->dynids.list, node) { in match_dynamic_id()
627 if (usb_match_one_id(intf, &dynid->id)) { in match_dynamic_id()
629 return &dynid->id; in match_dynamic_id()
/drivers/hv/
Dvmbus_drv.c714 struct vmbus_dynid *dynid; in hv_vmbus_dynid_match() local
717 list_for_each_entry(dynid, &drv->dynids.list, node) { in hv_vmbus_dynid_match()
718 if (guid_equal(&dynid->id.guid, guid)) { in hv_vmbus_dynid_match()
719 id = &dynid->id; in hv_vmbus_dynid_match()
759 struct vmbus_dynid *dynid; in vmbus_add_dynid() local
761 dynid = kzalloc(sizeof(*dynid), GFP_KERNEL); in vmbus_add_dynid()
762 if (!dynid) in vmbus_add_dynid()
765 dynid->id.guid = *guid; in vmbus_add_dynid()
768 list_add_tail(&dynid->node, &drv->dynids.list); in vmbus_add_dynid()
776 struct vmbus_dynid *dynid, *n; in vmbus_free_dynids() local
[all …]
/drivers/hid/
Dhid-core.c2162 struct hid_dynid *dynid; in new_id_store() local
2172 dynid = kzalloc(sizeof(*dynid), GFP_KERNEL); in new_id_store()
2173 if (!dynid) in new_id_store()
2176 dynid->id.bus = bus; in new_id_store()
2177 dynid->id.group = HID_GROUP_ANY; in new_id_store()
2178 dynid->id.vendor = vendor; in new_id_store()
2179 dynid->id.product = product; in new_id_store()
2180 dynid->id.driver_data = driver_data; in new_id_store()
2183 list_add_tail(&dynid->list, &hdrv->dyn_list); in new_id_store()
2200 struct hid_dynid *dynid, *n; in hid_free_dynids() local
[all …]