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
129 int where, int size, u32 * val) in sb1250_pcibios_read() argument
133 if ((size == 2) && (where & 1)) in sb1250_pcibios_read()
135 else if ((size == 4) && (where & 3)) in sb1250_pcibios_read()
139 data = READCFG32(CFGADDR(bus, devfn, where)); in sb1250_pcibios_read()
144 *val = (data >> ((where & 3) << 3)) & 0xff; in sb1250_pcibios_read()
146 *val = (data >> ((where & 3) << 3)) & 0xffff; in sb1250_pcibios_read()
154 int where, int size, u32 val) in sb1250_pcibios_write() argument
156 u32 cfgaddr = CFGADDR(bus, devfn, where); in sb1250_pcibios_write()
159 if ((size == 2) && (where & 1)) in sb1250_pcibios_write()
161 else if ((size == 4) && (where & 3)) in sb1250_pcibios_write()
170 data = (data & ~(0xff << ((where & 3) << 3))) | in sb1250_pcibios_write()
171 (val << ((where & 3) << 3)); in sb1250_pcibios_write()
173 data = (data & ~(0xffff << ((where & 3) << 3))) | in sb1250_pcibios_write()
174 (val << ((where & 3) << 3)); in sb1250_pcibios_write()