Lines Matching refs:devfn
181 static u32 iop13xx_atux_cfg_address(struct pci_bus *bus, int devfn, int where) in iop13xx_atux_cfg_address() argument
187 addr = 1 << (PCI_SLOT(devfn) + 16) | (PCI_SLOT(devfn) << 11); in iop13xx_atux_cfg_address()
189 addr = bus->number << 16 | PCI_SLOT(devfn) << 11 | 1; in iop13xx_atux_cfg_address()
191 addr |= PCI_FUNC(devfn) << 8 | ((where & 0xff) & ~3); in iop13xx_atux_cfg_address()
204 static u32 iop13xx_atue_cfg_address(struct pci_bus *bus, int devfn, int where) in iop13xx_atue_cfg_address() argument
210 bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn)); in iop13xx_atue_cfg_address()
212 ((u32) PCI_SLOT(devfn)) << IOP13XX_ATUE_OCCAR_DEV_NUM | in iop13xx_atue_cfg_address()
213 ((u32) PCI_FUNC(devfn)) << IOP13XX_ATUE_OCCAR_FUNC_NUM | in iop13xx_atue_cfg_address()
279 iop13xx_atux_read_config(struct pci_bus *bus, unsigned int devfn, int where, in iop13xx_atux_read_config() argument
282 unsigned long addr = iop13xx_atux_cfg_address(bus, devfn, where); in iop13xx_atux_read_config()
297 iop13xx_atux_write_config(struct pci_bus *bus, unsigned int devfn, int where, in iop13xx_atux_write_config() argument
300 unsigned long addr = iop13xx_atux_cfg_address(bus, devfn, where); in iop13xx_atux_write_config()
419 iop13xx_atue_read_config(struct pci_bus *bus, unsigned int devfn, int where, in iop13xx_atue_read_config() argument
423 unsigned long addr = iop13xx_atue_cfg_address(bus, devfn, where); in iop13xx_atue_read_config()
426 if (!PCI_SLOT(devfn) || (addr & 1)) { in iop13xx_atue_read_config()
444 iop13xx_atue_write_config(struct pci_bus *bus, unsigned int devfn, int where, in iop13xx_atue_write_config() argument
447 unsigned long addr = iop13xx_atue_cfg_address(bus, devfn, where); in iop13xx_atue_write_config()