Lines Matching refs:devfn
81 static unsigned long u3_agp_cfa0(u8 devfn, u8 off)
83 return (1 << (unsigned long)PCI_SLOT(devfn)) |
84 ((unsigned long)PCI_FUNC(devfn) << 8) |
88 static unsigned long u3_agp_cfa1(u8 bus, u8 devfn, u8 off)
91 ((unsigned long)devfn << 8) |
117 static int u3_agp_read_config(struct pci_bus *bus, unsigned int devfn,
127 addr = u3_agp_cfg_access(hose, bus->number, devfn, offset);
148 static int u3_agp_write_config(struct pci_bus *bus, unsigned int devfn,
158 addr = u3_agp_cfg_access(hose, bus->number, devfn, offset);
185 static unsigned long u3_ht_cfa0(u8 devfn, u8 off)
187 return (devfn << 8) | off;
190 static unsigned long u3_ht_cfa1(u8 bus, u8 devfn, u8 off)
192 return u3_ht_cfa0(devfn, off) + (bus << 16) + 0x01000000UL;
196 u8 bus, u8 devfn, u8 offset)
199 if (PCI_SLOT(devfn) == 0)
201 return hose->cfg_data + u3_ht_cfa0(devfn, offset);
203 return hose->cfg_data + u3_ht_cfa1(bus, devfn, offset);
254 static int u3_ht_read_config(struct pci_bus *bus, unsigned int devfn,
264 if (bus->number == hose->first_busno && devfn == PCI_DEVFN(0, 0))
270 addr = u3_ht_cfg_access(hose, bus->number, devfn, offset);
292 static int u3_ht_write_config(struct pci_bus *bus, unsigned int devfn,
302 if (bus->number == hose->first_busno && devfn == PCI_DEVFN(0, 0))
308 addr = u3_ht_cfg_access(hose, bus->number, devfn, offset);
335 static unsigned int u4_pcie_cfa0(unsigned int devfn, unsigned int off)
337 return (1 << PCI_SLOT(devfn)) |
338 (PCI_FUNC(devfn) << 8) |
343 static unsigned int u4_pcie_cfa1(unsigned int bus, unsigned int devfn,
347 (devfn << 8) |
371 static int u4_pcie_read_config(struct pci_bus *bus, unsigned int devfn,
382 addr = u4_pcie_cfg_access(hose, bus->number, devfn, offset);
402 static int u4_pcie_write_config(struct pci_bus *bus, unsigned int devfn,
413 addr = u4_pcie_cfg_access(hose, bus->number, devfn, offset);