Lines Matching refs:oct_rx_group
34 static struct oct_rx_group { struct
38 } oct_rx_group[16]; argument
182 static int cvm_oct_poll(struct oct_rx_group *rx_group, int budget) in cvm_oct_poll()
414 struct oct_rx_group *rx_group = container_of(napi, struct oct_rx_group, in cvm_oct_napi_poll()
442 for (i = 0; i < ARRAY_SIZE(oct_rx_group); i++) { in cvm_oct_poll_controller()
446 cvm_oct_poll(&oct_rx_group[i], 16); in cvm_oct_poll_controller()
466 for (i = 0; i < ARRAY_SIZE(oct_rx_group); i++) { in cvm_oct_rx_initialize()
472 netif_napi_add_weight(dev_for_napi, &oct_rx_group[i].napi, in cvm_oct_rx_initialize()
474 napi_enable(&oct_rx_group[i].napi); in cvm_oct_rx_initialize()
476 oct_rx_group[i].irq = OCTEON_IRQ_WORKQ0 + i; in cvm_oct_rx_initialize()
477 oct_rx_group[i].group = i; in cvm_oct_rx_initialize()
480 ret = request_irq(oct_rx_group[i].irq, cvm_oct_do_interrupt, 0, in cvm_oct_rx_initialize()
481 "Ethernet", &oct_rx_group[i].napi); in cvm_oct_rx_initialize()
484 oct_rx_group[i].irq); in cvm_oct_rx_initialize()
486 disable_irq_nosync(oct_rx_group[i].irq); in cvm_oct_rx_initialize()
518 napi_schedule(&oct_rx_group[i].napi); in cvm_oct_rx_initialize()
527 for (i = 0; i < ARRAY_SIZE(oct_rx_group); i++) { in cvm_oct_rx_shutdown()
538 free_irq(oct_rx_group[i].irq, cvm_oct_device); in cvm_oct_rx_shutdown()
540 netif_napi_del(&oct_rx_group[i].napi); in cvm_oct_rx_shutdown()