Lines Matching refs:ra
88 static int rapl_msr_read_raw(int cpu, struct reg_action *ra) in rapl_msr_read_raw() argument
90 u32 msr = (u32)ra->reg; in rapl_msr_read_raw()
92 if (rdmsrl_safe_on_cpu(cpu, msr, &ra->value)) { in rapl_msr_read_raw()
96 ra->value &= ra->mask; in rapl_msr_read_raw()
102 struct reg_action *ra = info; in rapl_msr_update_func() local
103 u32 msr = (u32)ra->reg; in rapl_msr_update_func()
106 ra->err = rdmsrl_safe(msr, &val); in rapl_msr_update_func()
107 if (ra->err) in rapl_msr_update_func()
110 val &= ~ra->mask; in rapl_msr_update_func()
111 val |= ra->value; in rapl_msr_update_func()
113 ra->err = wrmsrl_safe(msr, val); in rapl_msr_update_func()
116 static int rapl_msr_write_raw(int cpu, struct reg_action *ra) in rapl_msr_write_raw() argument
120 ret = smp_call_function_single(cpu, rapl_msr_update_func, ra, 1); in rapl_msr_write_raw()
124 return ra->err; in rapl_msr_write_raw()