Lines Matching refs:napi
58 struct napi_struct napi;
119 napi_enable(&priv->chan_tx.napi);
123 napi_enable(&priv->chan_rx.napi);
146 napi_disable(&priv->chan_rx.napi);
149 napi_disable(&priv->chan_tx.napi);
217 static int xrx200_poll_rx(struct napi_struct *napi, int budget)
219 struct xrx200_chan *ch = container_of(napi,
220 struct xrx200_chan, napi);
238 if (napi_complete_done(&ch->napi, rx))
245 static int xrx200_tx_housekeeping(struct napi_struct *napi, int budget)
247 struct xrx200_chan *ch = container_of(napi,
248 struct xrx200_chan, napi);
282 if (napi_complete_done(&ch->napi, pkts))
355 if (napi_schedule_prep(&ch->napi)) {
357 __napi_schedule(&ch->napi);
513 netif_napi_add(net_dev, &priv->chan_rx.napi, xrx200_poll_rx, 32);
514 netif_tx_napi_add(net_dev, &priv->chan_tx.napi, xrx200_tx_housekeeping, 32);
540 netif_napi_del(&priv->chan_tx.napi);
541 netif_napi_del(&priv->chan_rx.napi);