Lines Matching defs:num_ports
3245 return np->clas.tcam_top + ((idx+1) * np->parent->num_ports);
8518 if (!parent->num_ports) {
8520 parent->num_ports = 2;
8522 parent->num_ports = niu_pci_vpd_get_nports(np);
8523 if (!parent->num_ports) {
8527 parent->num_ports = nr64(ESPC_NUM_PORTS_MACS) &
8533 if (!parent->num_ports)
8534 parent->num_ports = 4;
8539 if (np->port >= parent->num_ports)
8626 int num_ports = parent->num_ports;
8629 for (i = 0; i < num_ports; i++) {
8630 parent->rxchan_per_port[i] = (16 / num_ports);
8631 parent->txchan_per_port[i] = (16 / num_ports);
8643 int num_ports = parent->num_ports;
8650 (NIU_NUM_RXCHAN / num_ports);
8652 (NIU_NUM_TXCHAN / num_ports);
8666 for (i = 0; i < num_ports; i++) {
8687 for (i = 0; i < num_ports; i++)
8693 for (i = 0; i < num_ports; i++)
8705 int i, num_ports = parent->num_ports;
8710 rdc_groups_per_port = NIU_NUM_RDC_TABLES / num_ports;
8714 for (i = 0; i < num_ports; i++) {
8804 parent->num_ports = 4;
8812 parent->num_ports = 2;
8944 cp->tcam_sz = np->parent->tcam_num_entries / np->parent->num_ports;
9023 first_ldg = (NIU_NUM_LDG / parent->num_ports) * np->port;
9024 for (i = 0; i < (NIU_NUM_LDG / parent->num_ports); i++)
9030 BUG_ON(num_irqs > (NIU_NUM_LDG / parent->num_ports));
9346 for (i = 0; i < p->num_ports; i++) {
9403 for (i = 0; i < p->num_ports; i++) {
9431 return sprintf(buf, "%d\n", p->num_ports);
9439 __ATTR(num_ports, 0444, show_num_ports, NULL),