/kernel/linux/linux-5.10/include/trace/events/ |
H A 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 [all...] |
/kernel/linux/linux-6.6/include/trace/events/ |
H A 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 [all...] |
/kernel/linux/linux-6.6/net/core/ |
H A D | gro.c | 236 static void napi_gro_complete(struct napi_struct *napi, struct sk_buff *skb) in napi_gro_complete() argument 269 gro_normal_one(napi, skb, NAPI_GRO_CB(skb)->count); in napi_gro_complete() 272 static void __napi_gro_flush_chain(struct napi_struct *napi, u32 index, in __napi_gro_flush_chain() argument 275 struct list_head *head = &napi->gro_hash[index].list; in __napi_gro_flush_chain() 282 napi_gro_complete(napi, skb); in __napi_gro_flush_chain() 283 napi->gro_hash[index].count--; in __napi_gro_flush_chain() 286 if (!napi->gro_hash[index].count) in __napi_gro_flush_chain() 287 __clear_bit(index, &napi->gro_bitmask); in __napi_gro_flush_chain() 290 /* napi->gro_hash[].list contains packets ordered by age. 294 void napi_gro_flush(struct napi_struct *napi, boo argument 418 gro_flush_oldest(struct napi_struct *napi, struct list_head *head) gro_flush_oldest() argument 437 dev_gro_receive(struct napi_struct *napi, struct sk_buff *skb) dev_gro_receive() argument 573 napi_skb_finish(struct napi_struct *napi, struct sk_buff *skb, gro_result_t ret) napi_skb_finish() argument 600 napi_gro_receive(struct napi_struct *napi, struct sk_buff *skb) napi_gro_receive() argument 616 napi_reuse_skb(struct napi_struct *napi, struct sk_buff *skb) napi_reuse_skb() argument 645 napi_get_frags(struct napi_struct *napi) napi_get_frags() argument 660 napi_frags_finish(struct napi_struct *napi, struct sk_buff *skb, gro_result_t ret) napi_frags_finish() argument 692 napi_frags_skb(struct napi_struct *napi) napi_frags_skb() argument 729 napi_gro_frags(struct napi_struct *napi) napi_gro_frags() argument [all...] |
H A 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() 85 napi_enable(&cell->napi); in gro_cells_init() [all...] |
/kernel/linux/linux-5.10/net/core/ |
H A 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() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/igc/ |
H A D | igc_xdp.c | 49 struct napi_struct *napi; in igc_xdp_enable_pool() local 78 /* Rx and Tx rings share the same napi context. */ in igc_xdp_enable_pool() 79 napi = &rx_ring->q_vector->napi; in igc_xdp_enable_pool() 84 napi_disable(napi); in igc_xdp_enable_pool() 91 napi_enable(napi); in igc_xdp_enable_pool() 109 struct napi_struct *napi; in igc_xdp_disable_pool() local 124 /* Rx and Tx rings share the same napi context. */ in igc_xdp_disable_pool() 125 napi = &rx_ring->q_vector->napi; in igc_xdp_disable_pool() [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | netpoll.h | 69 static inline void *netpoll_poll_lock(struct napi_struct *napi) in netpoll_poll_lock() argument 71 struct net_device *dev = napi->dev; in netpoll_poll_lock() 76 while (cmpxchg(&napi->poll_owner, -1, owner) != -1) in netpoll_poll_lock() 79 return napi; in netpoll_poll_lock() 86 struct napi_struct *napi = have; in netpoll_poll_unlock() local 88 if (napi) in netpoll_poll_unlock() 89 smp_store_release(&napi->poll_owner, -1); in netpoll_poll_unlock() 98 static inline void *netpoll_poll_lock(struct napi_struct *napi) in netpoll_poll_lock() argument
|
/kernel/linux/linux-6.6/include/linux/ |
H A 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
|
/kernel/linux/linux-5.10/drivers/net/ethernet/ |
H A D | lantiq_xrx200.c | 58 struct napi_struct napi; member 119 napi_enable(&priv->chan_tx.napi); in xrx200_open() 123 napi_enable(&priv->chan_rx.napi); in xrx200_open() 146 napi_disable(&priv->chan_rx.napi); in xrx200_close() 149 napi_disable(&priv->chan_tx.napi); in xrx200_close() 217 static int xrx200_poll_rx(struct napi_struct *napi, int budget) in xrx200_poll_rx() argument 219 struct xrx200_chan *ch = container_of(napi, in xrx200_poll_rx() 220 struct xrx200_chan, napi); in xrx200_poll_rx() 238 if (napi_complete_done(&ch->napi, rx)) in xrx200_poll_rx() 245 static int xrx200_tx_housekeeping(struct napi_struct *napi, in argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/ |
H A 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, 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() [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
H A 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 58 * napi cache. Otherwise we will try to use napi frag cache. in hfi1_ipoib_prepare_skb() 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()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/ |
H A D | ipoib_rx.c | 22 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 55 * napi cache. Otherwise we will try to use napi frag cache. in hfi1_ipoib_prepare_skb() 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/ |
H A 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, in argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_vec.c | 26 struct napi_struct napi; member 33 static int aq_vec_poll(struct napi_struct *napi, int budget) in aq_vec_poll() argument 35 struct aq_vec_s *self = container_of(napi, struct aq_vec_s, napi); in aq_vec_poll() 73 napi, in aq_vec_poll() 98 napi_complete_done(napi, work_done); in aq_vec_poll() 127 netif_napi_add(aq_nic_get_ndev(aq_nic), &self->napi, in aq_vec_alloc() 240 napi_enable(&self->napi); in aq_vec_start() 260 napi_disable(&self->napi); in aq_vec_stop() 285 netif_napi_del(&self->napi); in aq_vec_free() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | trap.c | 8 static int mlx5e_trap_napi_poll(struct napi_struct *napi, int budget) in mlx5e_trap_napi_poll() argument 10 struct mlx5e_trap *trap_ctx = container_of(napi, struct mlx5e_trap, napi); in mlx5e_trap_napi_poll() 29 if (unlikely(!napi_complete_done(napi, work_done))) in mlx5e_trap_napi_poll() 73 ccp.napi = &t->napi; in mlx5e_open_trap_rq() 149 netif_napi_add(netdev, &t->napi, mlx5e_trap_napi_poll); in mlx5e_open_trap() 164 netif_napi_del(&t->napi); in mlx5e_open_trap() 173 netif_napi_del(&trap->napi); in mlx5e_close_trap() 179 napi_enable(&trap->napi); in mlx5e_activate_trap() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath12k/ |
H A D | dp_mon.h | 81 struct napi_struct *napi); 87 struct napi_struct *napi); 89 struct napi_struct *napi, int budget, 101 struct napi_struct *napi, 105 struct napi_struct *napi, int *budget);
|
/kernel/linux/linux-5.10/drivers/net/ethernet/synopsys/ |
H A D | dwc-xlgmac-net.c | 283 * enabled before using the private data napi structure. in xlgmac_isr() 290 if (napi_schedule_prep(&pdata->napi)) { in xlgmac_isr() 296 __napi_schedule_irqoff(&pdata->napi); in xlgmac_isr() 348 * channel napi structure and not the private data napi structure in xlgmac_dma_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 in xlgmac_tx_timer() 987 xlgmac_create_skb(struct xlgmac_pdata *pdata, struct napi_struct *napi, struct xlgmac_desc_data *desc_data, unsigned int len) xlgmac_create_skb() argument 1119 struct napi_struct *napi; xlgmac_rx_poll() local 1280 xlgmac_one_poll(struct napi_struct *napi, int budget) xlgmac_one_poll() argument 1309 xlgmac_all_poll(struct napi_struct *napi, int budget) xlgmac_all_poll() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/synopsys/ |
H A D | dwc-xlgmac-net.c | 283 * enabled before using the private data napi structure. in xlgmac_isr() 290 if (napi_schedule_prep(&pdata->napi)) { in xlgmac_isr() 296 __napi_schedule_irqoff(&pdata->napi); in xlgmac_isr() 348 * channel napi structure and not the private data napi structure in xlgmac_dma_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 in xlgmac_tx_timer() 986 xlgmac_create_skb(struct xlgmac_pdata *pdata, struct napi_struct *napi, struct xlgmac_desc_data *desc_data, unsigned int len) xlgmac_create_skb() argument 1118 struct napi_struct *napi; xlgmac_rx_poll() local 1279 xlgmac_one_poll(struct napi_struct *napi, int budget) xlgmac_one_poll() argument 1308 xlgmac_all_poll(struct napi_struct *napi, int budget) xlgmac_all_poll() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-op-mode.h | 150 void (*rx)(struct iwl_op_mode *op_mode, struct napi_struct *napi, 152 void (*rx_rss)(struct iwl_op_mode *op_mode, struct napi_struct *napi, 188 struct napi_struct *napi, in iwl_op_mode_rx() 191 return op_mode->ops->rx(op_mode, napi, rxb); in iwl_op_mode_rx() 195 struct napi_struct *napi, in iwl_op_mode_rx_rss() 199 op_mode->ops->rx_rss(op_mode, napi, rxb, queue); in iwl_op_mode_rx_rss() 187 iwl_op_mode_rx(struct iwl_op_mode *op_mode, struct napi_struct *napi, struct iwl_rx_cmd_buffer *rxb) iwl_op_mode_rx() argument 194 iwl_op_mode_rx_rss(struct iwl_op_mode *op_mode, struct napi_struct *napi, struct iwl_rx_cmd_buffer *rxb, unsigned int queue) iwl_op_mode_rx_rss() argument
|
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/ |
H A 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() 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() 147 op_mode->ops->rx_rss(op_mode, napi, rxb, queue); in iwl_op_mode_rx_rss() 135 iwl_op_mode_rx(struct iwl_op_mode *op_mode, struct napi_struct *napi, struct iwl_rx_cmd_buffer *rxb) iwl_op_mode_rx() argument 142 iwl_op_mode_rx_rss(struct iwl_op_mode *op_mode, struct napi_struct *napi, struct iwl_rx_cmd_buffer *rxb, unsigned int queue) iwl_op_mode_rx_rss() argument
|
/kernel/linux/linux-6.6/drivers/net/can/dev/ |
H A 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() 325 napi_schedule(&offload->napi); in can_rx_offload_irq_finish() 347 napi_schedule(&offload->napi); in can_rx_offload_threaded_irq_finish() 364 netif_napi_add_weight(dev, &offload->napi, can_rx_offload_napi_poll, in can_rx_offload_init_queue() 417 napi_enable(&offload->napi); in can_rx_offload_enable() 423 netif_napi_del(&offload->napi); in can_rx_offload_del() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/google/gve/ |
H A D | gve_rx.c | 230 struct napi_struct *napi, in gve_rx_copy() 234 struct sk_buff *skb = napi_alloc_skb(napi, len); in gve_rx_copy() 255 struct napi_struct *napi, in gve_rx_add_frags() 259 struct sk_buff *skb = napi_get_frags(napi); in gve_rx_add_frags() 286 struct napi_struct *napi = &priv->ntfy_blocks[rx->ntfy_id].napi; in gve_rx() local 313 skb = gve_rx_copy(rx, dev, napi, page_info, len); in gve_rx() 320 skb = gve_rx_copy(rx, dev, napi, page_info, len); in gve_rx() 329 skb = gve_rx_add_frags(dev, napi, page_info, len); in gve_rx() 344 skb = gve_rx_copy(rx, dev, napi, page_inf in gve_rx() 228 gve_rx_copy(struct gve_rx_ring *rx, struct net_device *dev, struct napi_struct *napi, struct gve_rx_slot_page_info *page_info, u16 len) gve_rx_copy() argument 254 gve_rx_add_frags(struct net_device *dev, struct napi_struct *napi, struct gve_rx_slot_page_info *page_info, u16 len) gve_rx_add_frags() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/ |
H A 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);
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/ |
H A 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);
|
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath11k/ |
H A 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);
|