Lines Matching full:where
40 #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where)) argument
41 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) argument
108 int where, int size, u32 * val) in bcm1480_pcibios_read() argument
112 if ((size == 2) && (where & 1)) in bcm1480_pcibios_read()
114 else if ((size == 4) && (where & 3)) in bcm1480_pcibios_read()
118 data = READCFG32(CFGADDR(bus, devfn, where)); in bcm1480_pcibios_read()
123 *val = (data >> ((where & 3) << 3)) & 0xff; in bcm1480_pcibios_read()
125 *val = (data >> ((where & 3) << 3)) & 0xffff; in bcm1480_pcibios_read()
133 int where, int size, u32 val) in bcm1480_pcibios_write() argument
135 u32 cfgaddr = CFGADDR(bus, devfn, where); in bcm1480_pcibios_write()
138 if ((size == 2) && (where & 1)) in bcm1480_pcibios_write()
140 else if ((size == 4) && (where & 3)) in bcm1480_pcibios_write()
149 data = (data & ~(0xff << ((where & 3) << 3))) | in bcm1480_pcibios_write()
150 (val << ((where & 3) << 3)); in bcm1480_pcibios_write()
152 data = (data & ~(0xffff << ((where & 3) << 3))) | in bcm1480_pcibios_write()
153 (val << ((where & 3) << 3)); in bcm1480_pcibios_write()