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