• Home
  • Raw
  • Download

Lines Matching refs:bus

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
72 if (bus->number == 0) { in pci_cfg_read_32bit()
77 } else if (bus->parent->number == 0) { /* SoC bus */ 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()
181 struct pci_bus *bus, *p; in xlp_get_pcie_link() local
183 bus = dev->bus; in xlp_get_pcie_link()
187 for (p = bus->parent; p && p->parent && p->parent->number != 0; in xlp_get_pcie_link()
189 bus = p; in xlp_get_pcie_link()
190 return (p && p->parent) ? bus->self : NULL; in xlp_get_pcie_link()
193 for (p = bus->parent; p && p->number != 0; p = p->parent) in xlp_get_pcie_link()
194 bus = p; in xlp_get_pcie_link()
196 return p ? bus->self : NULL; in xlp_get_pcie_link()
203 return PCI_FUNC(lnkdev->bus->self->devfn); in xlp_socdev_to_node()