Lines Matching refs:devfn
48 #define PCIE_CONF_ADDR(bus, devfn, where) \ argument
49 (PCIE_CONF_BUS(bus) | PCIE_CONF_DEV(PCI_SLOT(devfn)) | \
50 PCIE_CONF_FUNC(PCI_FUNC(devfn)) | PCIE_CONF_REG(where) | \
140 int devfn; member
278 u32 devfn, int where, int size, u32 *val) in mvebu_pcie_hw_rd_conf() argument
282 mvebu_writel(port, PCIE_CONF_ADDR(bus->number, devfn, where), in mvebu_pcie_hw_rd_conf()
302 u32 devfn, int where, int size, u32 val) in mvebu_pcie_hw_wr_conf() argument
306 mvebu_writel(port, PCIE_CONF_ADDR(bus->number, devfn, where), in mvebu_pcie_hw_wr_conf()
760 int devfn) in mvebu_pcie_find_port() argument
767 if (bus->number == 0 && port->devfn == devfn) in mvebu_pcie_find_port()
779 static int mvebu_pcie_wr_conf(struct pci_bus *bus, u32 devfn, in mvebu_pcie_wr_conf() argument
786 port = mvebu_pcie_find_port(pcie, bus, devfn); in mvebu_pcie_wr_conf()
798 ret = mvebu_pcie_hw_wr_conf(port, bus, devfn, in mvebu_pcie_wr_conf()
805 static int mvebu_pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, in mvebu_pcie_rd_conf() argument
812 port = mvebu_pcie_find_port(pcie, bus, devfn); in mvebu_pcie_rd_conf()
828 ret = mvebu_pcie_hw_rd_conf(port, bus, devfn, in mvebu_pcie_rd_conf()
947 static int mvebu_get_tgt_attr(struct device_node *np, int devfn, in mvebu_get_tgt_attr() argument
980 if (slot == PCI_SLOT(devfn) && type == rtype) { in mvebu_get_tgt_attr()
1067 port->devfn = of_pci_get_devfn(child); in mvebu_pcie_parse_port()
1068 if (port->devfn < 0) in mvebu_pcie_parse_port()
1071 ret = mvebu_get_tgt_attr(dev->of_node, port->devfn, IORESOURCE_MEM, in mvebu_pcie_parse_port()
1080 mvebu_get_tgt_attr(dev->of_node, port->devfn, IORESOURCE_IO, in mvebu_pcie_parse_port()