Lines Matching refs:bus
147 static int bcm63xx_pci_read(struct pci_bus *bus, unsigned int devfn, in bcm63xx_pci_read() argument
152 type = bus->parent ? 1 : 0; in bcm63xx_pci_read()
157 return bcm63xx_do_cfg_read(type, bus->number, devfn, in bcm63xx_pci_read()
161 static int bcm63xx_pci_write(struct pci_bus *bus, unsigned int devfn, in bcm63xx_pci_write() argument
166 type = bus->parent ? 1 : 0; in bcm63xx_pci_write()
171 return bcm63xx_do_cfg_write(type, bus->number, devfn, in bcm63xx_pci_write()
362 static int bcm63xx_cb_read(struct pci_bus *bus, unsigned int devfn, in bcm63xx_cb_read() argument
367 if (!bus->parent && PCI_SLOT(devfn) == FAKE_CB_BRIDGE_SLOT) { in bcm63xx_cb_read()
368 fake_cb_bridge_bus_number = bus->number; in bcm63xx_cb_read()
377 bus->number == fake_cb_bridge_regs.cardbus_busn && in bcm63xx_cb_read()
386 static int bcm63xx_cb_write(struct pci_bus *bus, unsigned int devfn, in bcm63xx_cb_write() argument
389 if (!bus->parent && PCI_SLOT(devfn) == FAKE_CB_BRIDGE_SLOT) { in bcm63xx_cb_write()
390 fake_cb_bridge_bus_number = bus->number; in bcm63xx_cb_write()
395 bus->number == fake_cb_bridge_regs.cardbus_busn && in bcm63xx_cb_write()
432 if (dev->bus->number == fake_cb_bridge_bus_number) in bcm63xx_fixup()
437 dev->bus->number == fake_cb_bridge_regs.cardbus_busn && in bcm63xx_fixup()
468 static int bcm63xx_pcie_can_access(struct pci_bus *bus, int devfn) in bcm63xx_pcie_can_access() argument
470 switch (bus->number) { in bcm63xx_pcie_can_access()
482 static int bcm63xx_pcie_read(struct pci_bus *bus, unsigned int devfn, in bcm63xx_pcie_read() argument
488 if (!bcm63xx_pcie_can_access(bus, devfn)) in bcm63xx_pcie_read()
491 if (bus->number == PCIE_BUS_DEVICE) in bcm63xx_pcie_read()
502 static int bcm63xx_pcie_write(struct pci_bus *bus, unsigned int devfn, in bcm63xx_pcie_write() argument
508 if (!bcm63xx_pcie_can_access(bus, devfn)) in bcm63xx_pcie_write()
511 if (bus->number == PCIE_BUS_DEVICE) in bcm63xx_pcie_write()