Lines Matching refs:devfn
46 static int p2sb_get_devfn(unsigned int *devfn)
55 *devfn = fn;
86 static void p2sb_scan_and_cache_devfn(struct pci_bus *bus, unsigned int devfn)
88 struct p2sb_res_cache *cache = &p2sb_resources[PCI_FUNC(devfn)];
91 pdev = pci_scan_single_device(bus, devfn);
101 static int p2sb_scan_and_cache(struct pci_bus *bus, unsigned int devfn)
104 p2sb_scan_and_cache_devfn(bus, devfn);
107 if (devfn == P2SB_DEVFN_GOLDMONT)
110 if (!p2sb_valid_resource(&p2sb_resources[PCI_FUNC(devfn)].res))
137 /* Get devfn for P2SB device itself */
147 * When a device with same devfn exists and its device class is not
183 * @devfn: PCI slot and function to communicate with
187 * If @devfn is 0, it will be replaced by devfn of the P2SB device.
194 int p2sb_bar(struct pci_bus *bus, unsigned int devfn, struct resource *mem)
203 if (!devfn) {
204 ret = p2sb_get_devfn(&devfn);
209 cache = &p2sb_resources[PCI_FUNC(devfn)];