Lines Matching defs:napi
151 struct napi_struct napi;
154 struct mutex napi_mutex; /* Protects access to the above napi */
236 static int tun_napi_receive(struct napi_struct *napi, int budget)
238 struct tun_file *tfile = container_of(napi, struct tun_file, napi);
251 napi_gro_receive(napi, skb);
264 static int tun_napi_poll(struct napi_struct *napi, int budget)
268 received = tun_napi_receive(napi, budget);
271 napi_complete_done(napi, received);
282 netif_tx_napi_add(tun->dev, &tfile->napi, tun_napi_poll,
284 napi_enable(&tfile->napi);
291 napi_enable(&tfile->napi);
297 napi_disable(&tfile->napi);
303 netif_napi_del(&tfile->napi);
766 bool skip_filter, bool napi, bool napi_frags,
837 tun_napi_init(tun, tfile, napi, napi_frags);
1485 skb = napi_get_frags(&tfile->napi);
1521 napi_free_frags(&tfile->napi);
1879 tfile->napi.skb = NULL;
1891 tfile->napi.skb = NULL;
1957 tfile->napi.skb = NULL;
1995 napi_free_frags(&tfile->napi);
2001 if (likely(napi_schedule_prep(&tfile->napi))) {
2003 napi_gro_frags(&tfile->napi);
2004 napi_complete(&tfile->napi);
2021 napi_schedule(&tfile->napi);