Lines Matching refs:port

84  * the ipd input port number.
111 DEBUGPRINT("%s: %u Mbps %s duplex, port %2d, queue %2d\n",
114 priv->port, priv->queue);
129 static int port;
131 if (port < CVMX_PIP_NUM_INPUT_PORTS) {
132 if (cvm_oct_device[port]) {
135 cvm_oct_private_t *priv = (cvm_oct_private_t *)cvm_oct_device[port]->if_softc;
143 queues_per_port = cvmx_pko_get_num_queues(port);
163 port++;
164 /* Poll the next port in a 50th of a second.
168 port = 0;
320 int port;
322 for (port = 0; port < num_ports; port++) {
324 int pkind = cvmx_helper_get_ipd_port(interface, port);
349 int port;
351 for (port = cvmx_helper_get_ipd_port(interface, 0);
352 port < cvmx_helper_get_ipd_port(interface, num_ports);
353 ifnum++, port++) {
361 printf("Failed to allocate ethernet device for interface %d port %d\n", interface, port);
371 priv->port = port;
372 priv->queue = cvmx_pko_get_base_queue(priv->port);
373 priv->fau = fau - cvmx_pko_get_num_queues(port) * 4;
374 for (qos = 0; qos < cvmx_pko_get_num_queues(port); qos++)
432 printf("octe%d: unsupported device type interface %d, port %d\n",
433 ifnum, interface, priv->port);
436 printf("octe%d: failed to register device for interface %d, port %d\n",
437 ifnum, interface, priv->port);
440 cvm_oct_device[priv->port] = ifp;
441 fau -= cvmx_pko_get_num_queues(priv->port) * sizeof(uint32_t);
453 /* Enable POW interrupt when our port has at least one packet */
471 int port;
486 for (port = 0; port < TOTAL_NUMBER_OF_PORTS; port++) {
487 if (cvm_oct_device[port]) {
488 cvm_oct_tx_shutdown(cvm_oct_device[port]);
490 unregister_netdev(cvm_oct_device[port]);
491 kfree(cvm_oct_device[port]);
495 cvm_oct_device[port] = NULL;