Lines Matching defs:num_ports
3264 return np->clas.tcam_top + ((idx+1) * np->parent->num_ports);
8542 if (!parent->num_ports) {
8544 parent->num_ports = 2;
8546 parent->num_ports = niu_pci_vpd_get_nports(np);
8547 if (!parent->num_ports) {
8551 parent->num_ports = nr64(ESPC_NUM_PORTS_MACS) &
8557 if (!parent->num_ports)
8558 parent->num_ports = 4;
8563 if (np->port >= parent->num_ports)
8650 int num_ports = parent->num_ports;
8653 for (i = 0; i < num_ports; i++) {
8654 parent->rxchan_per_port[i] = (16 / num_ports);
8655 parent->txchan_per_port[i] = (16 / num_ports);
8667 int num_ports = parent->num_ports;
8674 (NIU_NUM_RXCHAN / num_ports);
8676 (NIU_NUM_TXCHAN / num_ports);
8690 for (i = 0; i < num_ports; i++) {
8711 for (i = 0; i < num_ports; i++)
8717 for (i = 0; i < num_ports; i++)
8729 int i, num_ports = parent->num_ports;
8734 rdc_groups_per_port = NIU_NUM_RDC_TABLES / num_ports;
8738 for (i = 0; i < num_ports; i++) {
8828 parent->num_ports = 4;
8836 parent->num_ports = 2;
8968 cp->tcam_sz = np->parent->tcam_num_entries / np->parent->num_ports;
9047 first_ldg = (NIU_NUM_LDG / parent->num_ports) * np->port;
9048 for (i = 0; i < (NIU_NUM_LDG / parent->num_ports); i++)
9054 BUG_ON(num_irqs > (NIU_NUM_LDG / parent->num_ports));
9370 for (i = 0; i < p->num_ports; i++) {
9427 for (i = 0; i < p->num_ports; i++) {
9455 return sprintf(buf, "%d\n", p->num_ports);
9463 __ATTR(num_ports, 0444, show_num_ports, NULL),