| /f-stack/freebsd/contrib/octeon-sdk/ |
| H A D | cvmx-helper-util.c | 296 int num_ports; in cvmx_helper_setup_red() local 417 gmx_tx_prts.s.prts = num_ports; in __cvmx_helper_setup_gmx() 429 if (num_ports > 4) in __cvmx_helper_setup_gmx() 451 if (num_ports == 1) in __cvmx_helper_setup_gmx() 453 else if (num_ports == 2) in __cvmx_helper_setup_gmx() 455 else if (num_ports <= 4) in __cvmx_helper_setup_gmx() 464 if (num_ports == 1) in __cvmx_helper_setup_gmx() 495 if (num_ports <= 1) in __cvmx_helper_setup_gmx() 497 else if (num_ports == 2) in __cvmx_helper_setup_gmx() 507 if (num_ports > 4) in __cvmx_helper_setup_gmx() [all …]
|
| H A D | cvmx-helper-spi.c | 136 int num_ports = __cvmx_helper_spi_enumerate(interface); in __cvmx_helper_spi_probe() local 138 if (num_ports == 16) { in __cvmx_helper_spi_probe() 150 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_spi_probe() 151 return num_ports; in __cvmx_helper_spi_probe() 170 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_spi_enable() local 172 for (ipd_port=interface*16; ipd_port<interface*16+num_ports; ipd_port++) in __cvmx_helper_spi_enable() 189 … cvmx_spi_start_interface(interface, CVMX_SPI_MODE_DUPLEX, CVMX_HELPER_SPI_TIMEOUT, num_ports); in __cvmx_helper_spi_enable()
|
| H A D | cvmx-helper-rgmii.c | 103 int num_ports = 0; in __cvmx_helper_rgmii_probe() local 117 num_ports = 2; in __cvmx_helper_rgmii_probe() 128 num_ports = 4; in __cvmx_helper_rgmii_probe() 132 num_ports = 3; in __cvmx_helper_rgmii_probe() 139 return num_ports; in __cvmx_helper_rgmii_probe() 187 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_rgmii_enable() local 202 asx_tx.s.prt_en = cvmx_build_mask(num_ports); in __cvmx_helper_rgmii_enable() 206 asx_rx.s.prt_en = cvmx_build_mask(num_ports); in __cvmx_helper_rgmii_enable() 210 for (port=0; port<num_ports; port++) in __cvmx_helper_rgmii_enable() 269 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_rgmii_enable() [all …]
|
| H A D | cvmx-helper-loop.c | 112 int num_ports, index; in __cvmx_helper_loop_enable() local 115 num_ports = __cvmx_helper_get_num_ipd_ports(interface); in __cvmx_helper_loop_enable() 121 for (index = 0; index < num_ports; index++) { in __cvmx_helper_loop_enable()
|
| H A D | cvmx-spi.h | 83 int (*calendar_setup_cb)(int interface, cvmx_spi_mode_t mode, int num_ports); 126 extern int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode, int timeout, int num_ports… 210 extern int cvmx_spi_calendar_setup_cb(int interface, cvmx_spi_mode_t mode, int num_ports);
|
| H A D | cvmx-helper-npi.c | 124 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_npi_enable() local 131 for (port=0; port<num_ports; port++) in __cvmx_helper_npi_enable() 168 config.s.nump = num_ports; in __cvmx_helper_npi_enable()
|
| H A D | cvmx-helper.c | 717 if (num_ports == CVMX_HELPER_CFG_INVALID_VALUE) in __cvmx_helper_interface_setup_ipd() 732 while (num_ports--) in __cvmx_helper_interface_setup_ipd() 796 while (num_ports--) in __cvmx_helper_interface_setup_pko() 1400 int num_ports; in cvmx_helper_shutdown_packet_io_global() local 1433 for (index=0; index<num_ports; index++) in cvmx_helper_shutdown_packet_io_global() 1481 if (num_ports > 4) in cvmx_helper_shutdown_packet_io_global() 1482 num_ports = 4; in cvmx_helper_shutdown_packet_io_global() 1513 if (num_ports > 4) in cvmx_helper_shutdown_packet_io_global() 1514 num_ports = 4; in cvmx_helper_shutdown_packet_io_global() 1643 if (num_ports > 4) in cvmx_helper_shutdown_packet_io_global() [all …]
|
| H A D | cvmx-spi.c | 136 int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode, int timeout, int num_ports) in cvmx_spi_start_interface() argument 147 INVOKE_CB(cvmx_spi_callbacks.calendar_setup_cb, interface, mode, num_ports); in cvmx_spi_start_interface() 327 int cvmx_spi_calendar_setup_cb(int interface, cvmx_spi_mode_t mode, int num_ports) in cvmx_spi_calendar_setup_cb() argument 338 srxx_com_ctl.s.prts = num_ports - 1; in cvmx_spi_calendar_setup_cb() 346 while (port < num_ports) in cvmx_spi_calendar_setup_cb() 359 srxx_spi4_stat.s.len = num_ports; in cvmx_spi_calendar_setup_cb() 403 while (port < num_ports) in cvmx_spi_calendar_setup_cb() 416 stxx_spi4_stat.s.len = num_ports; in cvmx_spi_calendar_setup_cb()
|
| H A D | cvmx-helper-sgmii.c | 374 static int __cvmx_helper_sgmii_hardware_init(int interface, int num_ports) in __cvmx_helper_sgmii_hardware_init() argument 410 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_sgmii_hardware_init() 412 for (index=0; index<num_ports; index++) in __cvmx_helper_sgmii_hardware_init() 485 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_sgmii_enable() local 491 for (index = 0; index < num_ports; index++) in __cvmx_helper_sgmii_enable() 515 __cvmx_helper_sgmii_hardware_init(interface, num_ports); in __cvmx_helper_sgmii_enable() 522 for (index = 0; index < num_ports; index++) in __cvmx_helper_sgmii_enable() 533 for (index=0; index<num_ports; index++) in __cvmx_helper_sgmii_enable()
|
| /f-stack/dpdk/examples/multi_process/symmetric_mp/ |
| H A D | main.c | 60 unsigned num_ports; member 75 static unsigned num_ports = 0; variable 103 for (i = 0; i < num_ports; i++){ in print_stats() 161 ports[num_ports++] = (uint8_t)i; in smp_parse_args() 283 const unsigned port_pairs = num_ports / 2; in assign_ports_to_cores() 291 lcore_ports[i].num_ports = pairs_per_lcore * 2; in assign_ports_to_cores() 293 lcore_ports[i].num_ports += 2; in assign_ports_to_cores() 296 ports_assigned += lcore_ports[i].num_ports; in assign_ports_to_cores() 458 if (num_ports & 1) in main() 460 for(i = 0; i < num_ports; i++){ in main() [all …]
|
| /f-stack/dpdk/drivers/bus/dpaa/base/fman/ |
| H A D | netcfg_layer.c | 80 uint8_t num_ports = 0; in netcfg_acquire() local 108 num_ports++; in netcfg_acquire() 110 if (!num_ports) { in netcfg_acquire() 116 (num_ports * sizeof(struct fm_eth_port_cfg)); in netcfg_acquire() 124 netcfg->num_ethports = num_ports; in netcfg_acquire() 138 } else if (num_ports != num_cfg_ports) in netcfg_acquire()
|
| /f-stack/dpdk/examples/vmdq/ |
| H A D | main.c | 91 static unsigned num_ports; /**< The number of ports specified in command line */ variable 438 ports[num_ports++] = (uint8_t)i; in vmdq_parse_args() 441 if (num_ports < 2 || num_ports % 2) { in vmdq_parse_args() 443 "but it should be even and at least 2\n", num_ports); in vmdq_parse_args() 535 for (p = 0; p < num_ports; p++) { in lcore_main() 574 unsigned valid_num_ports = num_ports; in check_ports_num() 577 if (num_ports > nb_ports) { in check_ports_num() 579 num_ports, nb_ports); in check_ports_num() 580 num_ports = nb_ports; in check_ports_num() 583 for (portid = 0; portid < num_ports; portid++) { in check_ports_num()
|
| /f-stack/dpdk/examples/multi_process/client_server_mp/mp_server/ |
| H A D | args.c | 67 ports->id[ports->num_ports++] = id; in parse_portmask() 137 if (ports->num_ports == 0 || num_clients == 0){ in parse_app_args() 142 if (ports->num_ports % 2 != 0){ in parse_app_args()
|
| H A D | init.c | 65 RTE_MP_RX_DESC_DEFAULT * ports->num_ports; in init_mbuf_pools() 68 RTE_MP_TX_DESC_DEFAULT * ports->num_ports); in init_mbuf_pools() 276 for (i = 0; i < ports->num_ports; i++) { in init() 283 check_all_ports_link_status(ports->num_ports, (~0x0)); in init()
|
| H A D | main.c | 111 for (j = 0; j < ports->num_ports; j++){ in do_stats_display() 127 for (i = 0; i < ports->num_ports; i++) in do_stats_display() 131 for (i = 0; i < ports->num_ports; i++){ in do_stats_display() 271 if (++port_num == ports->num_ports) in do_packet_forwarding()
|
| /f-stack/dpdk/examples/vmdq_dcb/ |
| H A D | main.c | 60 static unsigned num_ports; variable 498 ports[num_ports++] = (uint8_t)i; in vmdq_parse_args() 501 if (num_ports < 2 || num_ports % 2) { in vmdq_parse_args() 503 " but it should be even and at least 2\n", num_ports); in vmdq_parse_args() 583 for (p = 0; p < num_ports; p++) { in lcore_main() 619 unsigned valid_num_ports = num_ports; in check_ports_num() 622 if (num_ports > nb_ports) { in check_ports_num() 624 num_ports, nb_ports); in check_ports_num() 625 num_ports = nb_ports; in check_ports_num() 628 for (portid = 0; portid < num_ports; portid++) { in check_ports_num()
|
| /f-stack/dpdk/examples/server_node_efd/server/ |
| H A D | args.c | 70 info->id[info->num_ports++] = count; in parse_portmask() 160 if (info->num_ports == 0 || num_nodes == 0) { in parse_app_args() 165 if (info->num_ports % 2 != 0) { in parse_app_args()
|
| H A D | main.c | 120 for (j = 0; j < info->num_ports; j++) { in do_stats_display() 136 for (i = 0; i < info->num_ports; i++) in do_stats_display() 140 for (i = 0; i < info->num_ports; i++) { in do_stats_display() 315 if (++port_num == info->num_ports) in do_packet_forwarding()
|
| H A D | init.c | 72 (info->num_ports * MBUFS_PER_PORT); in init_mbuf_pools() 341 for (i = 0; i < info->num_ports; i++) { in init() 348 check_all_ports_link_status(info->num_ports, (~0x0)); in init()
|
| /f-stack/dpdk/examples/multi_process/client_server_mp/mp_client/ |
| H A D | client.c | 165 if (ports->num_ports > RTE_MAX_ETHPORTS) in configure_output_ports() 168 for (i = 0; i < ports->num_ports - 1; i+=2){ in configure_output_ports() 254 for (i = 0; i < ports->num_ports; i++) { in main()
|
| /f-stack/dpdk/examples/eventdev_pipeline/ |
| H A D | main.c | 322 uint16_t num_ports; in main() local 345 num_ports = rte_eth_dev_count_avail(); in main() 346 if (num_ports == 0) in main() 353 printf("\tports: %u\n", num_ports); in main() 388 fdata->cap.adptr_setup(num_ports); in main()
|
| /f-stack/dpdk/drivers/event/dsw/ |
| H A D | dsw_evdev.c | 239 dsw->num_ports = conf->nb_event_ports; in dsw_configure() 283 for (i = 0; i < dsw->num_ports; i++) { in dsw_start() 315 for (dport_id = 0; dport_id < dsw->num_ports; dport_id++) in dsw_port_drain_out() 341 for (port_id = 0; port_id < dsw->num_ports; port_id++) { in dsw_drain() 370 dsw->num_ports = 0; in dsw_close()
|
| /f-stack/freebsd/mips/cavium/octe/ |
| H A D | ethernet.c | 318 int num_ports = cvmx_helper_ports_on_interface(interface); in cvm_oct_init_module() local 321 for (port = 0; port < num_ports; port++) { in cvm_oct_init_module() 347 int num_ports = cvmx_helper_ports_on_interface(interface); in cvm_oct_init_module() local 351 port < cvmx_helper_get_ipd_port(interface, num_ports); in cvm_oct_init_module()
|
| /f-stack/dpdk/examples/vhost/ |
| H A D | main.c | 151 static unsigned num_ports = 0; /**< The number of ports specified in command line */ variable 668 ports[num_ports++] = i; in us_vhost_parse_args() 671 if ((num_ports == 0) || (num_ports > MAX_SUP_PORTS)) { in us_vhost_parse_args() 673 "but only %u port can be enabled\n",num_ports, MAX_SUP_PORTS); in us_vhost_parse_args() 686 unsigned valid_num_ports = num_ports; in check_ports_num() 689 if (num_ports > nb_ports) { in check_ports_num() 691 num_ports, nb_ports); in check_ports_num() 692 num_ports = nb_ports; in check_ports_num() 695 for (portid = 0; portid < num_ports; portid ++) { in check_ports_num() 1543 "but only %u port can be enabled\n",num_ports, MAX_SUP_PORTS); in main()
|
| /f-stack/dpdk/examples/server_node_efd/node/ |
| H A D | node.c | 170 if (info->num_ports > RTE_MAX_ETHPORTS) in configure_output_ports() 174 for (i = 0; i < info->num_ports - 1; i += 2) { in configure_output_ports() 370 for (port = 0; port < info->num_ports; port++) { in main()
|