Lines Matching refs:where

237 				unsigned int devfn, int where, u32 *val)  in grpci2_cfg_r32()  argument
243 if (where & 0x3) in grpci2_cfg_r32()
263 (devfn << 8) | (where & 0xfc)); in grpci2_cfg_r32()
283 unsigned int devfn, int where, u32 *val) in grpci2_cfg_r16() argument
288 if (where & 0x1) in grpci2_cfg_r16()
290 ret = grpci2_cfg_r32(priv, bus, devfn, where & ~0x3, &v); in grpci2_cfg_r16()
291 *val = 0xffff & (v >> (8 * (where & 0x3))); in grpci2_cfg_r16()
296 unsigned int devfn, int where, u32 *val) in grpci2_cfg_r8() argument
301 ret = grpci2_cfg_r32(priv, bus, devfn, where & ~0x3, &v); in grpci2_cfg_r8()
302 *val = 0xff & (v >> (8 * (where & 3))); in grpci2_cfg_r8()
308 unsigned int devfn, int where, u32 val) in grpci2_cfg_w32() argument
313 if (where & 0x3) in grpci2_cfg_w32()
333 (devfn << 8) | (where & 0xfc)); in grpci2_cfg_w32()
346 unsigned int devfn, int where, u32 val) in grpci2_cfg_w16() argument
351 if (where & 0x1) in grpci2_cfg_w16()
353 ret = grpci2_cfg_r32(priv, bus, devfn, where&~3, &v); in grpci2_cfg_w16()
356 v = (v & ~(0xffff << (8 * (where & 0x3)))) | in grpci2_cfg_w16()
357 ((0xffff & val) << (8 * (where & 0x3))); in grpci2_cfg_w16()
358 return grpci2_cfg_w32(priv, bus, devfn, where & ~0x3, v); in grpci2_cfg_w16()
362 unsigned int devfn, int where, u32 val) in grpci2_cfg_w8() argument
367 ret = grpci2_cfg_r32(priv, bus, devfn, where & ~0x3, &v); in grpci2_cfg_w8()
370 v = (v & ~(0xff << (8 * (where & 0x3)))) | in grpci2_cfg_w8()
371 ((0xff & val) << (8 * (where & 0x3))); in grpci2_cfg_w8()
372 return grpci2_cfg_w32(priv, bus, devfn, where & ~0x3, v); in grpci2_cfg_w8()
379 int where, int size, u32 *val) in grpci2_read_config() argument
392 ret = grpci2_cfg_r8(priv, busno, devfn, where, val); in grpci2_read_config()
395 ret = grpci2_cfg_r16(priv, busno, devfn, where, val); in grpci2_read_config()
398 ret = grpci2_cfg_r32(priv, busno, devfn, where, val); in grpci2_read_config()
407 "size=%d\n", busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, in grpci2_read_config()
418 int where, int size, u32 val) in grpci2_write_config() argument
429 where, size, val); in grpci2_write_config()
436 return grpci2_cfg_w8(priv, busno, devfn, where, val); in grpci2_write_config()
438 return grpci2_cfg_w16(priv, busno, devfn, where, val); in grpci2_write_config()
440 return grpci2_cfg_w32(priv, busno, devfn, where, val); in grpci2_write_config()