Lines Matching refs:napi
64 struct napi_struct napi; member
151 napi_enable(&priv->chan_tx.napi); in xrx200_open()
155 napi_enable(&priv->chan_rx.napi); in xrx200_open()
178 napi_disable(&priv->chan_rx.napi); in xrx200_close()
181 napi_disable(&priv->chan_tx.napi); in xrx200_close()
283 static int xrx200_poll_rx(struct napi_struct *napi, int budget) in xrx200_poll_rx() argument
285 struct xrx200_chan *ch = container_of(napi, in xrx200_poll_rx()
286 struct xrx200_chan, napi); in xrx200_poll_rx()
306 if (napi_complete_done(&ch->napi, rx)) in xrx200_poll_rx()
313 static int xrx200_tx_housekeeping(struct napi_struct *napi, int budget) in xrx200_tx_housekeeping() argument
315 struct xrx200_chan *ch = container_of(napi, in xrx200_tx_housekeeping()
316 struct xrx200_chan, napi); in xrx200_tx_housekeeping()
350 if (napi_complete_done(&ch->napi, pkts)) in xrx200_tx_housekeeping()
431 napi_disable(&ch_rx->napi); in xrx200_change_mtu()
435 xrx200_poll_rx(&ch_rx->napi, LTQ_DESC_NUM); in xrx200_change_mtu()
453 napi_enable(&ch_rx->napi); in xrx200_change_mtu()
474 if (napi_schedule_prep(&ch->napi)) { in xrx200_dma_irq()
476 __napi_schedule(&ch->napi); in xrx200_dma_irq()
623 netif_napi_add(net_dev, &priv->chan_rx.napi, xrx200_poll_rx); in xrx200_probe()
624 netif_napi_add_tx(net_dev, &priv->chan_tx.napi, in xrx200_probe()
651 netif_napi_del(&priv->chan_tx.napi); in xrx200_remove()
652 netif_napi_del(&priv->chan_rx.napi); in xrx200_remove()