Lines Matching refs:devfn

76 static int pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where,  in pcie_rd_conf()  argument
82 if (pcie_valid_config(bus->number, PCI_SLOT(devfn)) == 0) { in pcie_rd_conf()
88 ret = orion_pcie_rd_conf(PCIE_BASE, bus, devfn, where, size, val); in pcie_rd_conf()
94 static int pcie_rd_conf_wa(struct pci_bus *bus, u32 devfn, in pcie_rd_conf_wa() argument
99 if (pcie_valid_config(bus->number, PCI_SLOT(devfn)) == 0) { in pcie_rd_conf_wa()
115 bus, devfn, where, size, val); in pcie_rd_conf_wa()
120 static int pcie_wr_conf(struct pci_bus *bus, u32 devfn, in pcie_wr_conf() argument
126 if (pcie_valid_config(bus->number, PCI_SLOT(devfn)) == 0) in pcie_wr_conf()
130 ret = orion_pcie_wr_conf(PCIE_BASE, bus, devfn, where, size, val); in pcie_wr_conf()
322 static int orion5x_pci_valid_config(int bus, u32 devfn) in orion5x_pci_valid_config() argument
328 if (PCI_SLOT(devfn) == 0 && PCI_FUNC(devfn) != 0) in orion5x_pci_valid_config()
335 if (orion5x_pci_cardbus_mode && PCI_SLOT(devfn) > 1) in orion5x_pci_valid_config()
342 static int orion5x_pci_rd_conf(struct pci_bus *bus, u32 devfn, in orion5x_pci_rd_conf() argument
345 if (!orion5x_pci_valid_config(bus->number, devfn)) { in orion5x_pci_rd_conf()
350 return orion5x_pci_hw_rd_conf(bus->number, PCI_SLOT(devfn), in orion5x_pci_rd_conf()
351 PCI_FUNC(devfn), where, size, val); in orion5x_pci_rd_conf()
354 static int orion5x_pci_wr_conf(struct pci_bus *bus, u32 devfn, in orion5x_pci_wr_conf() argument
357 if (!orion5x_pci_valid_config(bus->number, devfn)) in orion5x_pci_wr_conf()
360 return orion5x_pci_hw_wr_conf(bus->number, PCI_SLOT(devfn), in orion5x_pci_wr_conf()
361 PCI_FUNC(devfn), where, size, val); in orion5x_pci_wr_conf()
517 if (dev->bus->parent == NULL && dev->devfn == 0) { in rc_pci_fixup()