Lines Matching refs:where
53 #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where)) argument
54 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) argument
121 int where, int size, u32 * val) in bcm1480_pcibios_read() argument
125 if ((size == 2) && (where & 1)) in bcm1480_pcibios_read()
127 else if ((size == 4) && (where & 3)) in bcm1480_pcibios_read()
131 data = READCFG32(CFGADDR(bus, devfn, where)); in bcm1480_pcibios_read()
136 *val = (data >> ((where & 3) << 3)) & 0xff; in bcm1480_pcibios_read()
138 *val = (data >> ((where & 3) << 3)) & 0xffff; in bcm1480_pcibios_read()
146 int where, int size, u32 val) in bcm1480_pcibios_write() argument
148 u32 cfgaddr = CFGADDR(bus, devfn, where); in bcm1480_pcibios_write()
151 if ((size == 2) && (where & 1)) in bcm1480_pcibios_write()
153 else if ((size == 4) && (where & 3)) in bcm1480_pcibios_write()
162 data = (data & ~(0xff << ((where & 3) << 3))) | in bcm1480_pcibios_write()
163 (val << ((where & 3) << 3)); in bcm1480_pcibios_write()
165 data = (data & ~(0xffff << ((where & 3) << 3))) | in bcm1480_pcibios_write()
166 (val << ((where & 3) << 3)); in bcm1480_pcibios_write()