Lines Matching full:where
38 #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where)) argument
39 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) argument
97 int where, int size, u32 * val) in bcm1480ht_pcibios_read() argument
101 if ((size == 2) && (where & 1)) in bcm1480ht_pcibios_read()
103 else if ((size == 4) && (where & 3)) in bcm1480ht_pcibios_read()
107 data = READCFG32(CFGADDR(bus, devfn, where)); in bcm1480ht_pcibios_read()
112 *val = (data >> ((where & 3) << 3)) & 0xff; in bcm1480ht_pcibios_read()
114 *val = (data >> ((where & 3) << 3)) & 0xffff; in bcm1480ht_pcibios_read()
122 int where, int size, u32 val) in bcm1480ht_pcibios_write() argument
124 u32 cfgaddr = CFGADDR(bus, devfn, where); in bcm1480ht_pcibios_write()
127 if ((size == 2) && (where & 1)) in bcm1480ht_pcibios_write()
129 else if ((size == 4) && (where & 3)) in bcm1480ht_pcibios_write()
138 data = (data & ~(0xff << ((where & 3) << 3))) | in bcm1480ht_pcibios_write()
139 (val << ((where & 3) << 3)); in bcm1480ht_pcibios_write()
141 data = (data & ~(0xffff << ((where & 3) << 3))) | in bcm1480ht_pcibios_write()
142 (val << ((where & 3) << 3)); in bcm1480ht_pcibios_write()