/openbmc/u-boot/drivers/pci/ |
H A D | pcie_aspeed.c | 108 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 D | pcie_dw_mvebu.c | 185 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 D | pci_mvebu.c | 52 (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 D | pci_gt64120.c | 47 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 D | pcie_intel_fpga.c | 63 ((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 D | pci_indirect.c | 26 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 D | pci-aardvark.c | 175 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 D | pcie_layerscape.c | 234 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 D | pcie_imx.c | 320 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 D | pci.c | 45 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 D | pcie_ecam_generic.c | 45 addr += PCI_BUS(bdf) << 20; in pci_generic_ecam_conf_address()
|
H A D | pci_auto.c | 184 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 D | pcie_xilinx.c | 61 unsigned int bus = PCI_BUS(bdf); in pcie_xilinx_config_address()
|
H A D | pci_auto_old.c | 194 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 D | pci_msc01.c | 34 unsigned int bus = PCI_BUS(bdf); in msc01_config_access()
|
H A D | pci_tegra.c | 278 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 D | irq.c | 258 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 D | atibios.c | 253 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 D | defs.h | 12 #define PCI_BUS 1 macro
|
/openbmc/u-boot/include/ |
H A D | pci.h | 501 #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 D | gw_ventana.c | 553 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 D | amigaone.c | 148 pci_bus = PCI_BUS(qdev_get_child_bus(dev, "pci.0")); in amigaone_init()
|
/openbmc/u-boot/arch/x86/lib/ |
H A D | bios_interrupts.c | 147 busdevfn = (PCI_BUS(bdf) << 8) | PCI_DEV(bdf) << 3 | in int1a_handler()
|
H A D | bios.c | 252 num_dev = PCI_BUS(pcidev) << 8 | PCI_DEV(pcidev) << 3 | in bios_run_on_x86()
|
/openbmc/qemu/include/hw/pci/ |
H A D | pci.h | 271 OBJECT_DECLARE_TYPE(PCIBus, PCIBusClass, PCI_BUS) 325 return PCI_BUS(qdev_get_parent_bus(DEVICE(dev))); in pci_get_bus()
|