Lines Matching refs:napi
58 struct napi_struct napi; member
119 napi_enable(&priv->chan_tx.napi); in xrx200_open()
123 napi_enable(&priv->chan_rx.napi); in xrx200_open()
146 napi_disable(&priv->chan_rx.napi); in xrx200_close()
149 napi_disable(&priv->chan_tx.napi); in xrx200_close()
217 static int xrx200_poll_rx(struct napi_struct *napi, int budget) in xrx200_poll_rx() argument
219 struct xrx200_chan *ch = container_of(napi, in xrx200_poll_rx()
220 struct xrx200_chan, napi); in xrx200_poll_rx()
238 if (napi_complete_done(&ch->napi, rx)) in xrx200_poll_rx()
245 static int xrx200_tx_housekeeping(struct napi_struct *napi, int budget) in xrx200_tx_housekeeping() argument
247 struct xrx200_chan *ch = container_of(napi, in xrx200_tx_housekeeping()
248 struct xrx200_chan, napi); in xrx200_tx_housekeeping()
282 if (napi_complete_done(&ch->napi, pkts)) in xrx200_tx_housekeeping()
355 if (napi_schedule_prep(&ch->napi)) { in xrx200_dma_irq()
357 __napi_schedule(&ch->napi); in xrx200_dma_irq()
501 netif_napi_add(net_dev, &priv->chan_rx.napi, xrx200_poll_rx, 32); in xrx200_probe()
502 netif_tx_napi_add(net_dev, &priv->chan_tx.napi, xrx200_tx_housekeeping, 32); in xrx200_probe()
528 netif_napi_del(&priv->chan_tx.napi); in xrx200_remove()
529 netif_napi_del(&priv->chan_rx.napi); in xrx200_remove()