| /OK3568_Linux_fs/kernel/arch/microblaze/pci/ |
| H A D | indirect_pci.c | 27 if (bus->number != hose->first_busno) in indirect_read_config() 34 if (bus->number != hose->first_busno) in indirect_read_config() 37 bus_no = (bus->number == hose->first_busno) ? in indirect_read_config() 81 if (bus->number != hose->first_busno) in indirect_write_config() 88 if (bus->number != hose->first_busno) in indirect_write_config() 91 bus_no = (bus->number == hose->first_busno) ? in indirect_write_config() 109 (bus->number == hose->first_busno)) in indirect_write_config()
|
| /OK3568_Linux_fs/u-boot/drivers/pci/ |
| H A D | pcie_dw_mvebu.c | 113 int first_busno; member 154 if (PCI_BUS(d) == (pcie->first_busno + 1)) in set_cfg_address() 161 if (PCI_BUS(d) == pcie->first_busno) { in set_cfg_address() 184 static int pcie_dw_addr_valid(pci_dev_t d, int first_busno) in pcie_dw_addr_valid() argument 186 if ((PCI_BUS(d) == first_busno) && (PCI_DEV(d) > 0)) in pcie_dw_addr_valid() 188 if ((PCI_BUS(d) == first_busno + 1) && (PCI_DEV(d) > 0)) in pcie_dw_addr_valid() 220 if (!pcie_dw_addr_valid(bdf, pcie->first_busno)) { in pcie_dw_mvebu_read_config() 263 if (!pcie_dw_addr_valid(bdf, pcie->first_busno)) { in pcie_dw_mvebu_write_config() 485 pcie->first_busno = dev->seq; in pcie_dw_mvebu_probe() 494 hose->first_busno); in pcie_dw_mvebu_probe()
|
| H A D | pcie_dw_rockchip.c | 66 int first_busno; member 375 static int rk_pcie_addr_valid(pci_dev_t d, int first_busno) in rk_pcie_addr_valid() argument 377 if ((PCI_BUS(d) == first_busno) && (PCI_DEV(d) > 0)) in rk_pcie_addr_valid() 379 if ((PCI_BUS(d) == first_busno + 1) && (PCI_DEV(d) > 0)) in rk_pcie_addr_valid() 388 int bus = PCI_BUS(d) - pcie->first_busno; in set_cfg_address() 439 if (!rk_pcie_addr_valid(bdf, pcie->first_busno)) { in rockchip_pcie_rd_conf() 471 if (!rk_pcie_addr_valid(bdf, pcie->first_busno)) { in rockchip_pcie_wr_conf() 747 priv->first_busno = dev->seq; in rockchip_pcie_probe() 761 hose->first_busno); in rockchip_pcie_probe()
|
| H A D | fsl_pci_init.c | 314 pci_dev_t dev = PCI_BDF(hose->first_busno, 0, 0); in fsl_pci_init() 420 hose->current_busno = hose->first_busno; in fsl_pci_init() 530 hose->last_busno = hose->first_busno; in fsl_pci_init() 607 pci_dev_t dev = PCI_BDF(hose->first_busno, 0, 0); in fsl_is_pci_agent() 666 hose->first_busno = busno; in fsl_pci_init_port() 672 hose->last_busno = hose->first_busno; in fsl_pci_init_port() 689 hose->first_busno, hose->last_busno); in fsl_pci_init_port() 696 pci_dev_t dev = PCI_BDF(hose->first_busno,0,0); in fsl_pci_config_unlock() 916 bus_range[1] = hose->last_busno - hose->first_busno; in ft_fsl_pci_setup()
|
| H A D | pci.c | 138 if (bus >= hose->first_busno && bus <= hose->last_busno) in pci_bus_to_hose() 178 for (bus = hose->first_busno; bus <= hose->last_busno; bus++) { in pci_find_devices() 332 if (dev == PCI_BDF(hose->first_busno, 0, 0)) in pci_print_dev() 449 if (hose->first_busno > hose->current_busno) in pci_hose_scan() 450 hose->current_busno = hose->first_busno; in pci_hose_scan()
|
| H A D | pci_indirect.c | 28 b = b - hose->first_busno; \ 43 b = b - hose->first_busno; \
|
| H A D | tsi108_pci.c | 113 hose->first_busno = 0; in pci_init_board() 160 tmp[0] = cpu_to_be32(local_hose.first_busno); in ft_pci_setup()
|
| H A D | pci_auto_old.c | 194 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 D | pci_sh4.c | 21 hose->first_busno = 0; in pci_sh4_init()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/sysdev/ |
| H A D | indirect_pci.c | 28 if (bus_number != hose->first_busno) in __indirect_read_config() 39 if (bus_number != hose->first_busno) in __indirect_read_config() 42 bus_no = (bus_number == hose->first_busno) ? in __indirect_read_config() 94 if (bus->number != hose->first_busno) in indirect_write_config() 105 if (bus->number != hose->first_busno) in indirect_write_config() 108 bus_no = (bus->number == hose->first_busno) ? in indirect_write_config() 126 (bus->number == hose->first_busno)) in indirect_write_config()
|
| H A D | fsl_pci.c | 72 __indirect_read_config(hose, hose->first_busno, 0, in fsl_pcie_check_link() 557 hose->first_busno = bus_range ? bus_range[0] : 0x0; in fsl_add_bridge() 629 (unsigned long long)rsrc.start, hose->first_busno, in fsl_add_bridge() 697 if (bus->number == hose->first_busno || in mpc83xx_pcie_exclude_device() 698 bus->primary == hose->first_busno) { in mpc83xx_pcie_exclude_device() 726 if (bus->number == hose->first_busno) in mpc83xx_pcie_remap_cfg() 745 if (offset == PCI_PRIMARY_BUS && bus->number == hose->first_busno) in mpc83xx_pcie_write_config() 864 hose->first_busno = bus_range ? bus_range[0] : 0; in mpc83xx_add_bridge() 878 (unsigned long long)rsrc_reg.start, hose->first_busno, in mpc83xx_add_bridge()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-mvebu/serdes/a38x/ |
| H A D | ctrl_pex.c | 23 u32 pex_idx, tmp, next_busno, first_busno, temp_pex_reg, in hws_pex_config() local 115 first_busno = next_busno; in hws_pex_config() 141 pex_local_bus_num_set(pex_idx, first_busno); in hws_pex_config() 148 addr = pex_config_read(pex_idx, first_busno, 0, 0, 0x34) & 0xff; in hws_pex_config() 157 while ((pex_config_read(pex_idx, first_busno, 0, 0, addr) in hws_pex_config() 159 addr = (pex_config_read(pex_idx, first_busno, 0, in hws_pex_config() 164 if ((pex_config_read(pex_idx, first_busno, 0, 0, in hws_pex_config()
|
| /OK3568_Linux_fs/u-boot/arch/powerpc/cpu/mpc83xx/ |
| H A D | pci.c | 78 hose->first_busno = pci_last_busno() + 1; in pci_init_bus() 90 dev = PCI_BDF(hose->first_busno, 0, 0); in pci_init_bus() 175 dev = PCI_BDF(hose->first_busno, 0, 0); in mpc83xx_pcislave_unlock() 199 tmp[0] = cpu_to_be32(pci_hose[0].first_busno); in ft_pci_setup() 214 tmp[0] = cpu_to_be32(pci_hose[1].first_busno); in ft_pci_setup()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/maple/ |
| H A D | pci.c | 101 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()
|
| /OK3568_Linux_fs/u-boot/arch/powerpc/cpu/mpc85xx/ |
| H A D | pci.c | 53 hose->first_busno = 0; in pci_mpc85xx_init() 63 dev = PCI_BDF(hose->first_busno, 0, 0); in pci_mpc85xx_init() 151 hose->first_busno = pci_hose[0].last_busno + 1; in pci_mpc85xx_init() 158 dev = PCI_BDF(hose->first_busno, 0, 0); in pci_mpc85xx_init()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/kernel/ |
| H A D | pci_32.c | 138 make_one_node_map(node, hose->first_busno); in pcibios_make_OF_bus_map() 247 hose->first_busno = next_busno; in pcibios_init() 285 if (bus >= hose->first_busno && bus <= hose->last_busno) in pci_bus_to_hose() 308 return (long)hose->first_busno; in SYSCALL_DEFINE3()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/4xx/ |
| H A D | pci.c | 311 early_write_config_dword(hose, hose->first_busno, 0, in ppc4xx_configure_pci_PTMs() 313 early_write_config_dword(hose, hose->first_busno, 0, in ppc4xx_configure_pci_PTMs() 315 early_write_config_word(hose, hose->first_busno, 0, in ppc4xx_configure_pci_PTMs() 368 hose->first_busno = bus_range ? bus_range[0] : 0x0; in ppc4xx_probe_pci_bridge() 574 hose->first_busno = bus_range ? bus_range[0] : 0x0; in ppc4xx_probe_pcix_bridge() 1555 if (port->endpoint && bus->number != port->hose->first_busno) in ppc4xx_pciex_validate_bdf() 1569 if (bus->number == port->hose->first_busno && devfn != 0) in ppc4xx_pciex_validate_bdf() 1573 if (bus->number == (port->hose->first_busno + 1) && in ppc4xx_pciex_validate_bdf() 1578 if ((bus->number != port->hose->first_busno) && !port->link) in ppc4xx_pciex_validate_bdf() 1593 if (bus->number == port->hose->first_busno) in ppc4xx_pciex_get_config_base() [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/52xx/ |
| H A D | efika.c | 40 | (((bus->number - hose->first_busno) & 0xff) << 16) in rtas_read_config() 55 | (((bus->number - hose->first_busno) & 0xff) << 16) in rtas_write_config() 121 hose->first_busno = bus_range[0]; in efika_pcisetup()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/powermac/ |
| H A D | pci.c | 145 if (bus->number == hose->first_busno) { in macrisc_cfg_map_bus() 273 if (bus == hose->first_busno) { in u3_ht_cfg_access() 409 if (bus->number == hose->first_busno) { in u4_pcie_cfg_map_bus() 635 hose->first_busno = 0xf0; in setup_u3_agp() 659 hose->first_busno = 0x00; in setup_u4_pcie() 734 hose->first_busno = 0; in setup_u3_ht() 795 hose->first_busno = bus_range ? bus_range[0] : 0; in pmac_add_bridge() 817 " %d->%d\n", disp_name, hose->first_busno, hose->last_busno); in pmac_add_bridge() 839 disp_name, (unsigned long long)rsrc.start, hose->first_busno, in pmac_add_bridge()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/chrp/ |
| H A D | pci.c | 102 | (((bus->number - hose->first_busno) & 0xff) << 16) in rtas_read_config() 117 | (((bus->number - hose->first_busno) & 0xff) << 16) in rtas_write_config() 265 hose->first_busno = hose->self_busno = bus_range[0]; in chrp_find_bridges()
|
| /OK3568_Linux_fs/u-boot/board/freescale/mpc8541cds/ |
| H A D | mpc8541cds.c | 414 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()
|
| /OK3568_Linux_fs/u-boot/board/freescale/mpc8555cds/ |
| H A D | mpc8555cds.c | 415 tmp[1] = hose[0].last_busno - hose[0].first_busno; in ft_pci_setup() 422 tmp[1] = hose[1].last_busno - hose[1].first_busno; in ft_pci_setup()
|
| /OK3568_Linux_fs/kernel/arch/xtensa/lib/ |
| H A D | pci-auto.c | 239 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()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-mvebu/serdes/axp/ |
| H A D | high_speed_env_lib.c | 1209 u32 first_busno, next_busno; in serdes_phy_config() local 1233 first_busno = next_busno; in serdes_phy_config() 1292 first_busno); in serdes_phy_config() 1300 first_busno, 0, in serdes_phy_config() 1311 (pex_if, first_busno, 0, in serdes_phy_config() 1318 first_busno, 0, 0, in serdes_phy_config() 1323 (pex_if, first_busno, 0, 0, in serdes_phy_config()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/ |
| H A D | fsl_uli1575.c | 332 laddr[0] = (hose->first_busno << 16) | (PCI_DEVFN(31, 0) << 8); in hpcd_final_uli5288() 346 if (bus == (hose->first_busno + 2)) { in uli_exclude_device()
|