Lines Matching defs:devfn
60 #define pci_cfg_addr(bus, devfn, off) (((bus) << 20) | ((devfn) << 12) | (off))
63 static inline u32 pci_cfg_read_32bit(struct pci_bus *bus, unsigned int devfn,
74 if (PCI_SLOT(devfn) != 0 ||
75 !nlm_node_present(PCI_FUNC(devfn)))
78 if (PCI_SLOT(devfn) == 0) /* b.0.0 hangs */
80 if (devfn == 44) /* b.5.4 hangs */
83 } else if (bus->number == 0 && PCI_SLOT(devfn) == 1 && where == 0x954) {
87 pci_cfg_addr(bus->number, devfn, where));
92 static inline void pci_cfg_write_32bit(struct pci_bus *bus, unsigned int devfn,
98 pci_cfg_addr(bus->number, devfn, where & ~3));
102 static int nlm_pcibios_read(struct pci_bus *bus, unsigned int devfn,
112 data = pci_cfg_read_32bit(bus, devfn, where);
125 static int nlm_pcibios_write(struct pci_bus *bus, unsigned int devfn,
135 data = pci_cfg_read_32bit(bus, devfn, where);
146 pci_cfg_write_32bit(bus, devfn, where, data);
203 return PCI_FUNC(lnkdev->bus->self->devfn);
205 return PCI_SLOT(lnkdev->devfn) / 8;
221 lnkfunc = PCI_FUNC(lnkdev->devfn);