Lines Matching refs:napi
68 struct napi_struct napi; member
443 napi_schedule(&ring->napi); in bcm4908_enet_irq_handler()
483 napi_enable(&tx_ring->napi); in bcm4908_enet_open()
489 napi_enable(&rx_ring->napi); in bcm4908_enet_open()
506 napi_disable(&rx_ring->napi); in bcm4908_enet_stop()
507 napi_disable(&tx_ring->napi); in bcm4908_enet_stop()
534 napi_schedule(&enet->tx_ring.napi); in bcm4908_enet_start_xmit()
581 static int bcm4908_enet_poll_rx(struct napi_struct *napi, int weight) in bcm4908_enet_poll_rx() argument
583 struct bcm4908_enet_dma_ring *rx_ring = container_of(napi, struct bcm4908_enet_dma_ring, napi); in bcm4908_enet_poll_rx()
641 napi_complete_done(napi, handled); in bcm4908_enet_poll_rx()
651 static int bcm4908_enet_poll_tx(struct napi_struct *napi, int weight) in bcm4908_enet_poll_tx() argument
653 struct bcm4908_enet_dma_ring *tx_ring = container_of(napi, struct bcm4908_enet_dma_ring, napi); in bcm4908_enet_poll_tx()
682 napi_complete_done(napi, handled); in bcm4908_enet_poll_tx()
754 netif_napi_add_tx(netdev, &enet->tx_ring.napi, bcm4908_enet_poll_tx); in bcm4908_enet_probe()
755 netif_napi_add(netdev, &enet->rx_ring.napi, bcm4908_enet_poll_rx); in bcm4908_enet_probe()
776 netif_napi_del(&enet->rx_ring.napi); in bcm4908_enet_remove()
777 netif_napi_del(&enet->tx_ring.napi); in bcm4908_enet_remove()