Home
last modified time | relevance | path

Searched refs:syncp (Results 1 – 25 of 157) sorted by relevance

1234567

/linux/include/linux/
H A Du64_stats_sync.h97 static inline void u64_stats_init(struct u64_stats_sync *syncp) { } in u64_stats_init() argument
98 static inline void __u64_stats_update_begin(struct u64_stats_sync *syncp) { } in __u64_stats_update_begin() argument
99 static inline void __u64_stats_update_end(struct u64_stats_sync *syncp) { } in __u64_stats_update_end() argument
102 static inline unsigned int __u64_stats_fetch_begin(const struct u64_stats_sync *syncp) in __u64_stats_fetch_begin() argument
106 static inline bool __u64_stats_fetch_retry(const struct u64_stats_sync *syncp, in __u64_stats_fetch_retry() argument
138 #define u64_stats_init(syncp) \ argument
140 struct u64_stats_sync *__s = (syncp); \
144 static inline void __u64_stats_update_begin(struct u64_stats_sync *syncp) in __u64_stats_update_begin() argument
147 write_seqcount_begin(&syncp->seq); in __u64_stats_update_begin()
150 static inline void __u64_stats_update_end(struct u64_stats_sync *syncp) in __u64_stats_update_end() argument
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_ring.c100 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages()
102 u64_stats_update_end(&self->stats.rx.syncp); in aq_get_rxpages()
110 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages()
112 u64_stats_update_end(&self->stats.rx.syncp); in aq_get_rxpages()
116 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages()
118 u64_stats_update_end(&self->stats.rx.syncp); in aq_get_rxpages()
125 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages()
127 u64_stats_update_end(&self->stats.rx.syncp); in aq_get_rxpages()
238 u64_stats_init(&self->stats.rx.syncp); in aq_ring_init()
240 u64_stats_init(&self->stats.tx.syncp); in aq_ring_init()
[all …]
/linux/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim_net.c41 struct u64_stats_sync syncp; member
50 struct u64_stats_sync syncp; member
189 u64_stats_update_begin(&net->cq_stats.syncp); in vdpasim_handle_cvq()
193 u64_stats_update_end(&net->cq_stats.syncp); in vdpasim_handle_cvq()
270 u64_stats_update_begin(&net->tx_stats.syncp); in vdpasim_net_work()
274 u64_stats_update_end(&net->tx_stats.syncp); in vdpasim_net_work()
276 u64_stats_update_begin(&net->rx_stats.syncp); in vdpasim_net_work()
282 u64_stats_update_end(&net->rx_stats.syncp); in vdpasim_net_work()
299 start = u64_stats_fetch_begin(&net->rx_stats.syncp); in vdpasim_net_get_stats()
305 } while (u64_stats_fetch_retry(&net->rx_stats.syncp, start)); in vdpasim_net_get_stats()
[all …]
/linux/net/core/
H A Dgen_stats.c122 u64_stats_init(&b->syncp); in gnet_stats_basic_sync_init()
138 start = u64_stats_fetch_begin(&bcpu->syncp); in gnet_stats_add_basic_cpu()
141 } while (u64_stats_fetch_retry(&bcpu->syncp, start)); in gnet_stats_add_basic_cpu()
165 start = u64_stats_fetch_begin(&b->syncp); in gnet_stats_add_basic()
168 } while (running && u64_stats_fetch_retry(&b->syncp, start)); in gnet_stats_add_basic()
190 start = u64_stats_fetch_begin(&bcpu->syncp); in gnet_stats_read_basic()
193 } while (u64_stats_fetch_retry(&bcpu->syncp, start)); in gnet_stats_read_basic()
204 start = u64_stats_fetch_begin(&b->syncp); in gnet_stats_read_basic()
207 } while (running && u64_stats_fetch_retry(&b->syncp, start)); in gnet_stats_read_basic()
/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_tx.c81 u64_stats_update_begin(&txq_stats->syncp); in hinic_txq_clean_stats()
88 u64_stats_update_end(&txq_stats->syncp); in hinic_txq_clean_stats()
102 start = u64_stats_fetch_begin(&txq_stats->syncp); in hinic_txq_get_stats()
109 } while (u64_stats_fetch_retry(&txq_stats->syncp, start)); in hinic_txq_get_stats()
120 u64_stats_init(&txq_stats->syncp); in txq_stats_init()
524 u64_stats_update_begin(&txq->txq_stats.syncp); in hinic_lb_xmit_frame()
526 u64_stats_update_end(&txq->txq_stats.syncp); in hinic_lb_xmit_frame()
545 u64_stats_update_begin(&txq->txq_stats.syncp); in hinic_lb_xmit_frame()
547 u64_stats_update_end(&txq->txq_stats.syncp); in hinic_lb_xmit_frame()
577 u64_stats_update_begin(&txq->txq_stats.syncp); in hinic_xmit_frame()
[all …]
H A Dhinic_rx.c57 u64_stats_update_begin(&rxq_stats->syncp); in hinic_rxq_clean_stats()
63 u64_stats_update_end(&rxq_stats->syncp); in hinic_rxq_clean_stats()
77 start = u64_stats_fetch_begin(&rxq_stats->syncp); in hinic_rxq_get_stats()
84 } while (u64_stats_fetch_retry(&rxq_stats->syncp, start)); in hinic_rxq_get_stats()
95 u64_stats_init(&rxq_stats->syncp); in rxq_stats_init()
449 u64_stats_update_begin(&rxq->rxq_stats.syncp); in rxq_recv()
452 u64_stats_update_end(&rxq->rxq_stats.syncp); in rxq_recv()
/linux/net/mpls/
H A Dinternal.h20 struct u64_stats_sync syncp; member
39 u64_stats_update_begin(&ptr->syncp); \
42 u64_stats_update_end(&ptr->syncp); \
51 u64_stats_update_begin(&ptr->syncp); \
53 u64_stats_update_end(&ptr->syncp); \
/linux/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_txrx.h128 struct u64_stats_sync syncp; member
197 struct u64_stats_sync syncp; member
203 u64_stats_update_begin(&(q)->syncp); \
205 u64_stats_update_end(&(q)->syncp); \
210 seq = u64_stats_fetch_begin(&(q)->syncp); \
212 } while (u64_stats_fetch_retry(&(q)->syncp, (seq)))
H A Dfuneth_tx.c256 u64_stats_update_begin(&q->syncp); in write_pkt_desc()
258 u64_stats_update_end(&q->syncp); in write_pkt_desc()
290 u64_stats_update_begin(&q->syncp); in write_pkt_desc()
293 u64_stats_update_end(&q->syncp); in write_pkt_desc()
296 u64_stats_update_begin(&q->syncp); in write_pkt_desc()
299 u64_stats_update_end(&q->syncp); in write_pkt_desc()
560 u64_stats_update_begin(&q->syncp); in fun_xdp_tx()
563 u64_stats_update_end(&q->syncp); in fun_xdp_tx()
653 u64_stats_init(&q->syncp); in fun_txq_create_sw()
/linux/include/net/
H A Dsnmp.h54 struct u64_stats_sync syncp; member
163 u64_stats_update_begin(&ptr->syncp); \
165 u64_stats_update_end(&ptr->syncp); \
181 u64_stats_update_begin(&ptr->syncp); \
184 u64_stats_update_end(&ptr->syncp); \
/linux/drivers/net/hyperv/
H A Dnetvsc_bpf.c77 u64_stats_update_begin(&rx_stats->syncp); in netvsc_run_xdp()
83 u64_stats_update_end(&rx_stats->syncp); in netvsc_run_xdp()
87 u64_stats_update_begin(&rx_stats->syncp); in netvsc_run_xdp()
89 u64_stats_update_end(&rx_stats->syncp); in netvsc_run_xdp()
287 u64_stats_update_begin(&tx_stats->syncp); in netvsc_ndoxdp_xmit()
289 u64_stats_update_end(&tx_stats->syncp); in netvsc_ndoxdp_xmit()
H A Dnetvsc_drv.c464 u64_stats_update_begin(&pcpu_stats->syncp); in netvsc_vf_xmit()
467 u64_stats_update_end(&pcpu_stats->syncp); in netvsc_vf_xmit()
895 u64_stats_update_begin(&rx_stats->syncp); in netvsc_recv_callback()
897 u64_stats_update_end(&rx_stats->syncp); in netvsc_recv_callback()
917 u64_stats_update_begin(&rx_stats->syncp); in netvsc_recv_callback()
928 u64_stats_update_end(&rx_stats->syncp); in netvsc_recv_callback()
1272 start = u64_stats_fetch_begin(&stats->syncp); in netvsc_get_vf_stats()
1277 } while (u64_stats_fetch_retry(&stats->syncp, start)); in netvsc_get_vf_stats()
1302 start = u64_stats_fetch_begin(&stats->syncp); in netvsc_get_pcpu_stats()
1307 } while (u64_stats_fetch_retry(&stats->syncp, start)); in netvsc_get_pcpu_stats()
[all …]
/linux/drivers/net/can/rockchip/
H A Drockchip_canfd-ethtool.c52 start = u64_stats_fetch_begin(&rkcanfd_stats->syncp); in rkcanfd_ethtool_get_ethtool_stats()
58 } while (u64_stats_fetch_retry(&rkcanfd_stats->syncp, start)); in rkcanfd_ethtool_get_ethtool_stats()
72 u64_stats_init(&priv->stats.syncp); in rkcanfd_ethtool_init()
H A Drockchip_canfd-rx.c170 u64_stats_update_begin(&rkcanfd_stats->syncp); in rkcanfd_rxstx_filter()
172 u64_stats_update_end(&rkcanfd_stats->syncp); in rkcanfd_rxstx_filter()
221 u64_stats_update_begin(&rkcanfd_stats->syncp); in rkcanfd_handle_rx_int_one()
223 u64_stats_update_end(&rkcanfd_stats->syncp); in rkcanfd_handle_rx_int_one()
/linux/drivers/net/ethernet/amazon/ena/
H A Dena_netdev.h273 struct u64_stats_sync syncp; member
373 struct u64_stats_sync syncp; member
420 struct u64_stats_sync *syncp) in ena_increase_stat() argument
422 u64_stats_update_begin(syncp); in ena_increase_stat()
424 u64_stats_update_end(syncp); in ena_increase_stat()
430 ena_increase_stat(&tx_ring->tx_stats.doorbells, 1, &tx_ring->syncp); in ena_ring_tx_doorbell()
H A Dena_netdev.c87 ena_increase_stat(&adapter->dev_stats.tx_timeout, 1, &adapter->syncp); in ena_tx_timeout()
144 ena_increase_stat(&ring->tx_stats.prepare_ctx_err, 1, &ring->syncp); in ena_xmit_common()
150 u64_stats_update_begin(&ring->syncp); in ena_xmit_common()
153 u64_stats_update_end(&ring->syncp); in ena_xmit_common()
203 u64_stats_init(&ring->syncp); in ena_init_io_rings_common()
511 ena_increase_stat(&rx_ring->rx_stats.page_alloc_fail, 1, &rx_ring->syncp); in ena_alloc_map_page()
522 &rx_ring->syncp); in ena_alloc_map_page()
628 &rx_ring->syncp); in ena_refill_rx_bufs()
813 ena_increase_stat(&ring->tx_stats.bad_req_id, 1, &ring->syncp); in handle_invalid_req_id()
911 &tx_ring->syncp); in ena_clean_tx_irq()
[all …]
/linux/drivers/net/ethernet/microsoft/mana/
H A Dmana_bpf.c73 u64_stats_update_begin(&tx_stats->syncp); in mana_xdp_xmit()
75 u64_stats_update_end(&tx_stats->syncp); in mana_xdp_xmit()
111 u64_stats_update_begin(&rx_stats->syncp); in mana_run_xdp()
115 u64_stats_update_end(&rx_stats->syncp); in mana_run_xdp()
/linux/drivers/net/ethernet/qualcomm/rmnet/
H A Drmnet_vnd.c26 u64_stats_update_begin(&pcpu_ptr->syncp); in rmnet_vnd_rx_fixup()
29 u64_stats_update_end(&pcpu_ptr->syncp); in rmnet_vnd_rx_fixup()
39 u64_stats_update_begin(&pcpu_ptr->syncp); in rmnet_vnd_tx_fixup_len()
42 u64_stats_update_end(&pcpu_ptr->syncp); in rmnet_vnd_tx_fixup_len()
143 start = u64_stats_fetch_begin(&pcpu_ptr->syncp); in rmnet_get_stats64()
145 } while (u64_stats_fetch_retry(&pcpu_ptr->syncp, start)); in rmnet_get_stats64()
/linux/drivers/net/team/
H A Dteam_mode_loadbalance.c43 struct u64_stats_sync syncp; member
211 u64_stats_update_begin(&pcpu_stats->syncp); in lb_update_tx_stats()
214 u64_stats_update_end(&pcpu_stats->syncp); in lb_update_tx_stats()
450 struct u64_stats_sync *syncp) in __lb_one_cpu_stats_add() argument
456 start = u64_stats_fetch_begin(syncp); in __lb_one_cpu_stats_add()
458 } while (u64_stats_fetch_retry(syncp, start)); in __lb_one_cpu_stats_add()
493 &pcpu_stats->syncp); in lb_stats_refresh()
507 &pcpu_stats->syncp); in lb_stats_refresh()
614 u64_stats_init(&team_lb_stats->syncp); in lb_init()
/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_netdev.c433 start = u64_stats_fetch_begin(&stats->syncp); in fbnic_get_stats64()
437 } while (u64_stats_fetch_retry(&stats->syncp, start)); in fbnic_get_stats64()
462 start = u64_stats_fetch_begin(&stats->syncp); in fbnic_get_stats64()
466 } while (u64_stats_fetch_retry(&stats->syncp, start)); in fbnic_get_stats64()
501 start = u64_stats_fetch_begin(&stats->syncp); in fbnic_get_queue_stats_rx()
504 } while (u64_stats_fetch_retry(&stats->syncp, start)); in fbnic_get_queue_stats_rx()
524 start = u64_stats_fetch_begin(&stats->syncp); in fbnic_get_queue_stats_tx()
527 } while (u64_stats_fetch_retry(&stats->syncp, start)); in fbnic_get_queue_stats_tx()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_repr.c30 u64_stats_update_begin(&stats->syncp); in ice_repr_inc_tx_stats()
33 u64_stats_update_end(&stats->syncp); in ice_repr_inc_tx_stats()
47 u64_stats_update_begin(&stats->syncp); in ice_repr_inc_rx_stats()
50 u64_stats_update_end(&stats->syncp); in ice_repr_inc_rx_stats()
183 start = u64_stats_fetch_begin(&repr_stats->syncp); in ice_repr_sp_stats64()
189 } while (u64_stats_fetch_retry(&repr_stats->syncp, start)); in ice_repr_sp_stats64()
/linux/drivers/net/ethernet/alacritech/
H A Dslic.h286 u64_stats_update_begin(&(st)->syncp); \
288 u64_stats_update_end(&(st)->syncp); \
295 start = u64_stats_fetch_begin(&(st)->syncp); \
297 } while (u64_stats_fetch_retry(&(st)->syncp, start)); \
438 struct u64_stats_sync syncp; member
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac_lib.c217 u64_stats_update_begin(&stats->syncp); in dwmac_dma_interrupt()
219 u64_stats_update_end(&stats->syncp); in dwmac_dma_interrupt()
224 u64_stats_update_begin(&stats->syncp); in dwmac_dma_interrupt()
226 u64_stats_update_end(&stats->syncp); in dwmac_dma_interrupt()
/linux/drivers/net/ethernet/tehuti/
H A Dtn40.c371 u64_stats_update_begin(&priv->syncp); in tn40_rx_receive()
373 u64_stats_update_end(&priv->syncp); in tn40_rx_receive()
380 u64_stats_update_begin(&priv->syncp); in tn40_rx_receive()
383 u64_stats_update_end(&priv->syncp); in tn40_rx_receive()
401 u64_stats_update_begin(&priv->syncp); in tn40_rx_receive()
403 u64_stats_update_end(&priv->syncp); in tn40_rx_receive()
408 u64_stats_update_begin(&priv->syncp); in tn40_rx_receive()
410 u64_stats_update_end(&priv->syncp); in tn40_rx_receive()
725 u64_stats_update_begin(&priv->syncp); in tn40_start_xmit()
727 u64_stats_update_end(&priv->syncp); in tn40_start_xmit()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_repr.c40 u64_stats_update_begin(&stats->syncp); in nfp_repr_inc_tx_stats()
43 u64_stats_update_end(&stats->syncp); in nfp_repr_inc_tx_stats()
52 u64_stats_update_begin(&stats->syncp); in nfp_repr_inc_rx_stats()
55 u64_stats_update_end(&stats->syncp); in nfp_repr_inc_rx_stats()
137 start = u64_stats_fetch_begin(&repr_stats->syncp); in nfp_repr_get_host_stats64()
143 } while (u64_stats_fetch_retry(&repr_stats->syncp, start)); in nfp_repr_get_host_stats64()

1234567