• Home
  • Raw
  • Download

Lines Matching refs:rv

8 	struct msr_info *rv = info;  in __rdmsr_on_cpu()  local
12 if (rv->msrs) in __rdmsr_on_cpu()
13 reg = per_cpu_ptr(rv->msrs, this_cpu); in __rdmsr_on_cpu()
15 reg = &rv->reg; in __rdmsr_on_cpu()
17 rdmsr(rv->msr_no, reg->l, reg->h); in __rdmsr_on_cpu()
22 struct msr_info *rv = info; in __wrmsr_on_cpu() local
26 if (rv->msrs) in __wrmsr_on_cpu()
27 reg = per_cpu_ptr(rv->msrs, this_cpu); in __wrmsr_on_cpu()
29 reg = &rv->reg; in __wrmsr_on_cpu()
31 wrmsr(rv->msr_no, reg->l, reg->h); in __wrmsr_on_cpu()
37 struct msr_info rv; in rdmsr_on_cpu() local
39 memset(&rv, 0, sizeof(rv)); in rdmsr_on_cpu()
41 rv.msr_no = msr_no; in rdmsr_on_cpu()
42 err = smp_call_function_single(cpu, __rdmsr_on_cpu, &rv, 1); in rdmsr_on_cpu()
43 *l = rv.reg.l; in rdmsr_on_cpu()
44 *h = rv.reg.h; in rdmsr_on_cpu()
53 struct msr_info rv; in wrmsr_on_cpu() local
55 memset(&rv, 0, sizeof(rv)); in wrmsr_on_cpu()
57 rv.msr_no = msr_no; in wrmsr_on_cpu()
58 rv.reg.l = l; in wrmsr_on_cpu()
59 rv.reg.h = h; in wrmsr_on_cpu()
60 err = smp_call_function_single(cpu, __wrmsr_on_cpu, &rv, 1); in wrmsr_on_cpu()
70 struct msr_info rv; in __rwmsr_on_cpus() local
73 memset(&rv, 0, sizeof(rv)); in __rwmsr_on_cpus()
75 rv.msrs = msrs; in __rwmsr_on_cpus()
76 rv.msr_no = msr_no; in __rwmsr_on_cpus()
81 msr_func(&rv); in __rwmsr_on_cpus()
83 smp_call_function_many(mask, msr_func, &rv, 1); in __rwmsr_on_cpus()
118 struct msr_info *rv = info; in __rdmsr_safe_on_cpu() local
120 rv->err = rdmsr_safe(rv->msr_no, &rv->reg.l, &rv->reg.h); in __rdmsr_safe_on_cpu()
125 struct msr_info *rv = info; in __wrmsr_safe_on_cpu() local
127 rv->err = wrmsr_safe(rv->msr_no, rv->reg.l, rv->reg.h); in __wrmsr_safe_on_cpu()
133 struct msr_info rv; in rdmsr_safe_on_cpu() local
135 memset(&rv, 0, sizeof(rv)); in rdmsr_safe_on_cpu()
137 rv.msr_no = msr_no; in rdmsr_safe_on_cpu()
138 err = smp_call_function_single(cpu, __rdmsr_safe_on_cpu, &rv, 1); in rdmsr_safe_on_cpu()
139 *l = rv.reg.l; in rdmsr_safe_on_cpu()
140 *h = rv.reg.h; in rdmsr_safe_on_cpu()
142 return err ? err : rv.err; in rdmsr_safe_on_cpu()
149 struct msr_info rv; in wrmsr_safe_on_cpu() local
151 memset(&rv, 0, sizeof(rv)); in wrmsr_safe_on_cpu()
153 rv.msr_no = msr_no; in wrmsr_safe_on_cpu()
154 rv.reg.l = l; in wrmsr_safe_on_cpu()
155 rv.reg.h = h; in wrmsr_safe_on_cpu()
156 err = smp_call_function_single(cpu, __wrmsr_safe_on_cpu, &rv, 1); in wrmsr_safe_on_cpu()
158 return err ? err : rv.err; in wrmsr_safe_on_cpu()
168 struct msr_regs_info *rv = info; in __rdmsr_safe_regs_on_cpu() local
170 rv->err = rdmsr_safe_regs(rv->regs); in __rdmsr_safe_regs_on_cpu()
175 struct msr_regs_info *rv = info; in __wrmsr_safe_regs_on_cpu() local
177 rv->err = wrmsr_safe_regs(rv->regs); in __wrmsr_safe_regs_on_cpu()
183 struct msr_regs_info rv; in rdmsr_safe_regs_on_cpu() local
185 rv.regs = regs; in rdmsr_safe_regs_on_cpu()
186 rv.err = -EIO; in rdmsr_safe_regs_on_cpu()
187 err = smp_call_function_single(cpu, __rdmsr_safe_regs_on_cpu, &rv, 1); in rdmsr_safe_regs_on_cpu()
189 return err ? err : rv.err; in rdmsr_safe_regs_on_cpu()
196 struct msr_regs_info rv; in wrmsr_safe_regs_on_cpu() local
198 rv.regs = regs; in wrmsr_safe_regs_on_cpu()
199 rv.err = -EIO; in wrmsr_safe_regs_on_cpu()
200 err = smp_call_function_single(cpu, __wrmsr_safe_regs_on_cpu, &rv, 1); in wrmsr_safe_regs_on_cpu()
202 return err ? err : rv.err; in wrmsr_safe_regs_on_cpu()