Home
last modified time | relevance | path

Searched refs:napi (Results 1 – 25 of 490) sorted by relevance

12345678910>>...20

/drivers/net/ethernet/intel/igc/
Digc_xdp.c44 struct napi_struct *napi; in igc_xdp_enable_pool() local
74 napi = &rx_ring->q_vector->napi; in igc_xdp_enable_pool()
79 napi_disable(napi); in igc_xdp_enable_pool()
86 napi_enable(napi); in igc_xdp_enable_pool()
104 struct napi_struct *napi; in igc_xdp_disable_pool() local
120 napi = &rx_ring->q_vector->napi; in igc_xdp_disable_pool()
125 napi_disable(napi); in igc_xdp_disable_pool()
133 napi_enable(napi); in igc_xdp_disable_pool()
/drivers/net/ethernet/
Dlantiq_xrx200.c64 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
[all …]
Dlantiq_etop.c84 struct napi_struct napi; member
151 ltq_etop_poll_rx(struct napi_struct *napi, int budget) in ltq_etop_poll_rx() argument
153 struct ltq_etop_chan *ch = container_of(napi, in ltq_etop_poll_rx()
154 struct ltq_etop_chan, napi); in ltq_etop_poll_rx()
166 napi_complete_done(&ch->napi, work_done); in ltq_etop_poll_rx()
173 ltq_etop_poll_tx(struct napi_struct *napi, int budget) in ltq_etop_poll_tx() argument
176 container_of(napi, struct ltq_etop_chan, napi); in ltq_etop_poll_tx()
196 napi_complete(&ch->napi); in ltq_etop_poll_tx()
207 napi_schedule(&priv->ch[ch].napi); in ltq_etop_dma_irq()
447 napi_enable(&ch->napi); in ltq_etop_open()
[all …]
/drivers/net/ethernet/aquantia/atlantic/
Daq_vec.c21 struct napi_struct napi; member
28 static int aq_vec_poll(struct napi_struct *napi, int budget) in aq_vec_poll() argument
30 struct aq_vec_s *self = container_of(napi, struct aq_vec_s, napi); in aq_vec_poll()
68 napi, in aq_vec_poll()
93 napi_complete_done(napi, work_done); in aq_vec_poll()
122 netif_napi_add(aq_nic_get_ndev(aq_nic), &self->napi, aq_vec_poll); in aq_vec_alloc()
151 self->napi.napi_id) < 0) { in aq_vec_ring_alloc()
245 napi_enable(&self->napi); in aq_vec_start()
265 napi_disable(&self->napi); in aq_vec_stop()
290 netif_napi_del(&self->napi); in aq_vec_free()
[all …]
/drivers/net/ethernet/synopsys/
Ddwc-xlgmac-net.c290 if (napi_schedule_prep(&pdata->napi)) { in xlgmac_isr()
296 __napi_schedule_irqoff(&pdata->napi); in xlgmac_isr()
350 if (napi_schedule_prep(&channel->napi)) { in xlgmac_dma_isr()
355 __napi_schedule_irqoff(&channel->napi); in xlgmac_dma_isr()
365 struct napi_struct *napi; in xlgmac_tx_timer() local
367 napi = (pdata->per_channel_irq) ? &channel->napi : &pdata->napi; in xlgmac_tx_timer()
369 if (napi_schedule_prep(napi)) { in xlgmac_tx_timer()
378 __napi_schedule(napi); in xlgmac_tx_timer()
421 netif_napi_add(pdata->netdev, &channel->napi, in xlgmac_napi_enable()
424 napi_enable(&channel->napi); in xlgmac_napi_enable()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtrap.c9 static int mlx5e_trap_napi_poll(struct napi_struct *napi, int budget) in mlx5e_trap_napi_poll() argument
11 struct mlx5e_trap *trap_ctx = container_of(napi, struct mlx5e_trap, napi); in mlx5e_trap_napi_poll()
30 if (unlikely(!napi_complete_done(napi, work_done))) in mlx5e_trap_napi_poll()
74 ccp.napi = &t->napi; in mlx5e_open_trap_rq()
150 netif_napi_add(netdev, &t->napi, mlx5e_trap_napi_poll); in mlx5e_open_trap()
165 netif_napi_del(&t->napi); in mlx5e_open_trap()
174 netif_napi_del(&trap->napi); in mlx5e_close_trap()
180 napi_enable(&trap->napi); in mlx5e_activate_trap()
182 mlx5e_trigger_napi_sched(&trap->napi); in mlx5e_activate_trap()
190 napi_disable(&trap->napi); in mlx5e_deactivate_trap()
/drivers/infiniband/hw/hfi1/
Dipoib_rx.c22 static struct sk_buff *prepare_frag_skb(struct napi_struct *napi, int size) in prepare_frag_skb() argument
33 return napi_alloc_skb(napi, size); in prepare_frag_skb()
49 struct napi_struct *napi = &rxq->napi; in hfi1_ipoib_prepare_skb() local
58 skb = napi_alloc_skb(napi, skb_size); in hfi1_ipoib_prepare_skb()
60 skb = prepare_frag_skb(napi, skb_size); in hfi1_ipoib_prepare_skb()
Dnetdev_rx.c211 rxq->rcd->napi = &rxq->napi; in hfi1_netdev_rxq_init()
218 set_bit(NAPI_STATE_NO_BUSY_POLL, &rxq->napi.state); in hfi1_netdev_rxq_init()
219 netif_napi_add_weight(dev, &rxq->napi, hfi1_netdev_rx_napi, 64); in hfi1_netdev_rxq_init()
252 netif_napi_del(&rxq->napi); in hfi1_netdev_rxq_deinit()
272 napi_enable(&rxq->napi); in enable_queues()
295 napi_synchronize(&rxq->napi); in disable_queues()
296 napi_disable(&rxq->napi); in disable_queues()
/drivers/net/wan/
Dlapbether.c58 struct napi_struct napi; member
88 static int lapbeth_napi_poll(struct napi_struct *napi, int budget) in lapbeth_napi_poll() argument
90 struct lapbethdev *lapbeth = container_of(napi, struct lapbethdev, in lapbeth_napi_poll()
91 napi); in lapbeth_napi_poll()
103 napi_complete(napi); in lapbeth_napi_poll()
178 napi_schedule(&lapbeth->napi); in lapbeth_data_indication()
277 napi_schedule(&lapbeth->napi); in lapbeth_connected()
295 napi_schedule(&lapbeth->napi); in lapbeth_disconnected()
324 napi_enable(&lapbeth->napi); in lapbeth_open()
328 napi_disable(&lapbeth->napi); in lapbeth_open()
[all …]
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c960 static int qlcnic_poll(struct napi_struct *napi, int budget) in qlcnic_poll() argument
967 sds_ring = container_of(napi, struct qlcnic_host_sds_ring, napi); in qlcnic_poll()
980 napi_complete_done(&sds_ring->napi, work_done); in qlcnic_poll()
990 static int qlcnic_tx_poll(struct napi_struct *napi, int budget) in qlcnic_tx_poll() argument
996 tx_ring = container_of(napi, struct qlcnic_host_tx_ring, napi); in qlcnic_tx_poll()
1001 napi_complete(&tx_ring->napi); in qlcnic_tx_poll()
1012 static int qlcnic_rx_poll(struct napi_struct *napi, int budget) in qlcnic_rx_poll() argument
1018 sds_ring = container_of(napi, struct qlcnic_host_sds_ring, napi); in qlcnic_rx_poll()
1024 napi_complete_done(&sds_ring->napi, work_done); in qlcnic_rx_poll()
1249 napi_gro_receive(&sds_ring->napi, skb); in qlcnic_process_rcv()
[all …]
/drivers/net/can/dev/
Drx-offload.c42 static int can_rx_offload_napi_poll(struct napi_struct *napi, int quota) in can_rx_offload_napi_poll() argument
44 struct can_rx_offload *offload = container_of(napi, in can_rx_offload_napi_poll()
46 napi); in can_rx_offload_napi_poll()
66 napi_complete_done(napi, work_done); in can_rx_offload_napi_poll()
70 napi_reschedule(&offload->napi); in can_rx_offload_napi_poll()
299 napi_schedule(&offload->napi); in can_rx_offload_irq_finish()
321 napi_schedule(&offload->napi); in can_rx_offload_threaded_irq_finish()
338 netif_napi_add_weight(dev, &offload->napi, can_rx_offload_napi_poll, in can_rx_offload_init_queue()
391 napi_enable(&offload->napi); in can_rx_offload_enable()
397 netif_napi_del(&offload->napi); in can_rx_offload_del()
/drivers/net/wireless/intel/iwlwifi/
Diwl-op-mode.h95 void (*rx)(struct iwl_op_mode *op_mode, struct napi_struct *napi,
97 void (*rx_rss)(struct iwl_op_mode *op_mode, struct napi_struct *napi,
136 struct napi_struct *napi, in iwl_op_mode_rx() argument
139 return op_mode->ops->rx(op_mode, napi, rxb); in iwl_op_mode_rx()
143 struct napi_struct *napi, in iwl_op_mode_rx_rss() argument
147 op_mode->ops->rx_rss(op_mode, napi, rxb, queue); in iwl_op_mode_rx_rss()
/drivers/net/ethernet/broadcom/
Dbcm4908_enet.c57 struct napi_struct napi; member
433 napi_schedule(&ring->napi); in bcm4908_enet_irq_handler()
473 napi_enable(&tx_ring->napi); in bcm4908_enet_open()
479 napi_enable(&rx_ring->napi); in bcm4908_enet_open()
496 napi_disable(&rx_ring->napi); in bcm4908_enet_stop()
497 napi_disable(&tx_ring->napi); in bcm4908_enet_stop()
523 napi_schedule(&enet->tx_ring.napi); in bcm4908_enet_start_xmit()
568 static int bcm4908_enet_poll_rx(struct napi_struct *napi, int weight) in bcm4908_enet_poll_rx() argument
570 struct bcm4908_enet_dma_ring *rx_ring = container_of(napi, struct bcm4908_enet_dma_ring, napi); in bcm4908_enet_poll_rx()
619 napi_complete_done(napi, handled); in bcm4908_enet_poll_rx()
[all …]
/drivers/net/ethernet/google/gve/
Dgve_rx.c300 static struct sk_buff *gve_rx_add_frags(struct napi_struct *napi, in gve_rx_add_frags() argument
309 ctx->skb_head = napi_get_frags(napi); in gve_rx_add_frags()
348 struct napi_struct *napi, in gve_rx_raw_addressing() argument
352 struct sk_buff *skb = gve_rx_add_frags(napi, page_info, packet_buffer_size, len, ctx); in gve_rx_raw_addressing()
369 u16 len, struct napi_struct *napi, in gve_rx_qpl() argument
381 skb = gve_rx_add_frags(napi, page_info, rx->packet_buffer_size, len, ctx); in gve_rx_qpl()
391 skb = gve_rx_copy(netdev, napi, page_info, len, padding, ctx); in gve_rx_qpl()
489 struct gve_rx_slot_page_info *page_info, struct napi_struct *napi, in gve_rx_skb() argument
498 skb = gve_rx_copy(netdev, napi, page_info, len, GVE_RX_PAD, ctx); in gve_rx_skb()
521 page_info, len, napi, in gve_rx_skb()
[all …]
Dgve_rx_dqo.c481 static int gve_rx_append_frags(struct napi_struct *napi, in gve_rx_append_frags() argument
491 skb = napi_alloc_skb(napi, 0); in gve_rx_append_frags()
521 static int gve_rx_dqo(struct napi_struct *napi, struct gve_rx_ring *rx, in gve_rx_dqo() argument
563 if (unlikely(gve_rx_append_frags(napi, buf_state, buf_len, rx, in gve_rx_dqo()
573 rx->ctx.skb_head = gve_rx_copy(priv->dev, napi, in gve_rx_dqo()
589 rx->ctx.skb_head = napi_get_frags(napi); in gve_rx_dqo()
633 static int gve_rx_complete_skb(struct gve_rx_ring *rx, struct napi_struct *napi, in gve_rx_complete_skb() argument
659 napi_gro_frags(napi); in gve_rx_complete_skb()
661 napi_gro_receive(napi, rx->ctx.skb_head); in gve_rx_complete_skb()
668 struct napi_struct *napi = &block->napi; in gve_rx_poll_dqo() local
[all …]
/drivers/net/wireless/ath/wil6210/
Dnetdev.c91 static int wil6210_netdev_poll_rx(struct napi_struct *napi, int budget) in wil6210_netdev_poll_rx() argument
93 struct wil6210_priv *wil = container_of(napi, struct wil6210_priv, in wil6210_netdev_poll_rx()
102 napi_complete_done(napi, done); in wil6210_netdev_poll_rx()
112 static int wil6210_netdev_poll_rx_edma(struct napi_struct *napi, int budget) in wil6210_netdev_poll_rx_edma() argument
114 struct wil6210_priv *wil = container_of(napi, struct wil6210_priv, in wil6210_netdev_poll_rx_edma()
123 napi_complete_done(napi, done); in wil6210_netdev_poll_rx_edma()
133 static int wil6210_netdev_poll_tx(struct napi_struct *napi, int budget) in wil6210_netdev_poll_tx() argument
135 struct wil6210_priv *wil = container_of(napi, struct wil6210_priv, in wil6210_netdev_poll_tx()
160 napi_complete(napi); in wil6210_netdev_poll_tx()
170 static int wil6210_netdev_poll_tx_edma(struct napi_struct *napi, int budget) in wil6210_netdev_poll_tx_edma() argument
[all …]
/drivers/staging/octeon/
Dethernet-rx.c37 struct napi_struct napi; member
412 static int cvm_oct_napi_poll(struct napi_struct *napi, int budget) in cvm_oct_napi_poll() argument
414 struct oct_rx_group *rx_group = container_of(napi, struct oct_rx_group, in cvm_oct_napi_poll()
415 napi); in cvm_oct_napi_poll()
422 napi_complete_done(napi, rx_count); in cvm_oct_napi_poll()
472 netif_napi_add_weight(dev_for_napi, &oct_rx_group[i].napi, in cvm_oct_rx_initialize()
474 napi_enable(&oct_rx_group[i].napi); in cvm_oct_rx_initialize()
481 "Ethernet", &oct_rx_group[i].napi); in cvm_oct_rx_initialize()
518 napi_schedule(&oct_rx_group[i].napi); in cvm_oct_rx_initialize()
540 netif_napi_del(&oct_rx_group[i].napi); in cvm_oct_rx_shutdown()
/drivers/net/ethernet/sfc/
Def100_rep.c23 static int efx_ef100_rep_poll(struct napi_struct *napi, int weight);
46 netif_napi_add(net_dev, &efv->napi, efx_ef100_rep_poll); in efx_ef100_rep_open()
47 napi_enable(&efv->napi); in efx_ef100_rep_open()
55 napi_disable(&efv->napi); in efx_ef100_rep_close()
56 netif_napi_del(&efv->napi); in efx_ef100_rep_close()
344 static int efx_ef100_rep_poll(struct napi_struct *napi, int weight) in efx_ef100_rep_poll() argument
346 struct efx_rep *efv = container_of(napi, struct efx_rep, napi); in efx_ef100_rep_poll()
367 if (napi_complete_done(napi, spent)) { in efx_ef100_rep_poll()
378 napi_schedule(&efv->napi); in efx_ef100_rep_poll()
431 napi_schedule(&efv->napi); in efx_ef100_rep_rx_packet()
/drivers/net/wireless/ath/ath11k/
Ddp_rx.h69 struct napi_struct *napi, int budget);
70 int ath11k_dp_process_rx_err(struct ath11k_base *ab, struct napi_struct *napi,
73 struct napi_struct *napi,
84 struct napi_struct *napi, int budget);
86 struct napi_struct *napi, int budget);
/drivers/net/wireless/mediatek/mt76/mt7921/
Ddma.c8 static int mt7921_poll_tx(struct napi_struct *napi, int budget) in mt7921_poll_tx() argument
12 dev = container_of(napi, struct mt7921_dev, mt76.tx_napi); in mt7921_poll_tx()
15 napi_complete(napi); in mt7921_poll_tx()
21 if (napi_complete(napi)) in mt7921_poll_tx()
28 static int mt7921_poll_rx(struct napi_struct *napi, int budget) in mt7921_poll_rx() argument
33 dev = container_of(napi->dev, struct mt7921_dev, mt76.napi_dev); in mt7921_poll_rx()
36 napi_complete(napi); in mt7921_poll_rx()
40 done = mt76_dma_rx_poll(napi, budget); in mt7921_poll_rx()
/drivers/net/wireless/mediatek/mt76/mt7615/
Ddma.c66 static int mt7615_poll_tx(struct napi_struct *napi, int budget) in mt7615_poll_tx() argument
70 dev = container_of(napi, struct mt7615_dev, mt76.tx_napi); in mt7615_poll_tx()
72 napi_complete(napi); in mt7615_poll_tx()
78 if (napi_complete(napi)) in mt7615_poll_tx()
86 static int mt7615_poll_rx(struct napi_struct *napi, int budget) in mt7615_poll_rx() argument
91 dev = container_of(napi->dev, struct mt7615_dev, mt76.napi_dev); in mt7615_poll_rx()
94 napi_complete(napi); in mt7615_poll_rx()
98 done = mt76_dma_rx_poll(napi, budget); in mt7615_poll_rx()
/drivers/net/caif/
Dcaif_virtio.c111 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()
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()
[all …]
/drivers/net/
Dvirtio_net.c137 struct napi_struct napi; member
148 struct napi_struct napi; member
388 static void virtqueue_napi_schedule(struct napi_struct *napi, in virtqueue_napi_schedule() argument
391 if (napi_schedule_prep(napi)) { in virtqueue_napi_schedule()
393 __napi_schedule(napi); in virtqueue_napi_schedule()
397 static void virtqueue_napi_complete(struct napi_struct *napi, in virtqueue_napi_complete() argument
403 if (napi_complete_done(napi, processed)) { in virtqueue_napi_complete()
405 virtqueue_napi_schedule(napi, vq); in virtqueue_napi_complete()
414 struct napi_struct *napi = &vi->sq[vq2txq(vq)].napi; in skb_xmit_done() local
419 if (napi->weight) in skb_xmit_done()
[all …]
/drivers/net/ethernet/ezchip/
Dnps_enet.c174 static int nps_enet_poll(struct napi_struct *napi, int budget) in nps_enet_poll() argument
176 struct net_device *ndev = napi->dev; in nps_enet_poll()
182 if ((work_done < budget) && napi_complete_done(napi, work_done)) { in nps_enet_poll()
202 napi_reschedule(napi); in nps_enet_poll()
228 if (likely(napi_schedule_prep(&priv->napi))) { in nps_enet_irq_handler()
230 __napi_schedule(&priv->napi); in nps_enet_irq_handler()
493 napi_enable(&priv->napi); in nps_enet_open()
514 napi_disable(&priv->napi); in nps_enet_stop()
615 netif_napi_add_weight(ndev, &priv->napi, nps_enet_poll, in nps_enet_probe()
630 netif_napi_del(&priv->napi); in nps_enet_probe()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Den_cq.c150 netif_napi_add_tx(cq->dev, &cq->napi, mlx4_en_poll_tx_cq); in mlx4_en_activate_cq()
151 napi_enable(&cq->napi); in mlx4_en_activate_cq()
155 netif_napi_add(cq->dev, &cq->napi, mlx4_en_poll_rx_cq); in mlx4_en_activate_cq()
156 napi_enable(&cq->napi); in mlx4_en_activate_cq()
192 napi_disable(&cq->napi); in mlx4_en_deactivate_cq()
193 netif_napi_del(&cq->napi); in mlx4_en_deactivate_cq()

12345678910>>...20