Lines Matching refs:prev_count
410 u64 prev_count, new_count, mask; in cn10k_ddr_perf_event_update() local
413 prev_count = local64_read(&hwc->prev_count); in cn10k_ddr_perf_event_update()
415 } while (local64_xchg(&hwc->prev_count, new_count) != prev_count); in cn10k_ddr_perf_event_update()
419 local64_add((new_count - prev_count) & mask, &event->count); in cn10k_ddr_perf_event_update()
428 local64_set(&hwc->prev_count, 0); in cn10k_ddr_perf_event_start()
546 local64_set(&hwc->prev_count, 0); in cn10k_ddr_perf_event_update_all()
554 u64 prev_count, new_count; in cn10k_ddr_pmu_overflow_handler() local
561 prev_count = local64_read(&hwc->prev_count); in cn10k_ddr_pmu_overflow_handler()
567 if (new_count < prev_count) in cn10k_ddr_pmu_overflow_handler()
574 prev_count = local64_read(&hwc->prev_count); in cn10k_ddr_pmu_overflow_handler()
580 if (new_count < prev_count) in cn10k_ddr_pmu_overflow_handler()