Lines Matching defs:bus
33 struct pci_bus *bus,
37 u32 busnum = bus->number;
69 /* Type 0 configuration for onboard PCI bus */
76 /* Type 1 configuration for offboard PCI bus */
118 static int loongson_pcibios_read(struct pci_bus *bus, unsigned int devfn,
128 if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where,
142 static int loongson_pcibios_write(struct pci_bus *bus, unsigned int devfn,
155 if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn,
167 if (loongson_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where,
184 struct pci_bus bus = {
191 loongson_pcibios_write(&bus, devfn, PCI_MSR_ADDR, 4, msr);
192 loongson_pcibios_read(&bus, devfn, PCI_MSR_DATA_LO, 4, lo);
193 loongson_pcibios_read(&bus, devfn, PCI_MSR_DATA_HI, 4, hi);
200 struct pci_bus bus = {
207 loongson_pcibios_write(&bus, devfn, PCI_MSR_ADDR, 4, msr);
208 loongson_pcibios_write(&bus, devfn, PCI_MSR_DATA_LO, 4, lo);
209 loongson_pcibios_write(&bus, devfn, PCI_MSR_DATA_HI, 4, hi);