Lines Matching defs:devfn
284 static int mtk_pcie_hw_rd_cfg(struct mtk_pcie_port *port, u32 bus, u32 devfn,
293 writel(CFG_HEADER_DW2(where, PCI_FUNC(devfn), PCI_SLOT(devfn), bus),
316 static int mtk_pcie_hw_wr_cfg(struct mtk_pcie_port *port, u32 bus, u32 devfn,
323 writel(CFG_HEADER_DW2(where, PCI_FUNC(devfn), PCI_SLOT(devfn), bus),
340 unsigned int devfn)
347 * Walk the bus hierarchy to get the devfn value
353 devfn = dev->devfn;
357 if (port->slot == PCI_SLOT(devfn))
363 static int mtk_pcie_config_read(struct pci_bus *bus, unsigned int devfn,
369 port = mtk_pcie_find_port(bus, devfn);
373 return mtk_pcie_hw_rd_cfg(port, bn, devfn, where, size, val);
376 static int mtk_pcie_config_write(struct pci_bus *bus, unsigned int devfn,
382 port = mtk_pcie_find_port(bus, devfn);
386 return mtk_pcie_hw_wr_cfg(port, bn, devfn, where, size, val);
760 unsigned int devfn, int where)
764 writel(PCIE_CONF_ADDR(where, PCI_FUNC(devfn), PCI_SLOT(devfn),
1061 dev_err(dev, "failed to get devfn: %d\n", err);