Lines Matching defs:devfn
46 static void p2sb_get_devfn(unsigned int *devfn)
55 *devfn = fn;
82 static void p2sb_scan_and_cache_devfn(struct pci_bus *bus, unsigned int devfn)
84 struct p2sb_res_cache *cache = &p2sb_resources[PCI_FUNC(devfn)];
87 pdev = pci_scan_single_device(bus, devfn);
97 static int p2sb_scan_and_cache(struct pci_bus *bus, unsigned int devfn)
100 p2sb_scan_and_cache_devfn(bus, devfn);
103 if (devfn == P2SB_DEVFN_GOLDMONT)
106 if (!p2sb_valid_resource(&p2sb_resources[PCI_FUNC(devfn)].res))
133 /* Get devfn for P2SB device itself */
141 * When a device with same devfn exists and its device class is not
177 * @devfn: PCI slot and function to communicate with
181 * If @devfn is 0, it will be replaced by devfn of the P2SB device.
188 int p2sb_bar(struct pci_bus *bus, unsigned int devfn, struct resource *mem)
196 if (!devfn)
197 p2sb_get_devfn(&devfn);
199 cache = &p2sb_resources[PCI_FUNC(devfn)];