Lines Matching refs:bdf
276 static unsigned long tegra_pcie_conf_offset(pci_dev_t bdf, int where) in tegra_pcie_conf_offset() argument
278 return ((where & 0xf00) << 16) | (PCI_BUS(bdf) << 16) | in tegra_pcie_conf_offset()
279 (PCI_DEV(bdf) << 11) | (PCI_FUNC(bdf) << 8) | in tegra_pcie_conf_offset()
283 static int tegra_pcie_conf_address(struct tegra_pcie *pcie, pci_dev_t bdf, in tegra_pcie_conf_address() argument
286 unsigned int bus = PCI_BUS(bdf); in tegra_pcie_conf_address()
289 unsigned int dev = PCI_DEV(bdf); in tegra_pcie_conf_address()
301 unsigned int dev = PCI_DEV(bdf); in tegra_pcie_conf_address()
306 *address = pcie->cs.start + tegra_pcie_conf_offset(bdf, where); in tegra_pcie_conf_address()
311 static int pci_tegra_read_config(struct udevice *bus, pci_dev_t bdf, in pci_tegra_read_config() argument
319 err = tegra_pcie_conf_address(pcie, bdf, offset, &address); in pci_tegra_read_config()
329 if (PCI_BUS(bdf) == 0) { in pci_tegra_read_config()
343 static int pci_tegra_write_config(struct udevice *bus, pci_dev_t bdf, in pci_tegra_write_config() argument
352 err = tegra_pcie_conf_address(pcie, bdf, offset, &address); in pci_tegra_write_config()