/linux/include/linux/ |
H A D | u64_stats_sync.h | 97 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 D | aq_ring.c | 100 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 D | vdpa_sim_net.c | 41 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 D | gen_stats.c | 122 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 D | hinic_tx.c | 81 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 D | hinic_rx.c | 57 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 D | internal.h | 20 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 D | funeth_txrx.h | 128 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 D | funeth_tx.c | 256 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 D | snmp.h | 54 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 D | netvsc_bpf.c | 77 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 D | netvsc_drv.c | 464 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 D | rockchip_canfd-ethtool.c | 52 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 D | rockchip_canfd-rx.c | 170 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 D | ena_netdev.h | 273 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 D | ena_netdev.c | 87 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 D | mana_bpf.c | 73 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 D | rmnet_vnd.c | 26 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 D | team_mode_loadbalance.c | 43 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 D | fbnic_netdev.c | 433 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 D | ice_repr.c | 30 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 D | slic.h | 286 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 D | dwmac_lib.c | 217 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 D | tn40.c | 371 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 D | nfp_net_repr.c | 40 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()
|