Lines Matching refs:rv

10 	struct msr_info *rv = info;  in __rdmsr_on_cpu()  local
14 if (rv->msrs) in __rdmsr_on_cpu()
15 reg = per_cpu_ptr(rv->msrs, this_cpu); in __rdmsr_on_cpu()
17 reg = &rv->reg; in __rdmsr_on_cpu()
19 rdmsr(rv->msr_no, reg->l, reg->h); in __rdmsr_on_cpu()
24 struct msr_info *rv = info; in __wrmsr_on_cpu() local
28 if (rv->msrs) in __wrmsr_on_cpu()
29 reg = per_cpu_ptr(rv->msrs, this_cpu); in __wrmsr_on_cpu()
31 reg = &rv->reg; in __wrmsr_on_cpu()
33 wrmsr(rv->msr_no, reg->l, reg->h); in __wrmsr_on_cpu()
39 struct msr_info rv; in rdmsr_on_cpu() local
41 memset(&rv, 0, sizeof(rv)); in rdmsr_on_cpu()
43 rv.msr_no = msr_no; in rdmsr_on_cpu()
44 err = smp_call_function_single(cpu, __rdmsr_on_cpu, &rv, 1); in rdmsr_on_cpu()
45 *l = rv.reg.l; in rdmsr_on_cpu()
46 *h = rv.reg.h; in rdmsr_on_cpu()
55 struct msr_info rv; in rdmsrl_on_cpu() local
57 memset(&rv, 0, sizeof(rv)); in rdmsrl_on_cpu()
59 rv.msr_no = msr_no; in rdmsrl_on_cpu()
60 err = smp_call_function_single(cpu, __rdmsr_on_cpu, &rv, 1); in rdmsrl_on_cpu()
61 *q = rv.reg.q; in rdmsrl_on_cpu()
70 struct msr_info rv; in wrmsr_on_cpu() local
72 memset(&rv, 0, sizeof(rv)); in wrmsr_on_cpu()
74 rv.msr_no = msr_no; in wrmsr_on_cpu()
75 rv.reg.l = l; in wrmsr_on_cpu()
76 rv.reg.h = h; in wrmsr_on_cpu()
77 err = smp_call_function_single(cpu, __wrmsr_on_cpu, &rv, 1); in wrmsr_on_cpu()
86 struct msr_info rv; in wrmsrl_on_cpu() local
88 memset(&rv, 0, sizeof(rv)); in wrmsrl_on_cpu()
90 rv.msr_no = msr_no; in wrmsrl_on_cpu()
91 rv.reg.q = q; in wrmsrl_on_cpu()
93 err = smp_call_function_single(cpu, __wrmsr_on_cpu, &rv, 1); in wrmsrl_on_cpu()
103 struct msr_info rv; in __rwmsr_on_cpus() local
106 memset(&rv, 0, sizeof(rv)); in __rwmsr_on_cpus()
108 rv.msrs = msrs; in __rwmsr_on_cpus()
109 rv.msr_no = msr_no; in __rwmsr_on_cpus()
114 msr_func(&rv); in __rwmsr_on_cpus()
116 smp_call_function_many(mask, msr_func, &rv, 1); in __rwmsr_on_cpus()
156 struct msr_info_completion *rv = info; in __rdmsr_safe_on_cpu() local
158 rv->msr.err = rdmsr_safe(rv->msr.msr_no, &rv->msr.reg.l, &rv->msr.reg.h); in __rdmsr_safe_on_cpu()
159 complete(&rv->done); in __rdmsr_safe_on_cpu()
164 struct msr_info *rv = info; in __wrmsr_safe_on_cpu() local
166 rv->err = wrmsr_safe(rv->msr_no, rv->reg.l, rv->reg.h); in __wrmsr_safe_on_cpu()
171 struct msr_info_completion rv; in rdmsr_safe_on_cpu() local
175 INIT_CSD(&csd, __rdmsr_safe_on_cpu, &rv); in rdmsr_safe_on_cpu()
177 memset(&rv, 0, sizeof(rv)); in rdmsr_safe_on_cpu()
178 init_completion(&rv.done); in rdmsr_safe_on_cpu()
179 rv.msr.msr_no = msr_no; in rdmsr_safe_on_cpu()
183 wait_for_completion(&rv.done); in rdmsr_safe_on_cpu()
184 err = rv.msr.err; in rdmsr_safe_on_cpu()
186 *l = rv.msr.reg.l; in rdmsr_safe_on_cpu()
187 *h = rv.msr.reg.h; in rdmsr_safe_on_cpu()
196 struct msr_info rv; in wrmsr_safe_on_cpu() local
198 memset(&rv, 0, sizeof(rv)); in wrmsr_safe_on_cpu()
200 rv.msr_no = msr_no; in wrmsr_safe_on_cpu()
201 rv.reg.l = l; in wrmsr_safe_on_cpu()
202 rv.reg.h = h; in wrmsr_safe_on_cpu()
203 err = smp_call_function_single(cpu, __wrmsr_safe_on_cpu, &rv, 1); in wrmsr_safe_on_cpu()
205 return err ? err : rv.err; in wrmsr_safe_on_cpu()
212 struct msr_info rv; in wrmsrl_safe_on_cpu() local
214 memset(&rv, 0, sizeof(rv)); in wrmsrl_safe_on_cpu()
216 rv.msr_no = msr_no; in wrmsrl_safe_on_cpu()
217 rv.reg.q = q; in wrmsrl_safe_on_cpu()
219 err = smp_call_function_single(cpu, __wrmsr_safe_on_cpu, &rv, 1); in wrmsrl_safe_on_cpu()
221 return err ? err : rv.err; in wrmsrl_safe_on_cpu()
243 struct msr_regs_info *rv = info; in __rdmsr_safe_regs_on_cpu() local
245 rv->err = rdmsr_safe_regs(rv->regs); in __rdmsr_safe_regs_on_cpu()
250 struct msr_regs_info *rv = info; in __wrmsr_safe_regs_on_cpu() local
252 rv->err = wrmsr_safe_regs(rv->regs); in __wrmsr_safe_regs_on_cpu()
258 struct msr_regs_info rv; in rdmsr_safe_regs_on_cpu() local
260 rv.regs = regs; in rdmsr_safe_regs_on_cpu()
261 rv.err = -EIO; in rdmsr_safe_regs_on_cpu()
262 err = smp_call_function_single(cpu, __rdmsr_safe_regs_on_cpu, &rv, 1); in rdmsr_safe_regs_on_cpu()
264 return err ? err : rv.err; in rdmsr_safe_regs_on_cpu()
271 struct msr_regs_info rv; in wrmsr_safe_regs_on_cpu() local
273 rv.regs = regs; in wrmsr_safe_regs_on_cpu()
274 rv.err = -EIO; in wrmsr_safe_regs_on_cpu()
275 err = smp_call_function_single(cpu, __wrmsr_safe_regs_on_cpu, &rv, 1); in wrmsr_safe_regs_on_cpu()
277 return err ? err : rv.err; in wrmsr_safe_regs_on_cpu()