Lines Matching refs:pcounters
1584 struct pcpu_seg6_local_counters *pcounters; in seg6_local_update_counters() local
1586 pcounters = this_cpu_ptr(slwt->pcpu_counters); in seg6_local_update_counters()
1587 u64_stats_update_begin(&pcounters->syncp); in seg6_local_update_counters()
1590 u64_stats_inc(&pcounters->packets); in seg6_local_update_counters()
1591 u64_stats_add(&pcounters->bytes, len); in seg6_local_update_counters()
1593 u64_stats_inc(&pcounters->errors); in seg6_local_update_counters()
1596 u64_stats_update_end(&pcounters->syncp); in seg6_local_update_counters()
1973 struct pcpu_seg6_local_counters __percpu *pcounters; in parse_nla_counters() local
1991 pcounters = seg6_local_alloc_pcpu_counters(GFP_KERNEL); in parse_nla_counters()
1992 if (!pcounters) in parse_nla_counters()
1995 slwt->pcpu_counters = pcounters; in parse_nla_counters()
2029 struct pcpu_seg6_local_counters *pcounters; in put_nla_counters() local
2033 pcounters = per_cpu_ptr(slwt->pcpu_counters, i); in put_nla_counters()
2035 start = u64_stats_fetch_begin(&pcounters->syncp); in put_nla_counters()
2037 packets = u64_stats_read(&pcounters->packets); in put_nla_counters()
2038 bytes = u64_stats_read(&pcounters->bytes); in put_nla_counters()
2039 errors = u64_stats_read(&pcounters->errors); in put_nla_counters()
2041 } while (u64_stats_fetch_retry(&pcounters->syncp, start)); in put_nla_counters()