Lines Matching defs:pci_dev_id
489 struct pcistub_device_id *pci_dev_id;
495 list_for_each_entry(pci_dev_id, &pcistub_device_ids, slot_list) {
496 if (pci_dev_id->domain == domain && pci_dev_id->bus == bus &&
497 pci_dev_id->devfn == devfn) {
517 struct pcistub_device_id *pci_dev_id)
525 kfree(pci_dev_id);
549 kfree(pci_dev_id);
551 } else if (pci_dev_id)
552 pcistub_device_id_add_list(pci_dev_id, pci_domain_nr(dev->bus),
563 struct pcistub_device_id *pci_dev_id = NULL;
583 pci_dev_id = kmalloc(sizeof(*pci_dev_id), GFP_KERNEL);
584 if (!pci_dev_id) {
591 err = pcistub_seize(dev, pci_dev_id);
1063 struct pcistub_device_id *pci_dev_id;
1089 pci_dev_id = kmalloc(sizeof(*pci_dev_id), GFP_KERNEL);
1090 if (!pci_dev_id)
1096 pcistub_device_id_add_list(pci_dev_id, domain, bus, devfn);
1103 struct pcistub_device_id *pci_dev_id, *t;
1108 list_for_each_entry_safe(pci_dev_id, t, &pcistub_device_ids,
1110 if (pci_dev_id->domain == domain && pci_dev_id->bus == bus
1111 && (slot < 0 || PCI_SLOT(pci_dev_id->devfn) == slot)
1112 && (func < 0 || PCI_FUNC(pci_dev_id->devfn) == func)) {
1116 list_del(&pci_dev_id->slot_list);
1117 kfree(pci_dev_id);
1212 struct pcistub_device_id *pci_dev_id;
1217 list_for_each_entry(pci_dev_id, &pcistub_device_ids, slot_list) {
1223 pci_dev_id->domain, pci_dev_id->bus,
1224 PCI_SLOT(pci_dev_id->devfn),
1225 PCI_FUNC(pci_dev_id->devfn));