Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/usb/core/
Ddriver.c47 struct usb_dynid *dynid; in usb_store_new_id() local
60 dynid = kzalloc(sizeof(*dynid), GFP_KERNEL); in usb_store_new_id()
61 if (!dynid) in usb_store_new_id()
64 INIT_LIST_HEAD(&dynid->node); in usb_store_new_id()
65 dynid->id.idVendor = idVendor; in usb_store_new_id()
66 dynid->id.idProduct = idProduct; in usb_store_new_id()
67 dynid->id.match_flags = USB_DEVICE_ID_MATCH_DEVICE; in usb_store_new_id()
74 dynid->id.bInterfaceClass = (u8)bInterfaceClass; in usb_store_new_id()
75 dynid->id.match_flags |= USB_DEVICE_ID_MATCH_INT_CLASS; in usb_store_new_id()
91 dynid->id.driver_info = id->driver_info; in usb_store_new_id()
[all …]
/linux-6.1.9/drivers/pci/
Dpci-driver.c59 struct pci_dynid *dynid; in pci_add_dynid() local
61 dynid = kzalloc(sizeof(*dynid), GFP_KERNEL); in pci_add_dynid()
62 if (!dynid) in pci_add_dynid()
65 dynid->id.vendor = vendor; in pci_add_dynid()
66 dynid->id.device = device; in pci_add_dynid()
67 dynid->id.subvendor = subvendor; in pci_add_dynid()
68 dynid->id.subdevice = subdevice; in pci_add_dynid()
69 dynid->id.class = class; in pci_add_dynid()
70 dynid->id.class_mask = class_mask; in pci_add_dynid()
71 dynid->id.driver_data = driver_data; in pci_add_dynid()
[all …]
/linux-6.1.9/drivers/usb/serial/
Dbus.c137 struct usb_dynid *dynid, *n; in free_dynids() local
140 list_for_each_entry_safe(dynid, n, &drv->dynids.list, node) { in free_dynids()
141 list_del(&dynid->node); in free_dynids()
142 kfree(dynid); in free_dynids()
Dusb-serial.c708 struct usb_dynid *dynid; in match_dynamic_id() local
711 list_for_each_entry(dynid, &drv->dynids.list, node) { in match_dynamic_id()
712 if (usb_match_one_id(intf, &dynid->id)) { in match_dynamic_id()
714 return &dynid->id; in match_dynamic_id()
/linux-6.1.9/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 …]
/linux-6.1.9/drivers/hv/
Dvmbus_drv.c718 struct vmbus_dynid *dynid; in hv_vmbus_dynid_match() local
721 list_for_each_entry(dynid, &drv->dynids.list, node) { in hv_vmbus_dynid_match()
722 if (guid_equal(&dynid->id.guid, guid)) { in hv_vmbus_dynid_match()
723 id = &dynid->id; in hv_vmbus_dynid_match()
763 struct vmbus_dynid *dynid; in vmbus_add_dynid() local
765 dynid = kzalloc(sizeof(*dynid), GFP_KERNEL); in vmbus_add_dynid()
766 if (!dynid) in vmbus_add_dynid()
769 dynid->id.guid = *guid; in vmbus_add_dynid()
772 list_add_tail(&dynid->node, &drv->dynids.list); in vmbus_add_dynid()
780 struct vmbus_dynid *dynid, *n; in vmbus_free_dynids() local
[all …]
/linux-6.1.9/drivers/hid/
Dhid-core.c2463 struct hid_dynid *dynid; in new_id_store() local
2473 dynid = kzalloc(sizeof(*dynid), GFP_KERNEL); in new_id_store()
2474 if (!dynid) in new_id_store()
2477 dynid->id.bus = bus; in new_id_store()
2478 dynid->id.group = HID_GROUP_ANY; in new_id_store()
2479 dynid->id.vendor = vendor; in new_id_store()
2480 dynid->id.product = product; in new_id_store()
2481 dynid->id.driver_data = driver_data; in new_id_store()
2484 list_add_tail(&dynid->list, &hdrv->dyn_list); in new_id_store()
2501 struct hid_dynid *dynid, *n; in hid_free_dynids() local
[all …]