Lines Matching refs:devfn

47 #define  PCIE_CONF_ADDR(bus, devfn, where) \  argument
48 (PCIE_CONF_BUS(bus) | PCIE_CONF_DEV(PCI_SLOT(devfn)) | \
49 PCIE_CONF_FUNC(PCI_FUNC(devfn)) | PCIE_CONF_REG(where) | \
116 int devfn; member
255 u32 devfn, int where, int size, u32 *val) in mvebu_pcie_hw_rd_conf() argument
257 mvebu_writel(port, PCIE_CONF_ADDR(bus->number, devfn, where), in mvebu_pcie_hw_rd_conf()
272 u32 devfn, int where, int size, u32 val) in mvebu_pcie_hw_wr_conf() argument
276 mvebu_writel(port, PCIE_CONF_ADDR(bus->number, devfn, where), in mvebu_pcie_hw_wr_conf()
618 int devfn) in mvebu_pcie_find_port() argument
625 if (bus->number == 0 && port->devfn == devfn) in mvebu_pcie_find_port()
637 static int mvebu_pcie_wr_conf(struct pci_bus *bus, u32 devfn, in mvebu_pcie_wr_conf() argument
644 port = mvebu_pcie_find_port(pcie, bus, devfn); in mvebu_pcie_wr_conf()
663 PCI_SLOT(devfn) != 0) in mvebu_pcie_wr_conf()
667 ret = mvebu_pcie_hw_wr_conf(port, bus, devfn, in mvebu_pcie_wr_conf()
674 static int mvebu_pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, in mvebu_pcie_rd_conf() argument
681 port = mvebu_pcie_find_port(pcie, bus, devfn); in mvebu_pcie_rd_conf()
704 PCI_SLOT(devfn) != 0) { in mvebu_pcie_rd_conf()
710 ret = mvebu_pcie_hw_rd_conf(port, bus, devfn, in mvebu_pcie_rd_conf()
845 static int mvebu_get_tgt_attr(struct device_node *np, int devfn, in mvebu_get_tgt_attr() argument
878 if (slot == PCI_SLOT(devfn) && type == rtype) { in mvebu_get_tgt_attr()
1010 port->devfn = of_pci_get_devfn(child); in mvebu_pcie_probe()
1011 if (port->devfn < 0) in mvebu_pcie_probe()
1014 ret = mvebu_get_tgt_attr(np, port->devfn, IORESOURCE_MEM, in mvebu_pcie_probe()
1023 mvebu_get_tgt_attr(np, port->devfn, IORESOURCE_IO, in mvebu_pcie_probe()