Lines Matching refs:pcpu_ptr
22 struct rmnet_pcpu_stats *pcpu_ptr; in rmnet_vnd_rx_fixup() local
24 pcpu_ptr = this_cpu_ptr(priv->pcpu_stats); in rmnet_vnd_rx_fixup()
26 u64_stats_update_begin(&pcpu_ptr->syncp); in rmnet_vnd_rx_fixup()
27 pcpu_ptr->stats.rx_pkts++; in rmnet_vnd_rx_fixup()
28 pcpu_ptr->stats.rx_bytes += skb->len; in rmnet_vnd_rx_fixup()
29 u64_stats_update_end(&pcpu_ptr->syncp); in rmnet_vnd_rx_fixup()
35 struct rmnet_pcpu_stats *pcpu_ptr; in rmnet_vnd_tx_fixup_len() local
37 pcpu_ptr = this_cpu_ptr(priv->pcpu_stats); in rmnet_vnd_tx_fixup_len()
39 u64_stats_update_begin(&pcpu_ptr->syncp); in rmnet_vnd_tx_fixup_len()
40 pcpu_ptr->stats.tx_pkts++; in rmnet_vnd_tx_fixup_len()
41 pcpu_ptr->stats.tx_bytes += len; in rmnet_vnd_tx_fixup_len()
42 u64_stats_update_end(&pcpu_ptr->syncp); in rmnet_vnd_tx_fixup_len()
135 struct rmnet_pcpu_stats *pcpu_ptr; in rmnet_get_stats64() local
140 pcpu_ptr = per_cpu_ptr(priv->pcpu_stats, cpu); in rmnet_get_stats64()
143 start = u64_stats_fetch_begin(&pcpu_ptr->syncp); in rmnet_get_stats64()
144 snapshot = pcpu_ptr->stats; /* struct assignment */ in rmnet_get_stats64()
145 } while (u64_stats_fetch_retry(&pcpu_ptr->syncp, start)); in rmnet_get_stats64()