Lines Matching defs:devfn
53 #define PCIE_CONF_ADDR(bus, devfn, where) \
54 (PCIE_CONF_BUS(bus) | PCIE_CONF_DEV(PCI_SLOT(devfn)) | \
55 PCIE_CONF_FUNC(PCI_FUNC(devfn)) | PCIE_CONF_REG(where) | \
106 int devfn;
346 int devfn);
348 static int mvebu_pcie_child_rd_conf(struct pci_bus *bus, u32 devfn, int where,
355 port = mvebu_pcie_find_port(pcie, bus, devfn);
364 mvebu_writel(port, PCIE_CONF_ADDR(bus->number, devfn, where),
384 static int mvebu_pcie_child_wr_conf(struct pci_bus *bus, u32 devfn,
391 port = mvebu_pcie_find_port(pcie, bus, devfn);
400 mvebu_writel(port, PCIE_CONF_ADDR(bus->number, devfn, where),
963 int devfn)
973 if (bus->number == 0 && port->devfn == devfn)
985 static int mvebu_pcie_wr_conf(struct pci_bus *bus, u32 devfn,
991 port = mvebu_pcie_find_port(pcie, bus, devfn);
999 static int mvebu_pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where,
1005 port = mvebu_pcie_find_port(pcie, bus, devfn);
1177 static int mvebu_get_tgt_attr(struct device_node *np, int devfn,
1210 if (slot == PCI_SLOT(devfn) && type == rtype) {
1289 port->devfn = of_pci_get_devfn(child);
1290 if (port->devfn < 0)
1292 if (PCI_FUNC(port->devfn) != 0) {
1298 ret = mvebu_get_tgt_attr(dev->of_node, port->devfn, IORESOURCE_MEM,
1307 mvebu_get_tgt_attr(dev->of_node, port->devfn, IORESOURCE_IO,