Lines Matching refs:num_ports
296 int num_ports;
298 num_ports = cvmx_helper_ports_on_interface(interface);
299 for (port = 0; port < num_ports; port++) {
358 int num_ports = cvmx_helper_ports_on_interface(interface);
359 for (port = 0; port < num_ports; port++)
401 * @param num_ports Number of ports on the interface
405 int __cvmx_helper_setup_gmx(int interface, int num_ports)
417 gmx_tx_prts.s.prts = num_ports;
429 if (num_ports > 4)
431 cvmx_dprintf("__cvmx_helper_setup_gmx: Illegal num_ports\n");
436 gmx_rx_prts.s.prts = num_ports;
451 if (num_ports == 1)
453 else if (num_ports == 2)
455 else if (num_ports <= 4)
457 else if (num_ports <= 8)
464 if (num_ports == 1)
466 else if (num_ports == 2)
468 else if (num_ports <= 4)
470 else if (num_ports <= 8)
495 if (num_ports <= 1)
497 else if (num_ports == 2)
507 if (num_ports > 4)
508 num_ports = 4;
509 for (index = 0; index < num_ports; index++)
520 for (index = 0; index < num_ports; index++)