Lines Matching refs:bus
20 struct pci_bus *bus, unsigned int devfn, int where, u32 *data) in sh7786_pcie_config_access() argument
22 struct pci_channel *chan = bus->sysdata; in sh7786_pcie_config_access()
27 type = !!bus->parent; in sh7786_pcie_config_access()
30 if (bus->number > 255 || dev > 31 || func > 7) in sh7786_pcie_config_access()
48 if (pci_is_root_bus(bus)) { in sh7786_pcie_config_access()
64 pci_write_reg(chan, (bus->number << 24) | (dev << 19) | in sh7786_pcie_config_access()
89 static int sh7786_pcie_read(struct pci_bus *bus, unsigned int devfn, in sh7786_pcie_read() argument
102 ret = sh7786_pcie_config_access(PCI_ACCESS_READ, bus, in sh7786_pcie_read()
116 dev_dbg(&bus->dev, "pcie-config-read: bus=%3d devfn=0x%04x " in sh7786_pcie_read()
117 "where=0x%04x size=%d val=0x%08lx\n", bus->number, in sh7786_pcie_read()
125 static int sh7786_pcie_write(struct pci_bus *bus, unsigned int devfn, in sh7786_pcie_write() argument
138 ret = sh7786_pcie_config_access(PCI_ACCESS_READ, bus, in sh7786_pcie_write()
143 dev_dbg(&bus->dev, "pcie-config-write: bus=%3d devfn=0x%04x " in sh7786_pcie_write()
144 "where=0x%04x size=%d val=%08lx\n", bus->number, in sh7786_pcie_write()
158 ret = sh7786_pcie_config_access(PCI_ACCESS_WRITE, bus, in sh7786_pcie_write()