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