Lines Matching refs:devfn
104 unsigned int devfn, int where, u32 val);
119 unsigned int devfn, int where, u32 *val) in grpci1_cfg_r32() argument
127 devfn += (0x8 * 6); /* start at AD16=Device0 */ in grpci1_cfg_r32()
130 devfn = 0; /* special case: bridge controller itself */ in grpci1_cfg_r32()
138 pci_conf = (u32 *) (priv->pci_conf | (devfn << 8) | (where & 0xfc)); in grpci1_cfg_r32()
156 unsigned int devfn, int where, u32 *val) in grpci1_cfg_r16() argument
163 ret = grpci1_cfg_r32(priv, bus, devfn, where & ~0x3, &v); in grpci1_cfg_r16()
169 unsigned int devfn, int where, u32 *val) in grpci1_cfg_r8() argument
174 ret = grpci1_cfg_r32(priv, bus, devfn, where & ~0x3, &v); in grpci1_cfg_r8()
181 unsigned int devfn, int where, u32 val) in grpci1_cfg_w32() argument
190 devfn += (0x8 * 6); /* start at AD16=Device0 */ in grpci1_cfg_w32()
193 devfn = 0; /* special case: bridge controller itself */ in grpci1_cfg_w32()
201 (devfn << 8) | (where & 0xfc)); in grpci1_cfg_w32()
208 unsigned int devfn, int where, u32 val) in grpci1_cfg_w16() argument
215 ret = grpci1_cfg_r32(priv, bus, devfn, where&~3, &v); in grpci1_cfg_w16()
220 return grpci1_cfg_w32(priv, bus, devfn, where & ~0x3, v); in grpci1_cfg_w16()
224 unsigned int devfn, int where, u32 val) in grpci1_cfg_w8() argument
229 ret = grpci1_cfg_r32(priv, bus, devfn, where & ~0x3, &v); in grpci1_cfg_w8()
234 return grpci1_cfg_w32(priv, bus, devfn, where & ~0x3, v); in grpci1_cfg_w8()
240 static int grpci1_read_config(struct pci_bus *bus, unsigned int devfn, in grpci1_read_config() argument
247 if (PCI_SLOT(devfn) > 15 || busno > 15) { in grpci1_read_config()
254 ret = grpci1_cfg_r8(priv, busno, devfn, where, val); in grpci1_read_config()
257 ret = grpci1_cfg_r16(priv, busno, devfn, where, val); in grpci1_read_config()
260 ret = grpci1_cfg_r32(priv, busno, devfn, where, val); in grpci1_read_config()
270 busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, *val, size); in grpci1_read_config()
279 static int grpci1_write_config(struct pci_bus *bus, unsigned int devfn, in grpci1_write_config() argument
285 if (PCI_SLOT(devfn) > 15 || busno > 15) in grpci1_write_config()
291 busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, size, val); in grpci1_write_config()
298 return grpci1_cfg_w8(priv, busno, devfn, where, val); in grpci1_write_config()
300 return grpci1_cfg_w16(priv, busno, devfn, where, val); in grpci1_write_config()
302 return grpci1_cfg_w32(priv, busno, devfn, where, val); in grpci1_write_config()