Lines Matching refs:bus
59 #define pci_cfg_addr(bus, devfn, off) (((bus) << 16) | ((devfn) << 8) | (off)) argument
62 static inline u32 pci_cfg_read_32bit(struct pci_bus *bus, unsigned int devfn, in pci_cfg_read_32bit() argument
69 pci_cfg_addr(bus->number, devfn, where & ~3)); in pci_cfg_read_32bit()
74 static inline void pci_cfg_write_32bit(struct pci_bus *bus, unsigned int devfn, in pci_cfg_write_32bit() argument
80 pci_cfg_addr(bus->number, devfn, where & ~3)); in pci_cfg_write_32bit()
84 static int nlm_pcibios_read(struct pci_bus *bus, unsigned int devfn, in nlm_pcibios_read() argument
94 data = pci_cfg_read_32bit(bus, devfn, where); in nlm_pcibios_read()
107 static int nlm_pcibios_write(struct pci_bus *bus, unsigned int devfn, in nlm_pcibios_write() argument
117 data = pci_cfg_read_32bit(bus, devfn, where); in nlm_pcibios_write()
128 pci_cfg_write_32bit(bus, devfn, where, data); in nlm_pcibios_write()
168 struct pci_bus *bus, *p; in xls_get_pcie_link() local
171 bus = dev->bus; in xls_get_pcie_link()
172 for (p = bus->parent; p && p->number != 0; p = p->parent) in xls_get_pcie_link()
173 bus = p; in xls_get_pcie_link()
175 return p ? bus->self : NULL; in xls_get_pcie_link()