Home
last modified time | relevance | path

Searched refs:first_busno (Results 1 – 25 of 48) sorted by relevance

12

/openbmc/linux/arch/powerpc/sysdev/
H A Dindirect_pci.c27 if (bus_number != hose->first_busno) in __indirect_read_config()
38 if (bus_number != hose->first_busno) in __indirect_read_config()
41 bus_no = (bus_number == hose->first_busno) ? in __indirect_read_config()
93 if (bus->number != hose->first_busno) in indirect_write_config()
104 if (bus->number != hose->first_busno) in indirect_write_config()
107 bus_no = (bus->number == hose->first_busno) ? in indirect_write_config()
125 (bus->number == hose->first_busno)) in indirect_write_config()
H A Dfsl_pci.c74 __indirect_read_config(hose, hose->first_busno, 0, in fsl_pcie_check_link()
563 hose->first_busno = bus_range ? bus_range[0] : 0x0; in fsl_add_bridge()
635 (unsigned long long)rsrc.start, hose->first_busno, in fsl_add_bridge()
703 if (bus->number == hose->first_busno || in mpc83xx_pcie_exclude_device()
704 bus->primary == hose->first_busno) { in mpc83xx_pcie_exclude_device()
732 if (bus->number == hose->first_busno) in mpc83xx_pcie_remap_cfg()
751 if (offset == PCI_PRIMARY_BUS && bus->number == hose->first_busno) in mpc83xx_pcie_write_config()
870 hose->first_busno = bus_range ? bus_range[0] : 0; in mpc83xx_add_bridge()
884 (unsigned long long)rsrc_reg.start, hose->first_busno, in mpc83xx_add_bridge()
/openbmc/u-boot/drivers/pci/
H A Dpcie_dw_mvebu.c112 int first_busno; member
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()
218 static int pcie_dw_addr_valid(pci_dev_t d, int first_busno) in pcie_dw_addr_valid() argument
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()
254 if (!pcie_dw_addr_valid(bdf, pcie->first_busno)) { in pcie_dw_mvebu_read_config()
301 if (!pcie_dw_addr_valid(bdf, pcie->first_busno)) { in pcie_dw_mvebu_write_config()
501 pcie->first_busno = dev->seq; in pcie_dw_mvebu_probe()
[all …]
H A Dpci-aardvark.c146 int first_busno; member
168 static int pcie_advk_addr_valid(pci_dev_t bdf, int first_busno) in pcie_advk_addr_valid() argument
175 if ((PCI_BUS(bdf) == first_busno) && (PCI_DEV(bdf) > 0)) in pcie_advk_addr_valid()
311 if (!pcie_advk_addr_valid(bdf, pcie->first_busno)) { in pcie_advk_read_config()
324 if (PCI_BUS(bdf) == pcie->first_busno) in pcie_advk_read_config()
409 if (!pcie_advk_addr_valid(bdf, pcie->first_busno)) { in pcie_advk_write_config()
421 if (PCI_BUS(bdf) == pcie->first_busno) in pcie_advk_write_config()
491 printf("PCIE-%d: Link up\n", pcie->first_busno); in pcie_advk_wait_for_link()
498 printf("PCIE-%d: Link down\n", pcie->first_busno); in pcie_advk_wait_for_link()
641 pcie->first_busno = dev->seq; in pcie_advk_probe()
H A Dpcie_intel_fpga.c42 ((((bus != pcie->first_busno) ? TLP_FMTTYPE_CFGRD0 \
47 ((((bus != pcie->first_busno) ? TLP_FMTTYPE_CFGWR0 \
52 (((TLP_REQ_ID(pcie->first_busno, RP_DEVFN)) << 16) | (tag << 8) | (be))
63 ((PCI_BUS(bdf) == pcie->first_busno) ? true : false)
81 int first_busno; member
130 if ((PCI_BUS(bdf) == pcie->first_busno + 1) && PCI_DEV(bdf) > 0) in intel_fpga_pcie_addr_valid()
257 pcie->first_busno = (u8)(value); in intel_fpga_pcie_rp_wr_conf()
368 pcie->first_busno = dev->seq; in pcie_intel_fpga_probe()
H A Dfsl_pci_init.c313 pci_dev_t dev = PCI_BDF(hose->first_busno, 0, 0); in fsl_pci_init()
425 hose->current_busno = hose->first_busno; in fsl_pci_init()
535 hose->last_busno = hose->first_busno; in fsl_pci_init()
612 pci_dev_t dev = PCI_BDF(hose->first_busno, 0, 0); in fsl_is_pci_agent()
671 hose->first_busno = busno; in fsl_pci_init_port()
677 hose->last_busno = hose->first_busno; in fsl_pci_init_port()
694 hose->first_busno, hose->last_busno); in fsl_pci_init_port()
701 pci_dev_t dev = PCI_BDF(hose->first_busno,0,0); in fsl_pci_config_unlock()
921 bus_range[1] = hose->last_busno - hose->first_busno; in ft_fsl_pci_setup()
H A Dpci_indirect.c27 b = b - hose->first_busno; \
42 b = b - hose->first_busno; \
H A Dpci.c137 if (bus >= hose->first_busno && bus <= hose->last_busno) in pci_bus_to_hose()
177 for (bus = hose->first_busno; bus <= hose->last_busno; bus++) { in pci_find_devices()
328 if (dev == PCI_BDF(hose->first_busno, 0, 0)) in pci_print_dev()
445 if (hose->first_busno > hose->current_busno) in pci_hose_scan()
446 hose->current_busno = hose->first_busno; in pci_hose_scan()
H A Dpci_auto_old.c194 PCI_BUS(dev) - hose->first_busno); in pciauto_prescan_setup_bridge()
196 sub_bus - hose->first_busno); in pciauto_prescan_setup_bridge()
269 sub_bus - hose->first_busno); in pciauto_postscan_setup_bridge()
H A Dpci_sh4.c20 hose->first_busno = 0; in pci_sh4_init()
/openbmc/u-boot/arch/arm/mach-mvebu/serdes/a38x/
H A Dctrl_pex.c22 u32 pex_idx, tmp, next_busno, first_busno, temp_pex_reg, in hws_pex_config() local
114 first_busno = next_busno; in hws_pex_config()
140 pex_local_bus_num_set(pex_idx, first_busno); in hws_pex_config()
147 addr = pex_config_read(pex_idx, first_busno, 0, 0, 0x34) & 0xff; in hws_pex_config()
156 while ((pex_config_read(pex_idx, first_busno, 0, 0, addr) in hws_pex_config()
158 addr = (pex_config_read(pex_idx, first_busno, 0, in hws_pex_config()
163 if ((pex_config_read(pex_idx, first_busno, 0, 0, in hws_pex_config()
/openbmc/u-boot/arch/powerpc/cpu/mpc83xx/
H A Dpci.c77 hose->first_busno = pci_last_busno() + 1; in pci_init_bus()
89 dev = PCI_BDF(hose->first_busno, 0, 0); in pci_init_bus()
174 dev = PCI_BDF(hose->first_busno, 0, 0); in mpc83xx_pcislave_unlock()
198 tmp[0] = cpu_to_be32(pci_hose[0].first_busno); in ft_pci_setup()
213 tmp[0] = cpu_to_be32(pci_hose[1].first_busno); in ft_pci_setup()
/openbmc/linux/arch/powerpc/platforms/maple/
H A Dpci.c101 if (bus == hose->first_busno) { in u3_agp_cfg_access()
198 if (bus == hose->first_busno) { in u3_ht_cfg_access()
264 if (bus->number == hose->first_busno && devfn == PCI_DEVFN(0, 0)) in u3_ht_read_config()
302 if (bus->number == hose->first_busno && devfn == PCI_DEVFN(0, 0)) in u3_ht_write_config()
357 if (bus == hose->first_busno) in u4_pcie_cfg_access()
451 hose->first_busno = 0xf0; in setup_u3_agp()
483 hose->first_busno = 0; in setup_u3_ht()
508 hose->first_busno = bus_range ? bus_range[0] : 0; in maple_add_bridge()
527 disp_name, hose->first_busno, hose->last_busno); in maple_add_bridge()
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/
H A Dpci.c52 hose->first_busno = 0; in pci_mpc85xx_init()
62 dev = PCI_BDF(hose->first_busno, 0, 0); in pci_mpc85xx_init()
150 hose->first_busno = pci_hose[0].last_busno + 1; in pci_mpc85xx_init()
157 dev = PCI_BDF(hose->first_busno, 0, 0); in pci_mpc85xx_init()
/openbmc/linux/arch/powerpc/kernel/
H A Dpci_32.c137 make_one_node_map(node, hose->first_busno); in pcibios_make_OF_bus_map()
269 hose->first_busno = next_busno; in pcibios_init()
315 if (bus >= hose->first_busno && bus <= hose->last_busno) in pci_bus_to_hose()
338 return (long)hose->first_busno; in SYSCALL_DEFINE3()
/openbmc/linux/arch/powerpc/platforms/4xx/
H A Dpci.c312 early_write_config_dword(hose, hose->first_busno, 0, in ppc4xx_configure_pci_PTMs()
314 early_write_config_dword(hose, hose->first_busno, 0, in ppc4xx_configure_pci_PTMs()
316 early_write_config_word(hose, hose->first_busno, 0, in ppc4xx_configure_pci_PTMs()
369 hose->first_busno = bus_range ? bus_range[0] : 0x0; in ppc4xx_probe_pci_bridge()
572 hose->first_busno = bus_range ? bus_range[0] : 0x0; in ppc4xx_probe_pcix_bridge()
1553 if (port->endpoint && bus->number != port->hose->first_busno) in ppc4xx_pciex_validate_bdf()
1567 if (bus->number == port->hose->first_busno && devfn != 0) in ppc4xx_pciex_validate_bdf()
1571 if (bus->number == (port->hose->first_busno + 1) && in ppc4xx_pciex_validate_bdf()
1576 if ((bus->number != port->hose->first_busno) && !port->link) in ppc4xx_pciex_validate_bdf()
1591 if (bus->number == port->hose->first_busno) in ppc4xx_pciex_get_config_base()
[all …]
/openbmc/linux/arch/powerpc/platforms/52xx/
H A Defika.c39 | (((bus->number - hose->first_busno) & 0xff) << 16) in rtas_read_config()
54 | (((bus->number - hose->first_busno) & 0xff) << 16) in rtas_write_config()
120 hose->first_busno = bus_range[0]; in efika_pcisetup()
/openbmc/linux/arch/powerpc/platforms/powermac/
H A Dpci.c146 if (bus->number == hose->first_busno) { in macrisc_cfg_map_bus()
274 if (bus == hose->first_busno) { in u3_ht_cfg_access()
410 if (bus->number == hose->first_busno) { in u4_pcie_cfg_map_bus()
636 hose->first_busno = 0xf0; in setup_u3_agp()
660 hose->first_busno = 0x00; in setup_u4_pcie()
735 hose->first_busno = 0; in setup_u3_ht()
796 hose->first_busno = bus_range ? bus_range[0] : 0; in pmac_add_bridge()
818 " %d->%d\n", disp_name, hose->first_busno, hose->last_busno); in pmac_add_bridge()
840 disp_name, (unsigned long long)rsrc.start, hose->first_busno, in pmac_add_bridge()
/openbmc/linux/arch/powerpc/platforms/chrp/
H A Dpci.c102 | (((bus->number - hose->first_busno) & 0xff) << 16) in rtas_read_config()
117 | (((bus->number - hose->first_busno) & 0xff) << 16) in rtas_write_config()
264 hose->first_busno = hose->self_busno = bus_range[0]; in chrp_find_bridges()
/openbmc/u-boot/board/freescale/mpc8555cds/
H A Dmpc8555cds.c414 tmp[1] = hose[0].last_busno - hose[0].first_busno; in ft_pci_setup()
421 tmp[1] = hose[1].last_busno - hose[1].first_busno; in ft_pci_setup()
/openbmc/u-boot/board/freescale/mpc8541cds/
H A Dmpc8541cds.c413 tmp[1] = hose[0].last_busno - hose[0].first_busno; in ft_pci_setup()
420 tmp[1] = hose[1].last_busno - hose[1].first_busno; in ft_pci_setup()
/openbmc/linux/arch/xtensa/lib/
H A Dpci-auto.c239 if (current_bus == pci_ctrl->first_busno) in pciauto_bus_scan()
250 if ((current_bus == pci_ctrl->first_busno) && (pci_devfn == 0)) in pciauto_bus_scan()
/openbmc/linux/arch/xtensa/include/asm/
H A Dpci-bridge.h39 int first_busno; member
/openbmc/u-boot/arch/arm/mach-mvebu/serdes/axp/
H A Dhigh_speed_env_lib.c1208 u32 first_busno, next_busno; in serdes_phy_config() local
1232 first_busno = next_busno; in serdes_phy_config()
1291 first_busno); in serdes_phy_config()
1299 first_busno, 0, in serdes_phy_config()
1310 (pex_if, first_busno, 0, in serdes_phy_config()
1317 first_busno, 0, 0, in serdes_phy_config()
1322 (pex_if, first_busno, 0, 0, in serdes_phy_config()
/openbmc/linux/arch/powerpc/platforms/
H A Dfsl_uli1575.c336 laddr[0] = (hose->first_busno << 16) | (PCI_DEVFN(31, 0) << 8); in hpcd_final_uli5288()
349 if (hose->dn == fsl_pci_primary && bus == (hose->first_busno + 2)) { in uli_exclude_device()

12