Lines Matching full:napi
30 /* NAPI schedule quota */
41 /* struct cfv_napi_contxt - NAPI context info
54 * @rx_napi_complete: Number of NAPI completions (RX)
84 * @napi: Napi context used in cfv_rx_poll()
111 struct napi_struct napi; member
250 static int cfv_rx_poll(struct napi_struct *napi, int quota) in cfv_rx_poll() argument
252 struct cfv_info *cfv = container_of(napi, struct cfv_info, napi); in cfv_rx_poll()
319 napi_complete(napi); in cfv_rx_poll()
321 napi_schedule_prep(napi)) { in cfv_rx_poll()
323 __napi_schedule(napi); in cfv_rx_poll()
330 /* Stop NAPI poll on OOM, we hope to be polled later */ in cfv_rx_poll()
331 napi_complete(napi); in cfv_rx_poll()
339 napi_complete(napi); in cfv_rx_poll()
356 napi_schedule(&cfv->napi); in cfv_recv()
446 napi_enable(&cfv->napi); in cfv_netdev_open()
448 /* Schedule NAPI to read any pending packets */ in cfv_netdev_open()
449 napi_schedule(&cfv->napi); in cfv_netdev_open()
460 /* Disable interrupts, queues and NAPI polling */ in cfv_netdev_close()
464 napi_disable(&cfv->napi); in cfv_netdev_close()
628 debugfs_create_u32("rx-napi-complete", 0400, cfv->debugfs, in debugfs_init()
630 debugfs_create_u32("rx-napi-resched", 0400, cfv->debugfs, in debugfs_init()
714 /* Initialize NAPI poll context data */ in cfv_probe()
717 netif_napi_add_weight(netdev, &cfv->napi, cfv_rx_poll, in cfv_probe()