Home
last modified time | relevance | path

Searched refs:PCI_DEV (Results 1 – 25 of 36) sorted by relevance

12

/third_party/uboot/u-boot-2020.01/drivers/pci/
Dpci_mvebu.c52 (PCIE_CONF_BUS(PCI_BUS(dev)) | PCIE_CONF_DEV(PCI_DEV(dev)) | \
145 int local_dev = PCI_DEV(pcie->dev); in mvebu_pcie_read_config()
150 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in mvebu_pcie_read_config()
153 if (PCI_BUS(bdf) == local_bus && PCI_DEV(bdf) != local_dev) { in mvebu_pcie_read_config()
154 if (local_dev == 0 && PCI_DEV(bdf) != 1) { in mvebu_pcie_read_config()
162 } else if (local_dev != 0 && PCI_DEV(bdf) != 0) { in mvebu_pcie_read_config()
189 int local_dev = PCI_DEV(pcie->dev); in mvebu_pcie_write_config()
193 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in mvebu_pcie_write_config()
197 if (PCI_BUS(bdf) == local_bus && PCI_DEV(bdf) != local_dev) { in mvebu_pcie_write_config()
198 if (local_dev == 0 && PCI_DEV(bdf) != 1) { in mvebu_pcie_write_config()
[all …]
Dpci_gt64120.c48 unsigned int dev = PCI_DEV(bdf); in gt_config_access()
49 unsigned int devfn = PCI_DEV(bdf) << 3 | PCI_FUNC(bdf); in gt_config_access()
61 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf), where, *data); in gt_config_access()
110 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf), where, *data); in gt_config_access()
Dpcie_phytium.c39 addr += PCI_DEV(parent) << 15; in phytium_pci_skip_dev()
87 unsigned int dev_no = PCI_DEV(bdf); in pci_phytium_conf_address()
93 addr += PCI_DEV(bdf) << 15; in pci_phytium_conf_address()
Dpcie_intel_fpga.c97 if (IS_ROOT_PORT(pcie, bdf) && PCI_DEV(bdf) == 0 && in intel_fpga_pcie_hide_rc_bar()
129 if (IS_ROOT_PORT(pcie, bdf) && PCI_DEV(bdf) > 0) in intel_fpga_pcie_addr_valid()
132 if ((PCI_BUS(bdf) == pcie->first_busno + 1) && PCI_DEV(bdf) > 0) in intel_fpga_pcie_addr_valid()
207 headers[2] = TLP_CFG_DW2(busno, PCI_DEV(bdf), PCI_FUNC(bdf), offset); in tlp_cfg_dword_read()
222 headers[2] = TLP_CFG_DW2(busno, PCI_DEV(bdf), PCI_FUNC(bdf), offset); in tlp_cfg_dword_write()
313 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in _pcie_intel_fpga_write_config()
336 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in pcie_intel_fpga_read_config()
Dpci_indirect.c26 b = PCI_BUS(dev); d = PCI_DEV(dev); f = PCI_FUNC(dev); \
41 b = PCI_BUS(dev); d = PCI_DEV(dev); f = PCI_FUNC(dev); \
Dpci_msc01.c35 unsigned int dev = PCI_DEV(bdf); in msc01_config_access()
36 unsigned int devfn = PCI_DEV(bdf) << 3 | PCI_FUNC(bdf); in msc01_config_access()
Dpcie_dw_mvebu.c220 if ((PCI_BUS(d) == first_busno) && (PCI_DEV(d) > 0)) in pcie_dw_addr_valid()
222 if ((PCI_BUS(d) == first_busno + 1) && (PCI_DEV(d) > 0)) in pcie_dw_addr_valid()
252 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in pcie_dw_mvebu_read_config()
298 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in pcie_dw_mvebu_write_config()
Dpci-rcar-gen2.c99 slot = PCI_DEV(d); in rcar_gen2_pci_addr_valid()
114 return priv->cfg_base + (PCI_DEV(bdf) >> 1) * 0x100 + (offset & ~3); in get_bus_address()
122 reg = PCI_DEV(bdf) ? RCAR_AHBPCI_WIN1_DEVICE : RCAR_AHBPCI_WIN1_HOST; in setup_bus_address()
Dpci_auto.c338 PCI_DEV(dm_pci_get_bdf(dev))); in dm_pciauto_config_device()
358 PCI_DEV(dm_pci_get_bdf(dev))); in dm_pciauto_config_device()
365 PCI_DEV(dm_pci_get_bdf(dev))); in dm_pciauto_config_device()
Dpci_auto_old.c343 PCI_DEV(dev)); in pciauto_config_device()
373 PCI_DEV(dev)); in pciauto_config_device()
381 PCI_DEV(dev)); in pciauto_config_device()
Dpcie_dw_ti.c269 if ((PCI_BUS(d) == first_busno) && (PCI_DEV(d) > 0)) in pcie_dw_addr_valid()
271 if ((PCI_BUS(d) == first_busno + 1) && (PCI_DEV(d) > 0)) in pcie_dw_addr_valid()
301 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in pcie_dw_ti_read_config()
347 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in pcie_dw_ti_write_config()
Dpcie_bvt.c118 if (PCI_DEV(d) == 0) in pcie_write_to_dbi()
129 if (PCI_DEV(d) == 0) { in pcie_write_to_device()
Dpcie_mediatek.c110 u32 slot = PCI_DEV(port->slot << 11); in mtk_pcie_startup_port()
253 slot = PCI_DEV(addr.phys_hi); in mtk_pcie_probe()
Dpci-aardvark.c175 if ((PCI_BUS(bdf) == first_busno) && (PCI_DEV(bdf) > 0)) in pcie_advk_addr_valid()
309 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in pcie_advk_read_config()
405 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in pcie_advk_write_config()
Dpcie_ecam_generic.c46 addr += PCI_DEV(bdf) << 15; in pci_generic_ecam_conf_address()
Dpci.c374 PCI_BUS(dev), PCI_DEV(dev), PCI_FUNC(dev)); in pci_hose_scan_bus()
391 PCI_BUS(dev), PCI_DEV(dev), 6 - indent, PCI_FUNC(dev), in pci_hose_scan_bus()
401 PCI_BUS(dev), PCI_DEV(dev), PCI_FUNC(dev)); in pci_hose_scan_bus()
Dpcie_xilinx.c62 unsigned int dev = PCI_DEV(bdf); in pcie_xilinx_config_address()
Dpci_tegra.c279 (PCI_DEV(bdf) << 11) | (PCI_FUNC(bdf) << 8) | in tegra_pcie_conf_offset()
289 unsigned int dev = PCI_DEV(bdf); in tegra_pcie_conf_address()
301 unsigned int dev = PCI_DEV(bdf); in tegra_pcie_conf_address()
473 *index = PCI_DEV(addr.phys_hi) - 1; in tegra_pcie_parse_port_info()
Dpci_sandbox.c58 devfn = SANDBOX_PCI_DEVFN(PCI_DEV(devfn), in sandbox_pci_read_config()
Dpci_sh7751.c85 return BIT(31) | (PCI_DEV(bdf) << 8) | (offset & ~3); in get_bus_address()
Dpcie_imx.c350 if ((PCI_BUS(d) == 0) && (PCI_DEV(d) > 1)) in imx_pcie_addr_valid()
352 if ((PCI_BUS(d) == 1) && (PCI_DEV(d) > 0)) in imx_pcie_addr_valid()
/third_party/uboot/u-boot-2020.01/arch/x86/cpu/
Dirq.c259 rt->rtr_devfn = (PCI_DEV(priv->bdf) << 3) | PCI_FUNC(priv->bdf); in create_pirq_routing_table()
275 i, PCI_BUS(pr.bdf), PCI_DEV(pr.bdf), in create_pirq_routing_table()
280 PCI_BUS(pr.bdf), PCI_DEV(pr.bdf)); in create_pirq_routing_table()
283 PCI_BUS(pr.bdf), PCI_DEV(pr.bdf)); in create_pirq_routing_table()
304 fill_irq_info(priv, slot, PCI_BUS(pr.bdf), PCI_DEV(pr.bdf), in create_pirq_routing_table()
/third_party/uboot/u-boot-2020.01/drivers/bios_emulator/
Datibios.c253 (int)PCI_DEV(bdf) << 3 | (int)PCI_FUNC(bdf); in PCI_doBIOSPOST()
256 ((int)PCI_DEV(pcidev) << 3) | (int)PCI_FUNC(pcidev); in PCI_doBIOSPOST()
525 vga_info->device = PCI_DEV(bdf); in PCI_postController()
529 vga_info->device = PCI_DEV(pcidev); in PCI_postController()
560 PCI_BUS(bdf), PCI_FUNC(bdf), PCI_DEV(bdf)); in biosemu_setup()
563 PCI_BUS(pcidev), PCI_FUNC(pcidev), PCI_DEV(pcidev)); in biosemu_setup()
/third_party/uboot/u-boot-2020.01/board/gateworks/gw_ventana/
Dgw_ventana.c553 PCI_BUS(dev), PCI_DEV(dev), PCI_FUNC(dev), vendor, device); in board_pci_fixup_dev()
581 PCI_DEV(dev) == 0 && PCI_FUNC(dev) == 0) { in board_pci_fixup_dev()
885 (PCI_DEV(x->devfn)<<11)| \
895 PCI_DEV(dev->devfn), PCI_FUNC(dev->devfn)); in fdt_add_pci_node()
985 b += PCI_DEV(d->devfn); in fdt_fixup_gw16082()
/third_party/uboot/u-boot-2020.01/arch/x86/lib/
Dbios_interrupts.c147 busdevfn = (PCI_BUS(bdf) << 8) | PCI_DEV(bdf) << 3 | in int1a_handler()

12