Lines Matching refs:num_ports
3186 return (np->clas.tcam_top + ((idx+1) * np->parent->num_ports));
8460 if (!parent->num_ports) {
8462 parent->num_ports = 2;
8464 parent->num_ports = niu_pci_vpd_get_nports(np);
8465 if (!parent->num_ports) {
8469 parent->num_ports = nr64(ESPC_NUM_PORTS_MACS) &
8475 if (!parent->num_ports)
8476 parent->num_ports = 4;
8481 if (np->port >= parent->num_ports)
8568 int num_ports = parent->num_ports;
8571 for (i = 0; i < num_ports; i++) {
8572 parent->rxchan_per_port[i] = (16 / num_ports);
8573 parent->txchan_per_port[i] = (16 / num_ports);
8585 int num_ports = parent->num_ports;
8592 (NIU_NUM_RXCHAN / num_ports);
8594 (NIU_NUM_TXCHAN / num_ports);
8608 for (i = 0; i < num_ports; i++) {
8629 for (i = 0; i < num_ports; i++)
8635 for (i = 0; i < num_ports; i++)
8647 int i, num_ports = parent->num_ports;
8652 rdc_groups_per_port = NIU_NUM_RDC_TABLES / num_ports;
8656 for (i = 0; i < num_ports; i++) {
8747 parent->num_ports = 4;
8755 parent->num_ports = 2;
8887 cp->tcam_sz = np->parent->tcam_num_entries / np->parent->num_ports;
8960 first_ldg = (NIU_NUM_LDG / parent->num_ports) * np->port;
8961 for (i = 0; i < (NIU_NUM_LDG / parent->num_ports); i++)
8967 BUG_ON(num_irqs > (NIU_NUM_LDG / parent->num_ports));
9289 for (i = 0; i < p->num_ports; i++) {
9346 for (i = 0; i < p->num_ports; i++) {
9374 return sprintf(buf, "%d\n", p->num_ports);
9382 __ATTR(num_ports, S_IRUGO, show_num_ports, NULL),