Lines Matching defs:counter
24 static int lpit_read_residency_counter_us(u64 *counter, bool io_mem)
37 *counter = div64_u64(count * 1000000ULL, residency_info_mem.frequency);
41 err = rdmsrl_safe(residency_info_ffh.gaddr.address, counter);
47 *counter &= mask;
48 *counter >>= residency_info_ffh.gaddr.bit_offset;
49 *counter = div64_u64(*counter * 1000000ULL, residency_info_ffh.frequency);
60 u64 counter;
63 ret = lpit_read_residency_counter_us(&counter, true);
67 return sprintf(buf, "%llu\n", counter);
75 u64 counter;
78 ret = lpit_read_residency_counter_us(&counter, false);
82 return sprintf(buf, "%llu\n", counter);