Lines Matching refs:cntr
536 static u64 __measure_frequency(u32 *cntr, int duration_ms) in __measure_frequency() argument
541 dc = READ_ONCE(*cntr); in __measure_frequency()
543 dc = READ_ONCE(*cntr) - dc; in __measure_frequency()
549 static u64 measure_frequency_at(struct intel_rps *rps, u32 *cntr, int *freq) in measure_frequency_at() argument
556 x[i] = __measure_frequency(cntr, 2); in measure_frequency_at()
632 u32 *cancel, *cntr; in live_rps_frequency_cs() local
642 &cancel, &cntr); in live_rps_frequency_cs()
771 u32 *cancel, *cntr; in live_rps_frequency_srm() local
781 &cancel, &cntr); in live_rps_frequency_srm()
803 if (wait_for(READ_ONCE(*cntr), 10)) { in live_rps_frequency_srm()
810 min.count = measure_frequency_at(rps, cntr, &min.freq); in live_rps_frequency_srm()
813 max.count = measure_frequency_at(rps, cntr, &max.freq); in live_rps_frequency_srm()
837 count = measure_frequency_at(rps, cntr, &act); in live_rps_frequency_srm()