Home
last modified time | relevance | path

Searched refs:prev_raw_count (Results 1 – 21 of 21) sorted by relevance

/kernel/linux/linux-5.10/drivers/perf/hisilicon/
Dhisi_uncore_pmu.c235 u64 delta, prev_raw_count, new_raw_count; in hisi_uncore_pmu_event_update() local
240 prev_raw_count = local64_read(&hwc->prev_count); in hisi_uncore_pmu_event_update()
241 } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in hisi_uncore_pmu_event_update()
242 new_raw_count) != prev_raw_count); in hisi_uncore_pmu_event_update()
246 delta = (new_raw_count - prev_raw_count) & in hisi_uncore_pmu_event_update()
265 u64 prev_raw_count = local64_read(&hwc->prev_count); in hisi_uncore_pmu_start() local
267 hisi_pmu->ops->write_counter(hisi_pmu, hwc, prev_raw_count); in hisi_uncore_pmu_start()
/kernel/linux/linux-5.10/arch/sh/kernel/
Dperf_event.c179 u64 prev_raw_count, new_raw_count; in sh_perf_event_update() local
196 prev_raw_count = local64_read(&hwc->prev_count); in sh_perf_event_update()
199 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in sh_perf_event_update()
200 new_raw_count) != prev_raw_count) in sh_perf_event_update()
211 delta = (new_raw_count << shift) - (prev_raw_count << shift); in sh_perf_event_update()
/kernel/linux/linux-5.10/arch/riscv/kernel/
Dperf_event.c217 u64 prev_raw_count, new_raw_count; in riscv_pmu_read() local
223 prev_raw_count = local64_read(&hwc->prev_count); in riscv_pmu_read()
226 oldval = local64_cmpxchg(&hwc->prev_count, prev_raw_count, in riscv_pmu_read()
228 } while (oldval != prev_raw_count); in riscv_pmu_read()
233 delta = (new_raw_count - prev_raw_count) & in riscv_pmu_read()
/kernel/linux/linux-5.10/arch/xtensa/kernel/
Dperf_event.c139 uint64_t prev_raw_count, new_raw_count; in xtensa_perf_event_update() local
143 prev_raw_count = local64_read(&hwc->prev_count); in xtensa_perf_event_update()
145 } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in xtensa_perf_event_update()
146 new_raw_count) != prev_raw_count); in xtensa_perf_event_update()
148 delta = (new_raw_count - prev_raw_count) & XTENSA_PMU_COUNTER_MASK; in xtensa_perf_event_update()
/kernel/linux/linux-5.10/arch/arm/mach-imx/
Dmmdc.c309 u64 delta, prev_raw_count, new_raw_count; in mmdc_pmu_event_update() local
312 prev_raw_count = local64_read(&hwc->prev_count); in mmdc_pmu_event_update()
315 } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in mmdc_pmu_event_update()
316 new_raw_count) != prev_raw_count); in mmdc_pmu_event_update()
318 delta = (new_raw_count - prev_raw_count) & 0xFFFFFFFF; in mmdc_pmu_event_update()
/kernel/linux/linux-5.10/arch/x86/events/intel/
Dcstate.c361 u64 prev_raw_count, new_raw_count; in cstate_pmu_event_update() local
364 prev_raw_count = local64_read(&hwc->prev_count); in cstate_pmu_event_update()
367 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in cstate_pmu_event_update()
368 new_raw_count) != prev_raw_count) in cstate_pmu_event_update()
371 local64_add(new_raw_count - prev_raw_count, &event->count); in cstate_pmu_event_update()
Dds.c1672 u64 prev_raw_count, new_raw_count; in intel_pmu_save_and_restart_reload() local
1682 prev_raw_count = local64_read(&hwc->prev_count); in intel_pmu_save_and_restart_reload()
1714 old = ((s64)(prev_raw_count << shift) >> shift); in intel_pmu_save_and_restart_reload()
/kernel/linux/linux-5.10/arch/alpha/kernel/
Dperf_event.c310 long prev_raw_count, new_raw_count; in alpha_perf_event_update() local
314 prev_raw_count = local64_read(&hwc->prev_count); in alpha_perf_event_update()
317 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in alpha_perf_event_update()
318 new_raw_count) != prev_raw_count) in alpha_perf_event_update()
321 delta = (new_raw_count - (prev_raw_count & alpha_pmu->pmc_count_mask[idx])) + ovf; in alpha_perf_event_update()
/kernel/linux/linux-5.10/drivers/perf/
Dfsl_imx8_ddr_perf.c369 u64 delta, prev_raw_count, new_raw_count; in ddr_perf_event_update() local
373 prev_raw_count = local64_read(&hwc->prev_count); in ddr_perf_event_update()
375 } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in ddr_perf_event_update()
376 new_raw_count) != prev_raw_count); in ddr_perf_event_update()
378 delta = (new_raw_count - prev_raw_count) & 0xFFFFFFFF; in ddr_perf_event_update()
Darm_pmu.c242 u64 delta, prev_raw_count, new_raw_count; in armpmu_event_update() local
246 prev_raw_count = local64_read(&hwc->prev_count); in armpmu_event_update()
249 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in armpmu_event_update()
250 new_raw_count) != prev_raw_count) in armpmu_event_update()
253 delta = (new_raw_count - prev_raw_count) & max_period; in armpmu_event_update()
Darm-cci.c986 u64 delta, prev_raw_count, new_raw_count; in pmu_event_update() local
989 prev_raw_count = local64_read(&hwc->prev_count); in pmu_event_update()
991 } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in pmu_event_update()
992 new_raw_count) != prev_raw_count); in pmu_event_update()
994 delta = (new_raw_count - prev_raw_count) & CCI_PMU_CNTR_MASK; in pmu_event_update()
Dxgene_pmu.c995 u64 delta, prev_raw_count, new_raw_count; in xgene_perf_event_update() local
998 prev_raw_count = local64_read(&hw->prev_count); in xgene_perf_event_update()
1001 if (local64_cmpxchg(&hw->prev_count, prev_raw_count, in xgene_perf_event_update()
1002 new_raw_count) != prev_raw_count) in xgene_perf_event_update()
1005 delta = (new_raw_count - prev_raw_count) & pmu_dev->max_period; in xgene_perf_event_update()
1030 u64 prev_raw_count = local64_read(&hw->prev_count); in xgene_perf_start() local
1033 prev_raw_count); in xgene_perf_start()
/kernel/linux/linux-5.10/arch/x86/events/amd/
Dibs.c160 u64 prev_raw_count; in perf_event_try_update() local
170 prev_raw_count = local64_read(&hwc->prev_count); in perf_event_try_update()
171 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in perf_event_try_update()
172 new_raw_count) != prev_raw_count) in perf_event_try_update()
183 delta = (new_raw_count << shift) - (prev_raw_count << shift); in perf_event_try_update()
/kernel/linux/linux-5.10/arch/x86/events/
Drapl.c178 u64 prev_raw_count, new_raw_count; in rapl_event_update() local
183 prev_raw_count = local64_read(&hwc->prev_count); in rapl_event_update()
186 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in rapl_event_update()
187 new_raw_count) != prev_raw_count) { in rapl_event_update()
200 delta = (new_raw_count << shift) - (prev_raw_count << shift); in rapl_event_update()
Dcore.c104 u64 prev_raw_count, new_raw_count; in x86_perf_event_update() local
121 prev_raw_count = local64_read(&hwc->prev_count); in x86_perf_event_update()
124 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in x86_perf_event_update()
125 new_raw_count) != prev_raw_count) in x86_perf_event_update()
136 delta = (new_raw_count << shift) - (prev_raw_count << shift); in x86_perf_event_update()
/kernel/linux/linux-5.10/arch/nds32/kernel/
Dperf_event_cpu.c947 u64 delta, prev_raw_count, new_raw_count; in nds32_pmu_event_update() local
950 prev_raw_count = local64_read(&hwc->prev_count); in nds32_pmu_event_update()
953 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in nds32_pmu_event_update()
954 new_raw_count) != prev_raw_count) { in nds32_pmu_event_update()
961 delta = (new_raw_count - prev_raw_count) & nds32_pmu->max_period; in nds32_pmu_event_update()
/kernel/linux/linux-5.10/arch/sparc/kernel/
Dperf_event.c867 u64 prev_raw_count, new_raw_count; in sparc_perf_event_update() local
871 prev_raw_count = local64_read(&hwc->prev_count); in sparc_perf_event_update()
874 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in sparc_perf_event_update()
875 new_raw_count) != prev_raw_count) in sparc_perf_event_update()
878 delta = (new_raw_count << shift) - (prev_raw_count << shift); in sparc_perf_event_update()
/kernel/linux/linux-5.10/arch/arc/kernel/
Dperf_event.c121 u64 prev_raw_count = local64_read(&hwc->prev_count); in arc_perf_event_update() local
123 s64 delta = new_raw_count - prev_raw_count; in arc_perf_event_update()
/kernel/linux/linux-5.10/arch/mips/kernel/
Dperf_event_mipsxx.c453 u64 prev_raw_count, new_raw_count; in mipspmu_event_update() local
457 prev_raw_count = local64_read(&hwc->prev_count); in mipspmu_event_update()
460 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in mipspmu_event_update()
461 new_raw_count) != prev_raw_count) in mipspmu_event_update()
464 delta = new_raw_count - prev_raw_count; in mipspmu_event_update()
/kernel/linux/linux-5.10/arch/csky/kernel/
Dperf_event.c922 uint64_t prev_raw_count = local64_read(&hwc->prev_count); in csky_perf_event_update() local
929 int64_t delta = new_raw_count - prev_raw_count; in csky_perf_event_update()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0031_linux_drivers_perf_phy_pinctrl_ptp_pwm.patch226 u64 delta, prev_raw_count, new_raw_count;
231 - prev_raw_count = local64_read(&hwc->prev_count);
233 - } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count,
234 - new_raw_count) != prev_raw_count);
237 + prev_raw_count = local64_read(&hwc->prev_count);
240 delta = (new_raw_count - prev_raw_count) & 0xFFFFFFFF;