Lines Matching refs:where
52 #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where)) argument
53 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) argument
120 int where, int size, u32 * val) in bcm1480_pcibios_read() argument
124 if ((size == 2) && (where & 1)) in bcm1480_pcibios_read()
126 else if ((size == 4) && (where & 3)) in bcm1480_pcibios_read()
130 data = READCFG32(CFGADDR(bus, devfn, where)); in bcm1480_pcibios_read()
135 *val = (data >> ((where & 3) << 3)) & 0xff; in bcm1480_pcibios_read()
137 *val = (data >> ((where & 3) << 3)) & 0xffff; in bcm1480_pcibios_read()
145 int where, int size, u32 val) in bcm1480_pcibios_write() argument
147 u32 cfgaddr = CFGADDR(bus, devfn, where); in bcm1480_pcibios_write()
150 if ((size == 2) && (where & 1)) in bcm1480_pcibios_write()
152 else if ((size == 4) && (where & 3)) in bcm1480_pcibios_write()
161 data = (data & ~(0xff << ((where & 3) << 3))) | in bcm1480_pcibios_write()
162 (val << ((where & 3) << 3)); in bcm1480_pcibios_write()
164 data = (data & ~(0xffff << ((where & 3) << 3))) | in bcm1480_pcibios_write()
165 (val << ((where & 3) << 3)); in bcm1480_pcibios_write()