Lines Matching refs:controls
194 struct op_msr_group * controls = &cpu_msrs[cpu].controls; in pmc_save_registers() local
198 controls->addrs = NULL; in pmc_save_registers()
199 controls->saved = NULL; in pmc_save_registers()
210 controls->addrs = kmalloc(nr_ctrls * sizeof(uint), GFP_KERNEL); in pmc_save_registers()
211 if (!controls->addrs) in pmc_save_registers()
214 controls->saved = kmalloc( in pmc_save_registers()
216 if (!controls->saved) in pmc_save_registers()
228 rdmsr(controls->addrs[i], in pmc_save_registers()
229 controls->saved[i].low, in pmc_save_registers()
230 controls->saved[i].high); in pmc_save_registers()
236 free_msr_group(controls); in pmc_save_registers()
247 struct op_msr_group * controls = &cpu_msrs[cpu].controls; in pmc_restore_registers() local
249 if (controls->addrs) { in pmc_restore_registers()
251 wrmsr(controls->addrs[i], in pmc_restore_registers()
252 controls->saved[i].low, in pmc_restore_registers()
253 controls->saved[i].high); in pmc_restore_registers()
266 free_msr_group(controls); in pmc_restore_registers()