Lines Matching defs:idx
75 static u64 get_ext_regs_value(int idx)
77 switch (idx) {
79 return get_pmcs_ext_regs(idx - PERF_REG_POWERPC_PMC1);
102 u64 perf_reg_value(struct pt_regs *regs, int idx)
104 if (idx == PERF_REG_POWERPC_SIER &&
110 if (idx == PERF_REG_POWERPC_MMCRA &&
115 if (idx >= PERF_REG_POWERPC_MAX && idx < PERF_REG_EXTENDED_MAX)
116 return get_ext_regs_value(idx);
119 * If the idx is referring to value beyond the
122 if (WARN_ON_ONCE(idx >= PERF_REG_EXTENDED_MAX))
125 return regs_get_register(regs, pt_regs_offset[idx]);