/linux-5.19.10/include/trace/events/ |
D | napi.h | 3 #define TRACE_SYSTEM napi 16 TP_PROTO(struct napi_struct *napi, int work, int budget), 18 TP_ARGS(napi, work, budget), 21 __field( struct napi_struct *, napi) 22 __string( dev_name, napi->dev ? napi->dev->name : NO_DEV) 28 __entry->napi = napi; 29 __assign_str(dev_name, napi->dev ? napi->dev->name : NO_DEV); 35 __entry->napi, __get_str(dev_name),
|
/linux-5.19.10/net/core/ |
D | gro.c | 282 static void napi_gro_complete(struct napi_struct *napi, struct sk_buff *skb) in napi_gro_complete() argument 315 gro_normal_one(napi, skb, NAPI_GRO_CB(skb)->count); in napi_gro_complete() 318 static void __napi_gro_flush_chain(struct napi_struct *napi, u32 index, in __napi_gro_flush_chain() argument 321 struct list_head *head = &napi->gro_hash[index].list; in __napi_gro_flush_chain() 328 napi_gro_complete(napi, skb); in __napi_gro_flush_chain() 329 napi->gro_hash[index].count--; in __napi_gro_flush_chain() 332 if (!napi->gro_hash[index].count) in __napi_gro_flush_chain() 333 __clear_bit(index, &napi->gro_bitmask); in __napi_gro_flush_chain() 340 void napi_gro_flush(struct napi_struct *napi, bool flush_old) in napi_gro_flush() argument 342 unsigned long bitmask = napi->gro_bitmask; in napi_gro_flush() [all …]
|
D | gro_cells.c | 9 struct napi_struct napi; member 39 napi_schedule(&cell->napi); in gro_cells_receive() 50 static int gro_cell_poll(struct napi_struct *napi, int budget) in gro_cell_poll() argument 52 struct gro_cell *cell = container_of(napi, struct gro_cell, napi); in gro_cell_poll() 60 napi_gro_receive(napi, skb); in gro_cell_poll() 65 napi_complete_done(napi, work_done); in gro_cell_poll() 82 set_bit(NAPI_STATE_NO_BUSY_POLL, &cell->napi.state); in gro_cells_init() 84 netif_napi_add(dev, &cell->napi, gro_cell_poll, in gro_cells_init() 86 napi_enable(&cell->napi); in gro_cells_init() 116 napi_disable(&cell->napi); in gro_cells_destroy() [all …]
|
/linux-5.19.10/drivers/net/ethernet/intel/igc/ |
D | igc_xdp.c | 44 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()
|
/linux-5.19.10/include/linux/ |
D | netpoll.h | 70 static inline void *netpoll_poll_lock(struct napi_struct *napi) in netpoll_poll_lock() argument 72 struct net_device *dev = napi->dev; in netpoll_poll_lock() 77 while (cmpxchg(&napi->poll_owner, -1, owner) != -1) in netpoll_poll_lock() 80 return napi; in netpoll_poll_lock() 87 struct napi_struct *napi = have; in netpoll_poll_unlock() local 89 if (napi) in netpoll_poll_unlock() 90 smp_store_release(&napi->poll_owner, -1); in netpoll_poll_unlock() 99 static inline void *netpoll_poll_lock(struct napi_struct *napi) in netpoll_poll_lock() argument
|
/linux-5.19.10/drivers/infiniband/hw/hfi1/ |
D | ipoib_rx.c | 25 static struct sk_buff *prepare_frag_skb(struct napi_struct *napi, int size) in prepare_frag_skb() argument 36 return napi_alloc_skb(napi, size); in prepare_frag_skb() 52 struct napi_struct *napi = &rxq->napi; in hfi1_ipoib_prepare_skb() local 61 skb = napi_alloc_skb(napi, skb_size); in hfi1_ipoib_prepare_skb() 63 skb = prepare_frag_skb(napi, skb_size); in hfi1_ipoib_prepare_skb()
|
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | trap.c | 9 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, 64); 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()
|
/linux-5.19.10/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_vec.c | 21 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, in aq_vec_alloc() 153 self->napi.napi_id) < 0) { in aq_vec_ring_alloc() 249 napi_enable(&self->napi); in aq_vec_start() 269 napi_disable(&self->napi); in aq_vec_stop() 294 netif_napi_del(&self->napi); in aq_vec_free() [all …]
|
/linux-5.19.10/drivers/net/ethernet/ |
D | lantiq_xrx200.c | 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 [all …]
|
/linux-5.19.10/drivers/net/ethernet/synopsys/ |
D | dwc-xlgmac-net.c | 290 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() 425 napi_enable(&channel->napi); in xlgmac_napi_enable() [all …]
|
/linux-5.19.10/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-op-mode.h | 95 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()
|
/linux-5.19.10/drivers/net/can/dev/ |
D | rx-offload.c | 42 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()
|
/linux-5.19.10/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 960 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 …]
|
/linux-5.19.10/drivers/net/wan/ |
D | lapbether.c | 58 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() 352 napi_disable(&lapbeth->napi); in lapbeth_close() [all …]
|
/linux-5.19.10/drivers/net/wireless/ath/ath11k/ |
D | dp_rx.h | 69 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);
|
/linux-5.19.10/drivers/net/ethernet/broadcom/ |
D | bcm4908_enet.c | 57 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() 570 static int bcm4908_enet_poll_rx(struct napi_struct *napi, int weight) in bcm4908_enet_poll_rx() argument 572 struct bcm4908_enet_dma_ring *rx_ring = container_of(napi, struct bcm4908_enet_dma_ring, napi); in bcm4908_enet_poll_rx() 621 napi_complete_done(napi, handled); in bcm4908_enet_poll_rx() [all …]
|
/linux-5.19.10/drivers/net/ethernet/pensando/ionic/ |
D | ionic_txrx.h | 12 int ionic_rx_napi(struct napi_struct *napi, int budget); 13 int ionic_tx_napi(struct napi_struct *napi, int budget); 14 int ionic_txrx_napi(struct napi_struct *napi, int budget);
|
/linux-5.19.10/drivers/staging/octeon/ |
D | ethernet-rx.c | 37 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(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()
|
/linux-5.19.10/include/net/ |
D | gro.h | 426 static inline void gro_normal_list(struct napi_struct *napi) in gro_normal_list() argument 428 if (!napi->rx_count) in gro_normal_list() 430 netif_receive_skb_list_internal(&napi->rx_list); in gro_normal_list() 431 INIT_LIST_HEAD(&napi->rx_list); in gro_normal_list() 432 napi->rx_count = 0; in gro_normal_list() 438 static inline void gro_normal_one(struct napi_struct *napi, struct sk_buff *skb, int segs) in gro_normal_one() argument 440 list_add_tail(&skb->list, &napi->rx_list); in gro_normal_one() 441 napi->rx_count += segs; in gro_normal_one() 442 if (napi->rx_count >= READ_ONCE(gro_normal_batch)) in gro_normal_one() 443 gro_normal_list(napi); in gro_normal_one()
|
/linux-5.19.10/drivers/net/ethernet/google/gve/ |
D | gve_rx.c | 300 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 …]
|
/linux-5.19.10/drivers/net/wireless/ath/wil6210/ |
D | netdev.c | 91 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 …]
|
/linux-5.19.10/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | dma.c | 69 static int mt7615_poll_tx(struct napi_struct *napi, int budget) in mt7615_poll_tx() argument 73 dev = container_of(napi, struct mt7615_dev, mt76.tx_napi); in mt7615_poll_tx() 75 napi_complete(napi); in mt7615_poll_tx() 81 if (napi_complete(napi)) in mt7615_poll_tx() 89 static int mt7615_poll_rx(struct napi_struct *napi, int budget) in mt7615_poll_rx() argument 94 dev = container_of(napi->dev, struct mt7615_dev, mt76.napi_dev); in mt7615_poll_rx() 97 napi_complete(napi); in mt7615_poll_rx() 101 done = mt76_dma_rx_poll(napi, budget); in mt7615_poll_rx()
|
/linux-5.19.10/drivers/net/wireless/mediatek/mt76/mt7921/ |
D | dma.c | 22 static int mt7921_poll_tx(struct napi_struct *napi, int budget) in mt7921_poll_tx() argument 26 dev = container_of(napi, struct mt7921_dev, mt76.tx_napi); in mt7921_poll_tx() 29 napi_complete(napi); in mt7921_poll_tx() 35 if (napi_complete(napi)) in mt7921_poll_tx() 42 static int mt7921_poll_rx(struct napi_struct *napi, int budget) in mt7921_poll_rx() argument 47 dev = container_of(napi->dev, struct mt7921_dev, mt76.napi_dev); in mt7921_poll_rx() 50 napi_complete(napi); in mt7921_poll_rx() 54 done = mt76_dma_rx_poll(napi, budget); in mt7921_poll_rx()
|
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx4/ |
D | en_cq.c | 150 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, 64); 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()
|
/linux-5.19.10/drivers/net/caif/ |
D | caif_virtio.c | 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() 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 …]
|