Lines Matching refs:devfn

237 				unsigned int devfn, int where, u32 *val)  in grpci2_cfg_r32()  argument
247 devfn += (0x8 * 6); /* start at AD16=Device0 */ in grpci2_cfg_r32()
250 devfn = 0; /* special case: bridge controller itself */ 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
290 ret = grpci2_cfg_r32(priv, bus, devfn, where & ~0x3, &v); 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()
308 unsigned int devfn, int where, u32 val) in grpci2_cfg_w32() argument
317 devfn += (0x8 * 6); /* start at AD16=Device0 */ in grpci2_cfg_w32()
320 devfn = 0; /* special case: bridge controller itself */ 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
353 ret = grpci2_cfg_r32(priv, bus, devfn, where&~3, &v); 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()
372 return grpci2_cfg_w32(priv, bus, devfn, where & ~0x3, v); in grpci2_cfg_w8()
378 static int grpci2_read_config(struct pci_bus *bus, unsigned int devfn, in grpci2_read_config() argument
385 if (PCI_SLOT(devfn) > 15 || busno > 255) { in grpci2_read_config()
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()
417 static int grpci2_write_config(struct pci_bus *bus, unsigned int devfn, in grpci2_write_config() argument
423 if (PCI_SLOT(devfn) > 15 || busno > 255) in grpci2_write_config()
428 "val=%x\n", busno, PCI_SLOT(devfn), PCI_FUNC(devfn), 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()