Home
last modified time | relevance | path

Searched refs:wrmsrl (Results 1 – 25 of 45) sorted by relevance

12

/linux-3.4.99/drivers/hv/
Dhv.c168 wrmsrl(HV_X64_MSR_GUEST_OS_ID, HV_LINUX_GUEST_ID); in hv_init()
182 wrmsrl(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64); in hv_init()
217 wrmsrl(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64); in hv_init()
236 wrmsrl(HV_X64_MSR_GUEST_OS_ID, 0); in hv_cleanup()
244 wrmsrl(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64); in hv_cleanup()
354 wrmsrl(HV_X64_MSR_SIMP, simp.as_uint64); in hv_synic_init()
362 wrmsrl(HV_X64_MSR_SIEFP, siefp.as_uint64); in hv_synic_init()
372 wrmsrl(HV_X64_MSR_SINT0 + VMBUS_MESSAGE_SINT, shared_sint.as_uint64); in hv_synic_init()
378 wrmsrl(HV_X64_MSR_SCONTROL, sctrl.as_uint64); in hv_synic_init()
411 wrmsrl(HV_X64_MSR_SINT0 + VMBUS_MESSAGE_SINT, shared_sint.as_uint64); in hv_synic_cleanup()
[all …]
/linux-3.4.99/arch/x86/oprofile/
Dop_model_amd.c157 wrmsrl(MSR_AMD64_IBSFETCHCTL, ctl); in op_amd_handle_ibs()
186 wrmsrl(MSR_AMD64_IBSOPCTL, ctl); in op_amd_handle_ibs()
212 wrmsrl(MSR_AMD64_IBSFETCHCTL, val); in op_amd_start_ibs()
249 wrmsrl(MSR_AMD64_IBSOPCTL, val); in op_amd_start_ibs()
260 wrmsrl(MSR_AMD64_IBSFETCHCTL, 0); in op_amd_stop_ibs()
264 wrmsrl(MSR_AMD64_IBSOPCTL, 0); in op_amd_stop_ibs()
283 wrmsrl(msrs->controls[i].addr, val); in op_mux_switch_ctrl()
357 wrmsrl(msrs->controls[i].addr, val); in op_amd_setup_ctrs()
362 wrmsrl(msrs->counters[i].addr, -1LL); in op_amd_setup_ctrs()
372 wrmsrl(msrs->counters[i].addr, -(u64)reset_value[virt]); in op_amd_setup_ctrs()
[all …]
Dop_model_ppro.c103 wrmsrl(msrs->controls[i].addr, val); in ppro_setup_ctrs()
108 wrmsrl(msrs->counters[i].addr, -1LL); in ppro_setup_ctrs()
115 wrmsrl(msrs->counters[i].addr, -reset_value[i]); in ppro_setup_ctrs()
119 wrmsrl(msrs->controls[i].addr, val); in ppro_setup_ctrs()
140 wrmsrl(msrs->counters[i].addr, -reset_value[i]); in ppro_check_ctrs()
167 wrmsrl(msrs->controls[i].addr, val); in ppro_start()
183 wrmsrl(msrs->controls[i].addr, val); in ppro_stop()
Dop_model_p4.c606 wrmsrl(p4_counters[VIRT_CTR(stag, i)].counter_address, in p4_setup_ctrs()
651 wrmsrl(p4_counters[real].counter_address, in p4_check_ctrs()
655 wrmsrl(p4_counters[real].counter_address, in p4_check_ctrs()
Dnmi_int.c222 wrmsrl(counters[i].addr, multiplex[virt].saved); in nmi_cpu_restore_mpx_registers()
363 wrmsrl(controls[i].addr, controls[i].saved); in nmi_cpu_restore_registers()
368 wrmsrl(counters[i].addr, counters[i].saved); in nmi_cpu_restore_registers()
/linux-3.4.99/arch/x86/power/
Dcpu.c162 wrmsrl(MSR_IA32_MISC_ENABLE, ctxt->misc_enable); in __restore_processor_state()
172 wrmsrl(MSR_EFER, ctxt->efer); in __restore_processor_state()
215 wrmsrl(MSR_FS_BASE, ctxt->fs_base); in __restore_processor_state()
216 wrmsrl(MSR_GS_BASE, ctxt->gs_base); in __restore_processor_state()
217 wrmsrl(MSR_KERNEL_GS_BASE, ctxt->gs_kernel_base); in __restore_processor_state()
/linux-3.4.99/arch/x86/include/asm/
Dvirtext.h118 wrmsrl(MSR_VM_HSAVE_PA, 0); in cpu_svm_disable()
120 wrmsrl(MSR_EFER, efer & ~EFER_SVME); in cpu_svm_disable()
/linux-3.4.99/drivers/video/geode/
Dvideo_gx.c158 wrmsrl(MSR_GLCP_DOTPLL, dotpll); in gx_set_dclk_frequency()
166 wrmsrl(MSR_GLCP_SYS_RSTPLL, sys_rstpll); in gx_set_dclk_frequency()
170 wrmsrl(MSR_GLCP_DOTPLL, dotpll); in gx_set_dclk_frequency()
190 wrmsrl(MSR_GX_MSR_PADSEL, val); in gx_configure_tft()
Dlxfb_ops.c378 wrmsrl(MSR_LX_GLD_MSR_CONFIG, msrval); in lx_set_mode()
434 wrmsrl(MSR_LX_SPARE_MSR, msrval); in lx_set_mode()
673 wrmsrl(MSR_LX_SPARE_MSR, par->msr.dcspare); in lx_restore_display_ctlr()
737 wrmsrl(MSR_LX_GLD_MSR_CONFIG, par->msr.dfglcfg); in lx_restore_video_proc()
738 wrmsrl(MSR_LX_MSR_PADSEL, par->msr.padsel); in lx_restore_video_proc()
/linux-3.4.99/arch/x86/kernel/cpu/
Dperf_event_intel_lbr.c122 wrmsrl(MSR_LBR_SELECT, cpuc->lbr_sel->config); in __intel_pmu_lbr_enable()
126 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_enable()
135 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_disable()
143 wrmsrl(x86_pmu.lbr_from + i, 0); in intel_pmu_lbr_reset_32()
151 wrmsrl(x86_pmu.lbr_from + i, 0); in intel_pmu_lbr_reset_64()
152 wrmsrl(x86_pmu.lbr_to + i, 0); in intel_pmu_lbr_reset_64()
Dperf_event_p6.c51 wrmsrl(MSR_P6_EVNTSEL0, val); in p6_pmu_disable_all()
61 wrmsrl(MSR_P6_EVNTSEL0, val); in p6_pmu_enable_all()
Dcommon.c364 wrmsrl(MSR_GS_BASE, (unsigned long)per_cpu(irq_stack_union.gs_base, cpu)); in load_percpu_segment()
1073 wrmsrl(MSR_STAR, ((u64)__USER32_CS)<<48 | ((u64)__KERNEL_CS)<<32); in syscall_init()
1074 wrmsrl(MSR_LSTAR, system_call); in syscall_init()
1075 wrmsrl(MSR_CSTAR, ignore_sysret); in syscall_init()
1082 wrmsrl(MSR_SYSCALL_MASK, in syscall_init()
1215 wrmsrl(MSR_FS_BASE, 0); in cpu_init()
1216 wrmsrl(MSR_KERNEL_GS_BASE, 0); in cpu_init()
Dintel.c40 wrmsrl(MSR_IA32_MISC_ENABLE, misc_enable); in early_init_intel()
129 wrmsrl(MSR_IA32_MISC_ENABLE, misc_enable); in early_init_intel()
474 wrmsrl(MSR_IA32_ENERGY_PERF_BIAS, epb); in init_intel()
Dperf_event.h463 wrmsrl(hwc->extra_reg.reg, hwc->extra_reg.config); in __x86_pmu_enable_event()
464 wrmsrl(hwc->config_base, (hwc->config | enable_mask) & ~disable_mask); in __x86_pmu_enable_event()
477 wrmsrl(hwc->config_base, hwc->config); in x86_pmu_disable_event()
Dperf_event_intel.c754 wrmsrl(MSR_CORE_PERF_GLOBAL_CTRL, 0); in intel_pmu_disable_all()
769 wrmsrl(MSR_CORE_PERF_GLOBAL_CTRL, in intel_pmu_enable_all()
838 wrmsrl(MSR_ARCH_PERFMON_EVENTSEL0 + i, nhm_magic[i]); in intel_pmu_nhm_workaround()
839 wrmsrl(MSR_ARCH_PERFMON_PERFCTR0 + i, 0x0); in intel_pmu_nhm_workaround()
842 wrmsrl(MSR_CORE_PERF_GLOBAL_CTRL, 0xf); in intel_pmu_nhm_workaround()
843 wrmsrl(MSR_CORE_PERF_GLOBAL_CTRL, 0x0); in intel_pmu_nhm_workaround()
853 wrmsrl(MSR_ARCH_PERFMON_EVENTSEL0 + i, 0x0); in intel_pmu_nhm_workaround()
875 wrmsrl(MSR_CORE_PERF_GLOBAL_OVF_CTRL, ack); in intel_pmu_ack_status()
887 wrmsrl(hwc->config_base, ctrl_val); in intel_pmu_disable_fixed()
950 wrmsrl(hwc->config_base, ctrl_val); in intel_pmu_enable_fixed()
Dperf_event_intel_ds.c452 wrmsrl(MSR_IA32_PEBS_ENABLE, cpuc->pebs_enabled); in intel_pmu_pebs_disable()
462 wrmsrl(MSR_IA32_PEBS_ENABLE, cpuc->pebs_enabled); in intel_pmu_pebs_enable_all()
470 wrmsrl(MSR_IA32_PEBS_ENABLE, 0); in intel_pmu_pebs_disable_all()
734 wrmsrl(MSR_IA32_DS_AREA, (unsigned long)ds); in perf_restore_debug_store()
Dperf_event.c39 #undef wrmsrl
40 #define wrmsrl(msr, val) \
509 wrmsrl(x86_pmu_config_addr(idx), val); in x86_pmu_disable_all()
972 wrmsrl(hwc->event_base, (u64)(-left) & x86_pmu.cntval_mask); in x86_perf_event_set_period()
980 wrmsrl(hwc->event_base, in x86_perf_event_set_period()
/linux-3.4.99/drivers/cpufreq/
Dlonghaul.c147 wrmsrl(MSR_VIA_BCR2, bcr2.val); in do_longhaul1()
156 wrmsrl(MSR_VIA_BCR2, bcr2.val); in do_longhaul1()
183 wrmsrl(MSR_VIA_LONGHAUL, longhaul.val); in do_powersaver()
197 wrmsrl(MSR_VIA_LONGHAUL, longhaul.val); in do_powersaver()
202 wrmsrl(MSR_VIA_LONGHAUL, longhaul.val); in do_powersaver()
215 wrmsrl(MSR_VIA_LONGHAUL, longhaul.val); in do_powersaver()
220 wrmsrl(MSR_VIA_LONGHAUL, longhaul.val); in do_powersaver()
234 wrmsrl(MSR_VIA_LONGHAUL, longhaul.val); in do_powersaver()
/linux-3.4.99/arch/x86/kernel/cpu/mcheck/
Dmce_intel.c107 wrmsrl(MSR_IA32_MCx_CTL2(i), val); in cmci_discover()
160 wrmsrl(MSR_IA32_MCx_CTL2(i), val); in cmci_clear()
Dmce.c419 wrmsrl(msr, v); in mce_wrmsrl()
1408 wrmsrl(MSR_IA32_MCx_CTL(i), b->ctl); in __mcheck_cpu_init_generic()
1409 wrmsrl(MSR_IA32_MCx_STATUS(i), 0); in __mcheck_cpu_init_generic()
1885 wrmsrl(MSR_IA32_MCx_CTL(i), 0); in mce_disable_error_reporting()
2187 wrmsrl(MSR_IA32_MCx_CTL(i), 0); in mce_disable_cpu()
2205 wrmsrl(MSR_IA32_MCx_CTL(i), b->ctl); in mce_reenable_cpu()
/linux-3.4.99/arch/x86/kernel/
Dkvm.c281 wrmsrl(MSR_KVM_STEAL_TIME, (__pa(st) | KVM_MSR_ENABLED)); in kvm_register_steal_time()
297 wrmsrl(MSR_KVM_ASYNC_PF_EN, pa | KVM_ASYNC_PF_ENABLED); in kvm_guest_cpu_init()
312 wrmsrl(MSR_KVM_ASYNC_PF_EN, 0); in kvm_pv_disable_apf()
Dreboot_fixups_32.c29 wrmsrl(MSR_DIVIL_SOFT_RESET, 1ULL); in cs5536_warm_reset()
Dmmconf-fam10h_64.c213 wrmsrl(address, val); in fam10h_check_enable_mmcfg()
Dprocess_64.c345 wrmsrl(MSR_FS_BASE, next->fs); in __switch_to()
354 wrmsrl(MSR_KERNEL_GS_BASE, next->gs); in __switch_to()
/linux-3.4.99/drivers/platform/x86/
Dintel_ips.c397 wrmsrl(TURBO_POWER_CURRENT_LIMIT, turbo_override); in ips_cpu_raise()
402 wrmsrl(TURBO_POWER_CURRENT_LIMIT, turbo_override); in ips_cpu_raise()
432 wrmsrl(TURBO_POWER_CURRENT_LIMIT, turbo_override); in ips_cpu_lower()
437 wrmsrl(TURBO_POWER_CURRENT_LIMIT, turbo_override); in ips_cpu_lower()
455 wrmsrl(IA32_PERF_CTL, perf_ctl); in do_enable_cpu_turbo()
493 wrmsrl(IA32_PERF_CTL, perf_ctl); in do_disable_cpu_turbo()
1708 wrmsrl(TURBO_POWER_CURRENT_LIMIT, turbo_override); in ips_remove()
1709 wrmsrl(TURBO_POWER_CURRENT_LIMIT, ips->orig_turbo_limit); in ips_remove()

12