Lines Matching refs:pcpu_ptr
21 struct rmnet_pcpu_stats *pcpu_ptr; in rmnet_vnd_rx_fixup() local
23 pcpu_ptr = this_cpu_ptr(priv->pcpu_stats); in rmnet_vnd_rx_fixup()
25 u64_stats_update_begin(&pcpu_ptr->syncp); in rmnet_vnd_rx_fixup()
26 pcpu_ptr->stats.rx_pkts++; in rmnet_vnd_rx_fixup()
27 pcpu_ptr->stats.rx_bytes += skb->len; in rmnet_vnd_rx_fixup()
28 u64_stats_update_end(&pcpu_ptr->syncp); in rmnet_vnd_rx_fixup()
34 struct rmnet_pcpu_stats *pcpu_ptr; in rmnet_vnd_tx_fixup() local
36 pcpu_ptr = this_cpu_ptr(priv->pcpu_stats); in rmnet_vnd_tx_fixup()
38 u64_stats_update_begin(&pcpu_ptr->syncp); in rmnet_vnd_tx_fixup()
39 pcpu_ptr->stats.tx_pkts++; in rmnet_vnd_tx_fixup()
40 pcpu_ptr->stats.tx_bytes += skb->len; in rmnet_vnd_tx_fixup()
41 u64_stats_update_end(&pcpu_ptr->syncp); in rmnet_vnd_tx_fixup()
108 struct rmnet_pcpu_stats *pcpu_ptr; in rmnet_get_stats64() local
114 pcpu_ptr = per_cpu_ptr(priv->pcpu_stats, cpu); in rmnet_get_stats64()
117 start = u64_stats_fetch_begin_irq(&pcpu_ptr->syncp); in rmnet_get_stats64()
118 total_stats.rx_pkts += pcpu_ptr->stats.rx_pkts; in rmnet_get_stats64()
119 total_stats.rx_bytes += pcpu_ptr->stats.rx_bytes; in rmnet_get_stats64()
120 total_stats.tx_pkts += pcpu_ptr->stats.tx_pkts; in rmnet_get_stats64()
121 total_stats.tx_bytes += pcpu_ptr->stats.tx_bytes; in rmnet_get_stats64()
122 } while (u64_stats_fetch_retry_irq(&pcpu_ptr->syncp, start)); in rmnet_get_stats64()
124 total_stats.tx_drops += pcpu_ptr->stats.tx_drops; in rmnet_get_stats64()