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
117 int where, int size, u32 * val) in sb1250_pcibios_read() argument
121 if ((size == 2) && (where & 1)) in sb1250_pcibios_read()
123 else if ((size == 4) && (where & 3)) in sb1250_pcibios_read()
127 data = READCFG32(CFGADDR(bus, devfn, where)); in sb1250_pcibios_read()
132 *val = (data >> ((where & 3) << 3)) & 0xff; in sb1250_pcibios_read()
134 *val = (data >> ((where & 3) << 3)) & 0xffff; in sb1250_pcibios_read()
142 int where, int size, u32 val) in sb1250_pcibios_write() argument
144 u32 cfgaddr = CFGADDR(bus, devfn, where); in sb1250_pcibios_write()
147 if ((size == 2) && (where & 1)) in sb1250_pcibios_write()
149 else if ((size == 4) && (where & 3)) in sb1250_pcibios_write()
158 data = (data & ~(0xff << ((where & 3) << 3))) | in sb1250_pcibios_write()
159 (val << ((where & 3) << 3)); in sb1250_pcibios_write()
161 data = (data & ~(0xffff << ((where & 3) << 3))) | in sb1250_pcibios_write()
162 (val << ((where & 3) << 3)); in sb1250_pcibios_write()