Lines Matching full:ra
99 static int rapl_msr_read_raw(int cpu, struct reg_action *ra) in rapl_msr_read_raw() argument
101 u32 msr = (u32)ra->reg; in rapl_msr_read_raw()
103 if (rdmsrl_safe_on_cpu(cpu, msr, &ra->value)) { in rapl_msr_read_raw()
107 ra->value &= ra->mask; in rapl_msr_read_raw()
113 struct reg_action *ra = info; in rapl_msr_update_func() local
114 u32 msr = (u32)ra->reg; in rapl_msr_update_func()
117 ra->err = rdmsrl_safe(msr, &val); in rapl_msr_update_func()
118 if (ra->err) in rapl_msr_update_func()
121 val &= ~ra->mask; in rapl_msr_update_func()
122 val |= ra->value; in rapl_msr_update_func()
124 ra->err = wrmsrl_safe(msr, val); in rapl_msr_update_func()
127 static int rapl_msr_write_raw(int cpu, struct reg_action *ra) in rapl_msr_write_raw() argument
131 ret = smp_call_function_single(cpu, rapl_msr_update_func, ra, 1); in rapl_msr_write_raw()
135 return ra->err; in rapl_msr_write_raw()