Lines Matching defs:devfn

1863 		     dev->bus->number, PCI_SLOT(dev->devfn),
1864 PCI_FUNC(dev->devfn));
2340 static bool pci_bus_wait_crs(struct pci_bus *bus, int devfn, u32 *l,
2360 PCI_SLOT(devfn), PCI_FUNC(devfn), delay - 1);
2367 PCI_SLOT(devfn), PCI_FUNC(devfn), delay - 1);
2372 if (pci_bus_read_config_dword(bus, devfn, PCI_VENDOR_ID, l))
2379 PCI_SLOT(devfn), PCI_FUNC(devfn), delay - 1);
2384 bool pci_bus_generic_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *l,
2387 if (pci_bus_read_config_dword(bus, devfn, PCI_VENDOR_ID, l))
2396 return pci_bus_wait_crs(bus, devfn, l, timeout);
2401 bool pci_bus_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *l,
2413 return pci_idt_bus_quirk(bus, devfn, l, timeout);
2416 return pci_bus_generic_read_dev_vendor_id(bus, devfn, l, timeout);
2424 static struct pci_dev *pci_scan_device(struct pci_bus *bus, int devfn)
2429 if (!pci_bus_read_dev_vendor_id(bus, devfn, &l, 60*1000))
2436 dev->devfn = devfn;
2461 if (PCI_FUNC(dev->devfn) != 0 || dev->is_virtfn)
2587 struct pci_dev *pci_scan_single_device(struct pci_bus *bus, int devfn)
2591 dev = pci_get_slot(bus, devfn);
2597 dev = pci_scan_device(bus, devfn);
2667 * @devfn: slot number to scan (must have zero function)
2675 int pci_scan_slot(struct pci_bus *bus, int devfn)
2680 if (only_one_child(bus) && (devfn > 0))
2684 dev = pci_scan_single_device(bus, devfn + fn);
2896 unsigned int devfn, cmax, max = start;
2902 for (devfn = 0; devfn < 256; devfn += 8)
2903 pci_scan_slot(bus, devfn);
3333 if (a->devfn < b->devfn) return -1;
3334 else if (a->devfn > b->devfn) return 1;