Lines Matching defs:counter
25 static int lpit_read_residency_counter_us(u64 *counter, bool io_mem)
38 *counter = div64_u64(count * 1000000ULL, residency_info_mem.frequency);
42 err = rdmsrl_safe(residency_info_ffh.gaddr.address, counter);
48 *counter &= mask;
49 *counter >>= residency_info_ffh.gaddr.bit_offset;
50 *counter = div64_u64(*counter * 1000000ULL, residency_info_ffh.frequency);
61 u64 counter;
64 ret = lpit_read_residency_counter_us(&counter, true);
68 return sprintf(buf, "%llu\n", counter);
76 u64 counter;
79 ret = lpit_read_residency_counter_us(&counter, false);
83 return sprintf(buf, "%llu\n", counter);