• Home
  • Raw
  • Download

Lines Matching refs:devfn

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