Home
last modified time | relevance | path

Searched refs:PCI_BUS (Results 1 – 25 of 40) sorted by relevance

12

/openbmc/u-boot/drivers/pci/
H A Dpcie_aspeed.c108 if (PCI_BUS(bdf) == 0) in aspeed_pcie_cfg_read()
113 bdf_offset = (PCI_BUS(bdf) << 24) | in aspeed_pcie_cfg_read()
240 if (PCI_BUS(bdf) == 0) in aspeed_pcie_cfg_write()
245 bdf_offset = (PCI_BUS(bdf) << 24) | in aspeed_pcie_cfg_write()
308 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in pcie_aspeed_read_config()
311 if (PCI_BUS(bdf) == 1 && PCI_DEV(bdf) > 0) { in pcie_aspeed_read_config()
321 if (PCI_BUS(bdf) == 2 && PCI_DEV(bdf) > 0) { in pcie_aspeed_read_config()
346 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in pcie_aspeed_write_config()
H A Dpcie_dw_mvebu.c185 if (PCI_BUS(d) == (pcie->first_busno + 1)) in set_cfg_address()
192 if (PCI_BUS(d) == pcie->first_busno) { in set_cfg_address()
196 d = PCI_MASK_BUS(d) | (PCI_BUS(d) - pcie->first_busno); in set_cfg_address()
220 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()
H A Dpci_mvebu.c52 (PCIE_CONF_BUS(PCI_BUS(dev)) | PCIE_CONF_DEV(PCI_DEV(dev)) | \
144 int local_bus = PCI_BUS(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()
188 int local_bus = PCI_BUS(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()
H A Dpci_gt64120.c47 unsigned int bus = PCI_BUS(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()
H A Dpcie_intel_fpga.c63 ((PCI_BUS(bdf) == pcie->first_busno) ? true : false)
130 if ((PCI_BUS(bdf) == pcie->first_busno + 1) && PCI_DEV(bdf) > 0) in intel_fpga_pcie_addr_valid()
199 u8 busno = PCI_BUS(bdf); in tlp_cfg_dword_read()
214 u8 busno = PCI_BUS(bdf); in tlp_cfg_dword_write()
309 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in _pcie_intel_fpga_write_config()
332 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in pcie_intel_fpga_read_config()
H A 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); \
H A 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()
324 if (PCI_BUS(bdf) == pcie->first_busno) in pcie_advk_read_config()
405 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in pcie_advk_write_config()
421 if (PCI_BUS(bdf) == pcie->first_busno) in pcie_advk_write_config()
H A Dpcie_layerscape.c234 if (PCI_BUS(bdf) < bus->seq) in ls_pcie_addr_valid()
237 if ((PCI_BUS(bdf) > bus->seq) && (!ls_pcie_link_up(pcie))) in ls_pcie_addr_valid()
240 if (PCI_BUS(bdf) <= (bus->seq + 1) && (PCI_DEV(bdf) > 0)) in ls_pcie_addr_valid()
255 if (PCI_BUS(bdf) == bus->seq) { in ls_pcie_conf_address()
260 busdev = PCIE_ATU_BUS(PCI_BUS(bdf) - bus->seq) | in ls_pcie_conf_address()
264 if (PCI_BUS(bdf) == bus->seq + 1) { in ls_pcie_conf_address()
H A Dpcie_imx.c320 if (PCI_BUS(d) < 2) in get_bus_address()
325 if (PCI_BUS(d) == 0) { in get_bus_address()
339 if ((PCI_BUS(d) == 0) && (PCI_DEV(d) > 1)) in imx_pcie_addr_valid()
341 if ((PCI_BUS(d) == 1) && (PCI_DEV(d) > 0)) in imx_pcie_addr_valid()
H A Dpci.c45 struct pci_controller *hose = pci_bus_to_hose(PCI_BUS(dev)); \
372 PCI_BUS(dev), PCI_DEV(dev), PCI_FUNC(dev)); in pci_hose_scan_bus()
389 PCI_BUS(dev), PCI_DEV(dev), 6 - indent, PCI_FUNC(dev), in pci_hose_scan_bus()
399 PCI_BUS(dev), PCI_DEV(dev), PCI_FUNC(dev)); in pci_hose_scan_bus()
H A Dpcie_ecam_generic.c45 addr += PCI_BUS(bdf) << 20; in pci_generic_ecam_conf_address()
H A Dpci_auto.c184 PCI_BUS(dm_pci_get_bdf(dev)) - ctlr->seq); in dm_pciauto_prescan_setup_bridge()
316 unsigned int sub_bus = PCI_BUS(dm_pci_get_bdf(dev)); in dm_pciauto_config_device()
H A Dpcie_xilinx.c61 unsigned int bus = PCI_BUS(bdf); in pcie_xilinx_config_address()
H A Dpci_auto_old.c194 PCI_BUS(dev) - hose->first_busno); in pciauto_prescan_setup_bridge()
325 unsigned int sub_bus = PCI_BUS(dev); in pciauto_config_device()
H A Dpci_msc01.c34 unsigned int bus = PCI_BUS(bdf); in msc01_config_access()
H A Dpci_tegra.c278 return ((where & 0xf00) << 16) | (PCI_BUS(bdf) << 16) | in tegra_pcie_conf_offset()
286 unsigned int bus = PCI_BUS(bdf); in tegra_pcie_conf_address()
329 if (PCI_BUS(bdf) == 0) { in pci_tegra_read_config()
/openbmc/u-boot/arch/x86/cpu/
H A Dirq.c258 rt->rtr_bus = PCI_BUS(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()
/openbmc/u-boot/drivers/bios_emulator/
H A Datibios.c253 regs.x.ax = (int)PCI_BUS(bdf) << 8 | in PCI_doBIOSPOST()
256 regs.x.ax = ((int)PCI_BUS(pcidev) << 8) | in PCI_doBIOSPOST()
527 vga_info->bus = PCI_BUS(bdf); in PCI_postController()
531 vga_info->bus = PCI_BUS(pcidev); in PCI_postController()
561 PCI_BUS(bdf), PCI_FUNC(bdf), PCI_DEV(bdf)); in biosemu_setup()
564 PCI_BUS(pcidev), PCI_FUNC(pcidev), PCI_DEV(pcidev)); in biosemu_setup()
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/include/
H A Ddefs.h12 #define PCI_BUS 1 macro
/openbmc/u-boot/include/
H A Dpci.h501 #define PCI_BUS(d) (((d) >> 16) & 0xff) macro
643 pci_hose_phys_to_bus(pci_bus_to_hose(PCI_BUS(dev)), (addr), (flags))
645 pci_hose_bus_to_phys(pci_bus_to_hose(PCI_BUS(dev)), (addr), (flags))
648 pci_hose_phys_to_bus(pci_bus_to_hose(PCI_BUS(dev)), \
651 map_physmem(pci_hose_bus_to_phys(pci_bus_to_hose(PCI_BUS(dev)), \
/openbmc/u-boot/board/gateworks/gw_ventana/
H A Dgw_ventana.c553 PCI_BUS(dev), PCI_DEV(dev), PCI_FUNC(dev), vendor, device); in board_pci_fixup_dev()
567 if (PCI_BUS(dev) == 0) in board_pci_fixup_dev()
572 if (pci_devs[i].busno == PCI_BUS(pdev->devfn)) { in board_pci_fixup_dev()
884 (PCI_BUS(x->devfn)<<16)| \
894 sprintf(node, "pcie@%d,%d,%d", PCI_BUS(dev->devfn), in fdt_add_pci_node()
/openbmc/qemu/hw/ppc/
H A Damigaone.c148 pci_bus = PCI_BUS(qdev_get_child_bus(dev, "pci.0")); in amigaone_init()
/openbmc/u-boot/arch/x86/lib/
H A Dbios_interrupts.c147 busdevfn = (PCI_BUS(bdf) << 8) | PCI_DEV(bdf) << 3 | in int1a_handler()
H A Dbios.c252 num_dev = PCI_BUS(pcidev) << 8 | PCI_DEV(pcidev) << 3 | in bios_run_on_x86()
/openbmc/qemu/include/hw/pci/
H A Dpci.h271 OBJECT_DECLARE_TYPE(PCIBus, PCIBusClass, PCI_BUS)
325 return PCI_BUS(qdev_get_parent_bus(DEVICE(dev))); in pci_get_bus()

12