Lines Matching defs:offset
301 int get_msr(int cpu, off_t offset, unsigned long long *msr);
1254 int get_msr_sum(int cpu, off_t offset, unsigned long long *msr);
1271 off_t offset;
1276 offset = MSR_PKG_ENERGY_STAT;
1278 offset = MSR_PKG_ENERGY_STATUS;
1281 offset = MSR_DRAM_ENERGY_STATUS;
1284 offset = MSR_PP0_ENERGY_STATUS;
1287 offset = MSR_PP1_ENERGY_STATUS;
1290 offset = MSR_PKG_PERF_STATUS;
1293 offset = MSR_DRAM_PERF_STATUS;
1296 offset = -1;
1298 return offset;
1301 int offset_to_idx(off_t offset)
1305 switch (offset) {
1590 int get_msr(int cpu, off_t offset, unsigned long long *msr)
1596 retval = pread(get_msr_fd(cpu), msr, sizeof(*msr), offset);
1599 err(-1, "cpu%d: msr offset 0x%llx read failed", cpu, (unsigned long long)offset);
1604 int probe_msr(int cpu, off_t offset)
1611 retval = pread(get_msr_fd(cpu), &dummy, sizeof(dummy), offset);
3277 * the offset from the start of the counter.
4414 int offset = topo.max_cpu_num + 1;
4435 offset -= BITMASK_SIZE;
4440 so = shift + offset;
4886 int get_msr_sum(int cpu, off_t offset, unsigned long long *msr)
4896 idx = offset_to_idx(offset);
4900 ret = get_msr(cpu, offset, &msr_cur);
4925 off_t offset;
4929 offset = idx_to_offset(i);
4930 if (offset < 0)
4932 ret = get_msr(cpu, offset, &msr_cur);
4934 fprintf(outf, "Can not update msr(0x%llx)\n", (unsigned long long)offset);
6133 fprintf(outf, "cpu%d: MSR_IA32_TEMPERATURE_TARGET: 0x%08llx (%d C) (%d default - %d offset)\n",