Home
last modified time | relevance | path

Searched refs:num_ports (Results 1 – 25 of 26) sorted by relevance

12

/u-boot/arch/mips/mach-octeon/
A Dcvmx-helper-loop.c77 int num_ports, index; in __cvmx_helper_loop_enable() local
81 num_ports = __cvmx_helper_get_num_ipd_ports(xiface); in __cvmx_helper_loop_enable()
86 for (index = 0; index < num_ports; index++) { in __cvmx_helper_loop_enable()
119 for (index = 0; index < num_ports; index++) { in __cvmx_helper_loop_enable()
127 lp_pknd.s.num_ports = num_ports; in __cvmx_helper_loop_enable()
169 for (index = 0; index < num_ports; index++) { in __cvmx_helper_loop_enable()
A Dcvmx-helper-pko.c174 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_interface_setup_pko() local
176 while (num_ports--) { in __cvmx_helper_interface_setup_pko()
179 if (!cvmx_helper_is_port_valid(interface, num_ports)) in __cvmx_helper_interface_setup_pko()
182 ipd_port = cvmx_helper_get_ipd_port(interface, num_ports); in __cvmx_helper_interface_setup_pko()
A Dcvmx-helper-util.c603 if (num_ports > 4) { in __cvmx_helper_setup_gmx()
625 if (num_ports == 1) in __cvmx_helper_setup_gmx()
627 else if (num_ports == 2) in __cvmx_helper_setup_gmx()
629 else if (num_ports <= 4) in __cvmx_helper_setup_gmx()
631 else if (num_ports <= 8) in __cvmx_helper_setup_gmx()
636 if (num_ports == 1) in __cvmx_helper_setup_gmx()
638 else if (num_ports == 2) in __cvmx_helper_setup_gmx()
661 if (num_ports <= 1) in __cvmx_helper_setup_gmx()
663 else if (num_ports == 2) in __cvmx_helper_setup_gmx()
672 if (num_ports > 4) in __cvmx_helper_setup_gmx()
[all …]
A Dcvmx-helper-rgmii.c45 int num_ports = 0; in __cvmx_helper_rgmii_probe() local
54 return num_ports; in __cvmx_helper_rgmii_probe()
70 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_rgmii_enable() local
78 if (num_ports == -1) in __cvmx_helper_rgmii_enable()
85 asx_tx.s.prt_en = cvmx_build_mask(num_ports); in __cvmx_helper_rgmii_enable()
89 asx_rx.s.prt_en = cvmx_build_mask(num_ports); in __cvmx_helper_rgmii_enable()
93 for (port = 0; port < num_ports; port++) { in __cvmx_helper_rgmii_enable()
120 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_rgmii_enable()
123 for (port = 0; port < num_ports; port++) { in __cvmx_helper_rgmii_enable()
A Dcvmx-helper-npi.c86 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_npi_enable() local
93 for (port = 0; port < num_ports; port++) { in __cvmx_helper_npi_enable()
131 cvmx_npi_num_pipes < 0 ? num_ports : cvmx_npi_num_pipes; in __cvmx_helper_npi_enable()
A Dcvmx-helper-ipd.c253 int num_ports = cvmx_helper_ports_on_interface(xiface); in __cvmx_helper_ipd_setup_interface() local
258 if (num_ports == CVMX_HELPER_CFG_INVALID_VALUE) in __cvmx_helper_ipd_setup_interface()
267 while (num_ports--) { in __cvmx_helper_ipd_setup_interface()
268 if (!cvmx_helper_is_port_valid(xiface, num_ports)) in __cvmx_helper_ipd_setup_interface()
A Dcvmx-helper-sgmii.c380 static int __cvmx_helper_sgmii_hardware_init(int interface, int num_ports) in __cvmx_helper_sgmii_hardware_init() argument
420 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_sgmii_hardware_init()
422 for (index = 0; index < num_ports; index++) { in __cvmx_helper_sgmii_hardware_init()
513 int num_ports = cvmx_helper_ports_on_interface(xiface); in __cvmx_helper_sgmii_enable() local
520 for (index = 0; index < num_ports; index++) { in __cvmx_helper_sgmii_enable()
551 __cvmx_helper_sgmii_hardware_init(interface, num_ports); in __cvmx_helper_sgmii_enable()
557 for (index = 0; index < num_ports; index++) { in __cvmx_helper_sgmii_enable()
570 if (OCTEON_IS_MODEL(OCTEON_CN70XX) && num_ports > 1) { in __cvmx_helper_sgmii_enable()
578 for (index = 0; index < num_ports; index++) { in __cvmx_helper_sgmii_enable()
A Dcvmx-helper-pko3.c824 int node, iface, subif, num_ports; in cvmx_helper_pko3_init_interface() local
835 num_ports = cvmx_helper_interface_enumerate(xiface); in cvmx_helper_pko3_init_interface()
857 num_ports = __cvmx_helper_ilk_enumerate(xiface); in cvmx_helper_pko3_init_interface()
860 if (num_ports < 1) { in cvmx_helper_pko3_init_interface()
875 res = __cvmx_pko3_config_chan_interface(xiface, num_ports, in cvmx_helper_pko3_init_interface()
888 res = __cvmx_pko3_config_chan_interface(xiface, num_ports, in cvmx_helper_pko3_init_interface()
916 for (subif = 0; subif < num_ports; subif++) { in cvmx_helper_pko3_init_interface()
927 for (subif = 0; subif < num_ports; subif++) { in cvmx_helper_pko3_init_interface()
949 for (subif = 0; subif < num_ports; subif++) { in cvmx_helper_pko3_init_interface()
A Dcvmx-pko3.c286 unsigned int port, num_ports; in cvmx_pko_setup_macs() local
329 num_ports = cvmx_helper_interface_enumerate(xiface); in cvmx_pko_setup_macs()
340 num_ports = 1; in cvmx_pko_setup_macs()
342 for (port = 0; port < num_ports; port++) { in cvmx_pko_setup_macs()
A Dcvmx-helper-bgx.c288 int num_ports; in __cvmx_bgx_common_init_pknd() local
302 num_ports = cvmx_helper_ports_on_interface(xiface); in __cvmx_bgx_common_init_pknd()
307 bgx_rx_bp_on.s.mark = (CVMX_BGX_RX_FIFO_SIZE / (num_ports * 4 * 16)); in __cvmx_bgx_common_init_pknd()
501 for (index = 0; index < num_ports; index++) { in __cvmx_helper_bgx_sgmii_hardware_init()
536 int num_ports; in __cvmx_helper_bgx_sgmii_enable() local
538 num_ports = cvmx_helper_ports_on_interface(xiface); in __cvmx_helper_bgx_sgmii_enable()
539 __cvmx_helper_bgx_sgmii_hardware_init(xiface, num_ports); in __cvmx_helper_bgx_sgmii_enable()
2012 int num_ports = cvmx_helper_ports_on_interface(xiface); in __cvmx_helper_bgx_xaui_enable() local
2014 for (index = 0; index < num_ports; index++) { in __cvmx_helper_bgx_xaui_enable()
2300 int num_ports = cvmx_helper_ports_on_interface(xiface); in __cvmx_helper_bgx_mixed_enable() local
[all …]
A Dcvmx-helper.c1411 int num_ports; in cvmx_helper_ipd_and_packet_input_enable_node() local
1429 num_ports = cvmx_helper_ports_on_interface(xiface); in cvmx_helper_ipd_and_packet_input_enable_node()
1430 if (num_ports > 0) in cvmx_helper_ipd_and_packet_input_enable_node()
A Docteon_qlm.c4122 int num_ports = 0; in octeon_configure_qlm_cn78xx() local
4356 num_ports = 4; in octeon_configure_qlm_cn78xx()
4367 num_ports = 1; in octeon_configure_qlm_cn78xx()
4377 num_ports = 2; in octeon_configure_qlm_cn78xx()
4388 num_ports = 4; in octeon_configure_qlm_cn78xx()
4399 num_ports = 1; in octeon_configure_qlm_cn78xx()
4485 for (index = 0; index < num_ports; index++) { in octeon_configure_qlm_cn78xx()
4497 csr_wr_node(node, CVMX_BGXX_CMR_TX_LMACS(bgx), num_ports); in octeon_configure_qlm_cn78xx()
4498 csr_wr_node(node, CVMX_BGXX_CMR_RX_LMACS(bgx), num_ports); in octeon_configure_qlm_cn78xx()
4501 for (index = 0; index < num_ports; index++) { in octeon_configure_qlm_cn78xx()
A Dcvmx-helper-cfg.c972 int num_ports = __cvmx_helper_early_ports_on_interface(interface); in __cvmx_helper_init_port_config_data() local
975 for (port = 0; port < num_ports; port++) { in __cvmx_helper_init_port_config_data()
/u-boot/drivers/net/
A Dbcm6368-eth.c135 uint8_t num_ports; member
223 for (i = 0; i < priv->num_ports; i++) { in bcm6368_eth_adjust_link()
316 for (i = 0; i < priv->num_ports; i++) { in bcm6368_eth_start()
325 for (i = ETH_RGMII_PORT0; i < priv->num_ports; i++) { in bcm6368_eth_start()
367 for (i = 0; i < priv->num_ports; i++) { in bcm6368_eth_start()
414 for (i = 0; i < priv->num_ports; i++) { in bcm6368_eth_stop()
461 for (i = 0; i < priv->num_ports; ++i) { in bcm6368_phy_is_external()
511 int num_ports, ret, i; in bcm6368_eth_probe() local
522 if (!num_ports || num_ports > ETH_MAX_PORT) in bcm6368_eth_probe()
575 priv->num_ports = num_ports; in bcm6368_eth_probe()
[all …]
A Dsja1105.c1262 table->entries = calloc(pdata->num_ports, in sja1105_init_vlan()
1267 table->entry_count = pdata->num_ports; in sja1105_init_vlan()
1269 for (port = 0; port < pdata->num_ports; port++) in sja1105_init_vlan()
1304 for (i = 0; i < pdata->num_ports; i++) { in sja1105_init_l2_forwarding()
1350 .host_port = pdata->num_ports, in sja1105_init_general_params()
1352 .mirr_port = pdata->num_ports, in sja1105_init_general_params()
1355 .casc_port = pdata->num_ports, in sja1105_init_general_params()
1410 for (i = 0, k = 0; i < pdata->num_ports; i++) { in sja1105_init_l2_policing()
1445 table->entries = calloc(pdata->num_ports, in sja1105_init_mac_settings()
1450 table->entry_count = pdata->num_ports; in sja1105_init_mac_settings()
[all …]
A Dksz9477.c493 for (i = 0; i < pdata->num_ports; i++) { in ksz_i2c_probe()
A Dmvpp2.c921 u8 num_ports; member
4839 priv->num_ports++; in mvpp2_port_probe()
5379 priv->num_ports = 0; in mvpp2_probe()
5408 priv->num_ports--; in mvpp2_remove()
5410 if (priv->num_ports) in mvpp2_remove()
/u-boot/net/
A Ddsa-uclass.c20 int num_ports; member
390 pdata->num_ports = ofnode_get_child_count(node); in dsa_post_bind()
391 if (pdata->num_ports <= 0 || pdata->num_ports > DSA_MAX_PORTS) { in dsa_post_bind()
393 pdata->num_ports); in dsa_post_bind()
422 for (i = 0; i < pdata->num_ports; i++) { in dsa_post_bind()
490 priv->num_ports = pdata->num_ports; in dsa_pre_probe()
/u-boot/include/net/
A Ddsa.h115 int num_ports; member
/u-boot/test/dm/
A Ddsa.c43 ut_assert(dsa_pdata->num_ports == 3); in dm_test_dsa_probe()
/u-boot/drivers/pci/
A Dpci_tegra.c207 unsigned int num_ports; member
944 if (soc->num_ports > 2)
1037 .num_ports = 2,
1047 .num_ports = 3,
1059 .num_ports = 2,
1069 .num_ports = 2,
1080 .num_ports = 3,
/u-boot/arch/mips/mach-octeon/include/mach/
A Dcvmx-helper-util.h271 int __cvmx_helper_setup_gmx(int xiface, int num_ports);
A Dcvmx-pip.h830 int num_ports = cvmx_helper_ports_on_interface(interface); in cvmx_pip_set_frame_check() local
832 for (port = 0; port < num_ports; port++) { in cvmx_pip_set_frame_check()
/u-boot/drivers/ata/
A Ddwc_ahsata.c121 u32 tmp, cap_save, num_ports; in ahci_host_init() local
150 num_ports = (cap_save & SATA_HOST_CAP_NP_MASK) + 1; in ahci_host_init()
151 writel_with_flush((1 << num_ports) - 1, &host_mmio->pi); in ahci_host_init()
/u-boot/include/
A Dec_commands.h4094 uint8_t num_ports; member

Completed in 93 milliseconds

12