Lines Matching defs:bus
38 #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where))
39 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where)
72 * In PCI Device Mode, hide everything on bus 0 except the LDT host
75 static int bcm1480ht_can_access(struct pci_bus *bus, int devfn)
82 if (bus->number == 0) {
96 static int bcm1480ht_pcibios_read(struct pci_bus *bus, unsigned int devfn,
106 if (bcm1480ht_can_access(bus, devfn))
107 data = READCFG32(CFGADDR(bus, devfn, where));
121 static int bcm1480ht_pcibios_write(struct pci_bus *bus, unsigned int devfn,
124 u32 cfgaddr = CFGADDR(bus, devfn, where);
132 if (!bcm1480ht_can_access(bus, devfn))