/linux-6.12.1/net/core/ |
D | gro.c | 257 static void napi_gro_complete(struct napi_struct *napi, struct sk_buff *skb) in napi_gro_complete() argument 290 gro_normal_one(napi, skb, NAPI_GRO_CB(skb)->count); in napi_gro_complete() 293 static void __napi_gro_flush_chain(struct napi_struct *napi, u32 index, in __napi_gro_flush_chain() argument 296 struct list_head *head = &napi->gro_hash[index].list; in __napi_gro_flush_chain() 303 napi_gro_complete(napi, skb); in __napi_gro_flush_chain() 304 napi->gro_hash[index].count--; in __napi_gro_flush_chain() 307 if (!napi->gro_hash[index].count) in __napi_gro_flush_chain() 308 __clear_bit(index, &napi->gro_bitmask); in __napi_gro_flush_chain() 315 void napi_gro_flush(struct napi_struct *napi, bool flush_old) in napi_gro_flush() argument 317 unsigned long bitmask = napi->gro_bitmask; in napi_gro_flush() [all …]
|
D | gro_cells.c | 10 struct napi_struct napi; member 40 napi_schedule(&cell->napi); in gro_cells_receive() 51 static int gro_cell_poll(struct napi_struct *napi, int budget) in gro_cell_poll() argument 53 struct gro_cell *cell = container_of(napi, struct gro_cell, napi); in gro_cell_poll() 61 napi_gro_receive(napi, skb); in gro_cell_poll() 66 napi_complete_done(napi, work_done); in gro_cell_poll() 83 set_bit(NAPI_STATE_NO_BUSY_POLL, &cell->napi.state); in gro_cells_init() 85 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 …]
|
D | netdev-genl.c | 161 netdev_nl_napi_fill_one(struct sk_buff *rsp, struct napi_struct *napi, in netdev_nl_napi_fill_one() argument 167 if (WARN_ON_ONCE(!napi->dev)) in netdev_nl_napi_fill_one() 169 if (!(napi->dev->flags & IFF_UP)) in netdev_nl_napi_fill_one() 176 if (napi->napi_id >= MIN_NAPI_ID && in netdev_nl_napi_fill_one() 177 nla_put_u32(rsp, NETDEV_A_NAPI_ID, napi->napi_id)) in netdev_nl_napi_fill_one() 180 if (nla_put_u32(rsp, NETDEV_A_NAPI_IFINDEX, napi->dev->ifindex)) in netdev_nl_napi_fill_one() 183 if (napi->irq >= 0 && nla_put_u32(rsp, NETDEV_A_NAPI_IRQ, napi->irq)) in netdev_nl_napi_fill_one() 186 if (napi->thread) { in netdev_nl_napi_fill_one() 187 pid = task_pid_nr(napi->thread); in netdev_nl_napi_fill_one() 203 struct napi_struct *napi; in netdev_nl_napi_get_doit() local [all …]
|
/linux-6.12.1/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; 35 __entry->napi, __get_str(dev_name),
|
/linux-6.12.1/drivers/net/ethernet/intel/igc/ |
D | igc_xdp.c | 49 struct napi_struct *napi; in igc_xdp_enable_pool() local 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 125 napi = &rx_ring->q_vector->napi; in igc_xdp_disable_pool() 130 napi_disable(napi); in igc_xdp_disable_pool() 138 napi_enable(napi); in igc_xdp_disable_pool()
|
/linux-6.12.1/include/linux/ |
D | netpoll.h | 71 static inline void *netpoll_poll_lock(struct napi_struct *napi) in netpoll_poll_lock() argument 73 struct net_device *dev = napi->dev; in netpoll_poll_lock() 78 while (cmpxchg(&napi->poll_owner, -1, owner) != -1) in netpoll_poll_lock() 81 return napi; in netpoll_poll_lock() 88 struct napi_struct *napi = have; in netpoll_poll_unlock() local 90 if (napi) in netpoll_poll_unlock() 91 smp_store_release(&napi->poll_owner, -1); in netpoll_poll_unlock() 100 static inline void *netpoll_poll_lock(struct napi_struct *napi) in netpoll_poll_lock() argument
|
/linux-6.12.1/drivers/infiniband/hw/hfi1/ |
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 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()
|
/linux-6.12.1/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-6.12.1/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, 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 …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/ |
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() 77 ccp.napi = &t->napi; in mlx5e_open_trap_rq() 152 netif_napi_add(netdev, &t->napi, mlx5e_trap_napi_poll); in mlx5e_open_trap() 167 netif_napi_del(&t->napi); in mlx5e_open_trap() 176 netif_napi_del(&trap->napi); in mlx5e_close_trap() 182 napi_enable(&trap->napi); in mlx5e_activate_trap() 184 mlx5e_trigger_napi_sched(&trap->napi); in mlx5e_activate_trap() 192 napi_disable(&trap->napi); in mlx5e_deactivate_trap()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx4/ |
D | en_cq.c | 152 netif_napi_add_tx(cq->dev, &cq->napi, mlx4_en_poll_tx_cq); in mlx4_en_activate_cq() 153 netif_napi_set_irq(&cq->napi, irq); in mlx4_en_activate_cq() 154 napi_enable(&cq->napi); in mlx4_en_activate_cq() 155 netif_queue_set_napi(cq->dev, cq_idx, NETDEV_QUEUE_TYPE_TX, &cq->napi); in mlx4_en_activate_cq() 159 netif_napi_add(cq->dev, &cq->napi, mlx4_en_poll_rx_cq); in mlx4_en_activate_cq() 160 netif_napi_set_irq(&cq->napi, irq); in mlx4_en_activate_cq() 161 napi_enable(&cq->napi); in mlx4_en_activate_cq() 162 netif_queue_set_napi(cq->dev, cq_idx, NETDEV_QUEUE_TYPE_RX, &cq->napi); in mlx4_en_activate_cq() 206 napi_disable(&cq->napi); in mlx4_en_deactivate_cq() 207 netif_napi_del(&cq->napi); in mlx4_en_deactivate_cq()
|
/linux-6.12.1/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() 424 napi_enable(&channel->napi); in xlgmac_napi_enable() [all …]
|
/linux-6.12.1/io_uring/ |
D | napi.c | 230 struct io_uring_napi napi; in io_register_napi() local 234 if (copy_from_user(&napi, arg, sizeof(napi))) in io_register_napi() 236 if (napi.pad[0] || napi.pad[1] || napi.pad[2] || napi.resv) in io_register_napi() 242 WRITE_ONCE(ctx->napi_busy_poll_dt, napi.busy_poll_to * NSEC_PER_USEC); in io_register_napi() 243 WRITE_ONCE(ctx->napi_prefer_busy_poll, !!napi.prefer_busy_poll); in io_register_napi()
|
/linux-6.12.1/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() 328 napi_disable(&lapbeth->napi); in lapbeth_open() [all …]
|
/linux-6.12.1/drivers/net/ethernet/google/gve/ |
D | gve_utils.c | 67 struct sk_buff *gve_rx_copy_data(struct net_device *dev, struct napi_struct *napi, in gve_rx_copy_data() argument 72 skb = napi_alloc_skb(napi, len); in gve_rx_copy_data() 83 struct sk_buff *gve_rx_copy(struct net_device *dev, struct napi_struct *napi, in gve_rx_copy() argument 89 return gve_rx_copy_data(dev, napi, va, len); in gve_rx_copy() 113 netif_napi_add(priv->dev, &block->napi, gve_poll); in gve_add_napi() 120 netif_napi_del(&block->napi); in gve_remove_napi()
|
D | gve_rx.c | 445 static struct sk_buff *gve_rx_add_frags(struct napi_struct *napi, in gve_rx_add_frags() argument 455 skb = napi_get_frags(napi); in gve_rx_add_frags() 464 skb = napi_alloc_skb(napi, 0); in gve_rx_add_frags() 515 struct napi_struct *napi, in gve_rx_raw_addressing() argument 519 struct sk_buff *skb = gve_rx_add_frags(napi, page_info, packet_buffer_size, len, ctx); in gve_rx_raw_addressing() 535 u16 len, struct napi_struct *napi) in gve_rx_copy_to_pool() argument 576 skb = gve_rx_add_frags(napi, &alloc_page_info, in gve_rx_copy_to_pool() 592 skb = gve_rx_add_frags(napi, copy_page_info, in gve_rx_copy_to_pool() 621 u16 len, struct napi_struct *napi, in gve_rx_qpl() argument 633 skb = gve_rx_add_frags(napi, page_info, rx->packet_buffer_size, len, ctx); in gve_rx_qpl() [all …]
|
/linux-6.12.1/drivers/net/wireless/ath/ath12k/ |
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);
|
/linux-6.12.1/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_schedule(&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()
|
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-op-mode.h | 99 void (*rx)(struct iwl_op_mode *op_mode, struct napi_struct *napi, 101 void (*rx_rss)(struct iwl_op_mode *op_mode, struct napi_struct *napi, 139 struct napi_struct *napi, in iwl_op_mode_rx() argument 142 return op_mode->ops->rx(op_mode, napi, rxb); in iwl_op_mode_rx() 146 struct napi_struct *napi, in iwl_op_mode_rx_rss() argument 150 op_mode->ops->rx_rss(op_mode, napi, rxb, queue); in iwl_op_mode_rx_rss()
|
/linux-6.12.1/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 959 static int qlcnic_poll(struct napi_struct *napi, int budget) in qlcnic_poll() argument 966 sds_ring = container_of(napi, struct qlcnic_host_sds_ring, napi); in qlcnic_poll() 979 napi_complete_done(&sds_ring->napi, work_done); in qlcnic_poll() 989 static int qlcnic_tx_poll(struct napi_struct *napi, int budget) in qlcnic_tx_poll() argument 995 tx_ring = container_of(napi, struct qlcnic_host_tx_ring, napi); in qlcnic_tx_poll() 1000 napi_complete(&tx_ring->napi); in qlcnic_tx_poll() 1011 static int qlcnic_rx_poll(struct napi_struct *napi, int budget) in qlcnic_rx_poll() argument 1017 sds_ring = container_of(napi, struct qlcnic_host_sds_ring, napi); in qlcnic_rx_poll() 1023 napi_complete_done(&sds_ring->napi, work_done); in qlcnic_rx_poll() 1248 napi_gro_receive(&sds_ring->napi, skb); in qlcnic_process_rcv() [all …]
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/ |
D | mt792x_dma.c | 66 napi_schedule(&dev->mt76.napi[MT_RXQ_MCU]); in mt792x_irq_tasklet() 69 napi_schedule(&dev->mt76.napi[MT_RXQ_MCU_WA]); in mt792x_irq_tasklet() 72 napi_schedule(&dev->mt76.napi[MT_RXQ_MAIN]); in mt792x_irq_tasklet() 316 int mt792x_poll_tx(struct napi_struct *napi, int budget) in mt792x_poll_tx() argument 320 dev = container_of(napi, struct mt792x_dev, mt76.tx_napi); in mt792x_poll_tx() 323 napi_complete(napi); in mt792x_poll_tx() 329 if (napi_complete(napi)) in mt792x_poll_tx() 338 int mt792x_poll_rx(struct napi_struct *napi, int budget) in mt792x_poll_rx() argument 343 dev = mt76_priv(napi->dev); in mt792x_poll_rx() 346 napi_complete(napi); in mt792x_poll_rx() [all …]
|
/linux-6.12.1/drivers/net/wwan/t7xx/ |
D | t7xx_netdev.c | 68 napi_enable(ctlb->napi[i]); in t7xx_ccmni_enable_napi() 69 napi_schedule(ctlb->napi[i]); in t7xx_ccmni_enable_napi() 82 napi_synchronize(ctlb->napi[i]); in t7xx_ccmni_disable_napi() 83 napi_disable(ctlb->napi[i]); in t7xx_ccmni_disable_napi() 271 ctlb->napi[i] = &ctlb->hif_ctrl->rxq[i].napi; in t7xx_init_netdev_napi() 272 netif_napi_add_weight(ctlb->dummy_dev, ctlb->napi[i], t7xx_dpmaif_napi_rx_poll, in t7xx_init_netdev_napi() 284 netif_napi_del(ctlb->napi[i]); in t7xx_uninit_netdev_napi() 285 ctlb->napi[i] = NULL; in t7xx_uninit_netdev_napi() 412 struct napi_struct *napi) in t7xx_ccmni_recv_skb() argument 437 napi_gro_receive(napi, skb); in t7xx_ccmni_recv_skb()
|
/linux-6.12.1/drivers/net/ethernet/broadcom/ |
D | bcm4908_enet.c | 68 struct napi_struct napi; member 443 napi_schedule(&ring->napi); in bcm4908_enet_irq_handler() 483 napi_enable(&tx_ring->napi); in bcm4908_enet_open() 489 napi_enable(&rx_ring->napi); in bcm4908_enet_open() 506 napi_disable(&rx_ring->napi); in bcm4908_enet_stop() 507 napi_disable(&tx_ring->napi); in bcm4908_enet_stop() 534 napi_schedule(&enet->tx_ring.napi); in bcm4908_enet_start_xmit() 581 static int bcm4908_enet_poll_rx(struct napi_struct *napi, int weight) in bcm4908_enet_poll_rx() argument 583 struct bcm4908_enet_dma_ring *rx_ring = container_of(napi, struct bcm4908_enet_dma_ring, napi); in bcm4908_enet_poll_rx() 641 napi_complete_done(napi, handled); in bcm4908_enet_poll_rx() [all …]
|
/linux-6.12.1/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_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()
|
/linux-6.12.1/drivers/net/wireless/ath/ath11k/ |
D | dp_rx.h | 70 struct napi_struct *napi, int budget); 71 int ath11k_dp_process_rx_err(struct ath11k_base *ab, struct napi_struct *napi, 74 struct napi_struct *napi, 85 struct napi_struct *napi, int budget); 87 struct napi_struct *napi, int budget);
|