Lines Matching refs:num_ports
3262 return np->clas.tcam_top + ((idx+1) * np->parent->num_ports); in tcam_get_index()
8531 if (!parent->num_ports) { in niu_get_and_validate_port()
8533 parent->num_ports = 2; in niu_get_and_validate_port()
8535 parent->num_ports = niu_pci_vpd_get_nports(np); in niu_get_and_validate_port()
8536 if (!parent->num_ports) { in niu_get_and_validate_port()
8540 parent->num_ports = nr64(ESPC_NUM_PORTS_MACS) & in niu_get_and_validate_port()
8546 if (!parent->num_ports) in niu_get_and_validate_port()
8547 parent->num_ports = 4; in niu_get_and_validate_port()
8552 if (np->port >= parent->num_ports) in niu_get_and_validate_port()
8639 int num_ports = parent->num_ports; in niu_n2_divide_channels() local
8642 for (i = 0; i < num_ports; i++) { in niu_n2_divide_channels()
8643 parent->rxchan_per_port[i] = (16 / num_ports); in niu_n2_divide_channels()
8644 parent->txchan_per_port[i] = (16 / num_ports); in niu_n2_divide_channels()
8656 int num_ports = parent->num_ports; in niu_divide_channels() local
8663 (NIU_NUM_RXCHAN / num_ports); in niu_divide_channels()
8665 (NIU_NUM_TXCHAN / num_ports); in niu_divide_channels()
8679 for (i = 0; i < num_ports; i++) { in niu_divide_channels()
8700 for (i = 0; i < num_ports; i++) in niu_divide_channels()
8706 for (i = 0; i < num_ports; i++) in niu_divide_channels()
8718 int i, num_ports = parent->num_ports; in niu_divide_rdc_groups() local
8723 rdc_groups_per_port = NIU_NUM_RDC_TABLES / num_ports; in niu_divide_rdc_groups()
8727 for (i = 0; i < num_ports; i++) { in niu_divide_rdc_groups()
8817 parent->num_ports = 4; in walk_phys()
8825 parent->num_ports = 2; in walk_phys()
8957 cp->tcam_sz = np->parent->tcam_num_entries / np->parent->num_ports; in niu_classifier_swstate_init()
9036 first_ldg = (NIU_NUM_LDG / parent->num_ports) * np->port; in niu_try_msix()
9037 for (i = 0; i < (NIU_NUM_LDG / parent->num_ports); i++) in niu_try_msix()
9043 BUG_ON(num_irqs > (NIU_NUM_LDG / parent->num_ports)); in niu_try_msix()
9358 for (i = 0; i < p->num_ports; i++) { in show_port_phy()
9415 for (i = 0; i < p->num_ports; i++) { in __show_chan_per_port()
9443 return sprintf(buf, "%d\n", p->num_ports); in show_num_ports()
9451 __ATTR(num_ports, S_IRUGO, show_num_ports, NULL),