wrmsr 77 arch/x86/hyperv/hv_apic.c wrmsr(HV_X64_MSR_EOI, val, 0); wrmsr 80 arch/x86/hyperv/hv_apic.c wrmsr(HV_X64_MSR_TPR, val, 0); wrmsr 94 arch/x86/hyperv/hv_apic.c wrmsr(HV_X64_MSR_EOI, val, 0); wrmsr 216 arch/x86/include/asm/apic.h wrmsr(APIC_BASE_MSR + (reg >> 4), v, 0); wrmsr 329 arch/x86/include/asm/msr.h #define write_tsc(low, high) wrmsr(MSR_IA32_TSC, (low), (high)) wrmsr 331 arch/x86/include/asm/msr.h #define write_rdtscp_aux(val) wrmsr(MSR_TSC_AUX, (val), 0) wrmsr 359 arch/x86/include/asm/msr.h wrmsr(msr_no, l, h); wrmsr 200 arch/x86/include/asm/paravirt.h wrmsr(msr, (u32)val, (u32)(val>>32)); wrmsr 77 arch/x86/include/asm/resctrl_sched.h wrmsr(IA32_PQR_ASSOC, rmid, closid); wrmsr 83 arch/x86/include/asm/switch_to.h wrmsr(MSR_IA32_SYSENTER_CS, thread->sysenter_cs, 0); wrmsr 1279 arch/x86/kernel/apic/apic.c wrmsr(MSR_IA32_APICBASE, l, h); wrmsr 2034 arch/x86/kernel/apic/apic.c wrmsr(MSR_IA32_APICBASE, l, h); wrmsr 2687 arch/x86/kernel/apic/apic.c wrmsr(MSR_IA32_APICBASE, l, h); wrmsr 172 arch/x86/kernel/cpu/amd.c wrmsr(MSR_K6_WHCR, l, h); wrmsr 193 arch/x86/kernel/cpu/amd.c wrmsr(MSR_K6_WHCR, l, h); wrmsr 238 arch/x86/kernel/cpu/amd.c wrmsr(MSR_K7_CLK_CTL, (l & 0x000fffff)|0x20000000, h); wrmsr 1160 arch/x86/kernel/cpu/amd.c wrmsr(MSR_F16H_DR0_ADDR_MASK, mask, 0); wrmsr 1165 arch/x86/kernel/cpu/amd.c wrmsr(MSR_F16H_DR1_ADDR_MASK - 1 + dr, mask, 0); wrmsr 40 arch/x86/kernel/cpu/centaur.c wrmsr(MSR_VIA_FCR, lo, hi); wrmsr 48 arch/x86/kernel/cpu/centaur.c wrmsr(MSR_VIA_RNG, lo, hi); wrmsr 62 arch/x86/kernel/cpu/centaur.c wrmsr(MSR_VIA_FCR, lo, hi); wrmsr 224 arch/x86/kernel/cpu/centaur.c wrmsr(MSR_IDT_FCR1, newlo, hi); wrmsr 282 arch/x86/kernel/cpu/common.c wrmsr(MSR_IA32_BBL_CR_CTL, lo, hi); wrmsr 1609 arch/x86/kernel/cpu/common.c wrmsr(MSR_IA32_SYSENTER_CS, tss->x86_tss.ss1, 0); wrmsr 1610 arch/x86/kernel/cpu/common.c wrmsr(MSR_IA32_SYSENTER_ESP, (unsigned long)(cpu_entry_stack(cpu) + 1), 0); wrmsr 1611 arch/x86/kernel/cpu/common.c wrmsr(MSR_IA32_SYSENTER_EIP, (unsigned long)entry_SYSENTER_32, 0); wrmsr 1711 arch/x86/kernel/cpu/common.c wrmsr(MSR_STAR, 0, (__USER32_CS << 16) | __KERNEL_CS); wrmsr 263 arch/x86/kernel/cpu/mce/amd.c wrmsr(smca_config, low, high); wrmsr 419 arch/x86/kernel/cpu/mce/amd.c wrmsr(tr->b->address, lo, hi); wrmsr 475 arch/x86/kernel/cpu/mce/amd.c wrmsr(MSR_CU_DEF_ERR, low, high); wrmsr 1559 arch/x86/kernel/cpu/mce/core.c wrmsr(MSR_IA32_MCG_CTL, 0xffffffff, 0xffffffff); wrmsr 481 arch/x86/kernel/cpu/mce/therm_throt.c wrmsr(MSR_IA32_THERM_INTERRUPT, wrmsr 485 arch/x86/kernel/cpu/mce/therm_throt.c wrmsr(MSR_IA32_THERM_INTERRUPT, wrmsr 489 arch/x86/kernel/cpu/mce/therm_throt.c wrmsr(MSR_IA32_THERM_INTERRUPT, wrmsr 495 arch/x86/kernel/cpu/mce/therm_throt.c wrmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, wrmsr 500 arch/x86/kernel/cpu/mce/therm_throt.c wrmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, wrmsr 505 arch/x86/kernel/cpu/mce/therm_throt.c wrmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, wrmsr 513 arch/x86/kernel/cpu/mce/therm_throt.c wrmsr(MSR_IA32_MISC_ENABLE, l | MSR_IA32_MISC_ENABLE_TM1, h); wrmsr 41 arch/x86/kernel/cpu/mce/winchip.c wrmsr(MSR_IDT_FCR1, lo, hi); wrmsr 92 arch/x86/kernel/cpu/mtrr/amd.c wrmsr(MSR_K6_UWCCR, regs[0], regs[1]); wrmsr 96 arch/x86/kernel/cpu/mtrr/centaur.c wrmsr(MSR_IDT_MCR0 + reg, low, high); wrmsr 675 arch/x86/kernel/cpu/resctrl/core.c wrmsr(IA32_PQR_ASSOC, 0, 0); wrmsr 89 arch/x86/kernel/cpu/resctrl/monitor.c wrmsr(MSR_IA32_QM_EVTSEL, eventid, rmid); wrmsr 513 arch/x86/kernel/cpu/resctrl/pseudo_lock.c wrmsr(MSR_MISC_FEATURE_CONTROL, 0x0, 0x0); wrmsr 878 arch/x86/kernel/cpu/resctrl/pseudo_lock.c wrmsr(MSR_MISC_FEATURE_CONTROL, prefetch_disable_bits, 0x0); wrmsr 894 arch/x86/kernel/cpu/resctrl/pseudo_lock.c wrmsr(MSR_MISC_FEATURE_CONTROL, 0x0, 0x0); wrmsr 972 arch/x86/kernel/cpu/resctrl/pseudo_lock.c wrmsr(MSR_MISC_FEATURE_CONTROL, prefetch_disable_bits, 0x0); wrmsr 1030 arch/x86/kernel/cpu/resctrl/pseudo_lock.c wrmsr(MSR_MISC_FEATURE_CONTROL, 0x0, 0x0); wrmsr 87 arch/x86/kernel/cpu/transmeta.c wrmsr(0x80860004, ~0, uk); wrmsr 89 arch/x86/kernel/cpu/transmeta.c wrmsr(0x80860004, cap_mask, uk); wrmsr 41 arch/x86/kernel/cpu/umwait.c wrmsr(MSR_IA32_UMWAIT_CONTROL, READ_ONCE(umwait_control_cached), 0); wrmsr 79 arch/x86/kernel/cpu/umwait.c wrmsr(MSR_IA32_UMWAIT_CONTROL, orig_umwait_control_cached, 0); wrmsr 39 arch/x86/kernel/cpu/zhaoxin.c wrmsr(MSR_ZHAOXIN_FCR57, lo, hi); wrmsr 48 arch/x86/kernel/cpu/zhaoxin.c wrmsr(MSR_ZHAOXIN_FCR57, lo, hi); wrmsr 401 arch/x86/kernel/kvm.c wrmsr(MSR_KVM_STEAL_TIME, 0, 0); wrmsr 4851 arch/x86/kvm/emulate.c II(ImplicitOps | Priv, em_wrmsr, wrmsr), wrmsr 33 arch/x86/lib/msr-smp.c wrmsr(rv->msr_no, reg->l, reg->h); wrmsr 545 arch/x86/oprofile/op_model_p4.c wrmsr(ev->bindings[i].escr_address, escr, high); wrmsr 557 arch/x86/oprofile/op_model_p4.c wrmsr(p4_counters[VIRT_CTR(stag, ctr)].cccr_address, wrmsr 591 arch/x86/oprofile/op_model_p4.c wrmsr(p4_counters[VIRT_CTR(stag, i)].cccr_address, low, high); wrmsr 598 arch/x86/oprofile/op_model_p4.c wrmsr(msrs->controls[i].addr, 0, 0); wrmsr 654 arch/x86/oprofile/op_model_p4.c wrmsr(p4_counters[real].cccr_address, low, high); wrmsr 680 arch/x86/oprofile/op_model_p4.c wrmsr(p4_counters[VIRT_CTR(stag, i)].cccr_address, low, high); wrmsr 697 arch/x86/oprofile/op_model_p4.c wrmsr(p4_counters[VIRT_CTR(stag, i)].cccr_address, low, high); wrmsr 105 drivers/ata/pata_cs5535.c wrmsr(ATAC_CH0D0_PIO + 2 * pair->devno, wrmsr 109 drivers/ata/pata_cs5535.c wrmsr(ATAC_CH0D0_PIO + 2 * adev->devno, wrmsr 114 drivers/ata/pata_cs5535.c wrmsr(ATAC_CH0D0_DMA + 2 * adev->devno, reg | 0x80000000UL, 0); wrmsr 141 drivers/ata/pata_cs5535.c wrmsr(ATAC_CH0D0_DMA + 2 * adev->devno, reg, 0); wrmsr 101 drivers/ata/pata_cs5536.c wrmsr(MSR_IDE_CFG + reg, val, 0); wrmsr 95 drivers/char/agp/nvidia-agp.c wrmsr(IORR_BASE0 + 2 * iorr_addr, base_lo, base_hi); wrmsr 96 drivers/char/agp/nvidia-agp.c wrmsr(IORR_MASK0 + 2 * iorr_addr, mask_lo, mask_hi); wrmsr 100 drivers/char/agp/nvidia-agp.c wrmsr(SYSCFG, sys_lo, sys_hi); wrmsr 173 drivers/char/hw_random/via-rng.c wrmsr(MSR_VIA_RNG, lo, hi); wrmsr 256 drivers/cpufreq/acpi-cpufreq.c wrmsr(MSR_IA32_PERF_CTL, lo, hi); wrmsr 269 drivers/cpufreq/acpi-cpufreq.c wrmsr(MSR_AMD_PERF_CTL, val, 0); wrmsr 126 drivers/cpufreq/e_powersaver.c wrmsr(MSR_IA32_PERF_CTL, dest_state & 0xffff, 0); wrmsr 104 drivers/cpufreq/longrun.c wrmsr(MSR_TMTA_LONGRUN_FLAGS, msr_lo, msr_hi); wrmsr 112 drivers/cpufreq/longrun.c wrmsr(MSR_TMTA_LONGRUN_CTRL, msr_lo, msr_hi); wrmsr 181 drivers/cpufreq/longrun.c wrmsr(MSR_TMTA_LRTI_READOUT, msr_hi, msr_hi); wrmsr 186 drivers/cpufreq/longrun.c wrmsr(MSR_TMTA_LRTI_READOUT, 0, msr_hi); wrmsr 219 drivers/cpufreq/longrun.c wrmsr(MSR_TMTA_LONGRUN_CTRL, msr_lo, msr_hi); wrmsr 225 drivers/cpufreq/longrun.c wrmsr(MSR_TMTA_LONGRUN_CTRL, save_lo, save_hi); wrmsr 91 drivers/cpufreq/powernow-k6.c wrmsr(MSR_K6_EPMR, msrval, 0); /* enable the PowerNow port */ wrmsr 94 drivers/cpufreq/powernow-k6.c wrmsr(MSR_K6_EPMR, msrval, 0); /* disable it again */ wrmsr 121 drivers/cpufreq/powernow-k6.c wrmsr(MSR_K6_EPMR, msrval, 0); /* enable the PowerNow port */ wrmsr 127 drivers/cpufreq/powernow-k6.c wrmsr(MSR_K6_EPMR, msrval, 0); /* disable it again */ wrmsr 142 drivers/cpufreq/powernow-k8.c wrmsr(MSR_FIDVID_CTL, lo, hi); wrmsr 165 drivers/cpufreq/powernow-k8.c wrmsr(MSR_FIDVID_CTL, lo, data->plllock * PLL_LOCK_CONVERSION); wrmsr 209 drivers/cpufreq/powernow-k8.c wrmsr(MSR_FIDVID_CTL, lo, STOP_GRANT_5NS); wrmsr 386 drivers/cpufreq/speedstep-centrino.c wrmsr(MSR_IA32_MISC_ENABLE, l, h); wrmsr 160 drivers/gpio/gpio-cs5535.c wrmsr(MSR_PIC_ZSEL_HIGH, lo, hi); wrmsr 95 drivers/ide/cs5535.c wrmsr(unit ? ATAC_CH0D1_PIO : ATAC_CH0D0_PIO, reg, 0); wrmsr 104 drivers/ide/cs5535.c wrmsr(unit ? ATAC_CH0D0_PIO : ATAC_CH0D1_PIO, reg, 0); wrmsr 109 drivers/ide/cs5535.c wrmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, wrmsr 123 drivers/ide/cs5535.c wrmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, reg, 0); wrmsr 73 drivers/ide/cs5536.c wrmsr(MSR_IDE_CFG + reg, val, 0); wrmsr 91 drivers/misc/cs5535-mfgpt.c wrmsr(msr, value, dummy); wrmsr 138 drivers/misc/cs5535-mfgpt.c wrmsr(MSR_PIC_ZSEL_LOW, zsel, dummy); wrmsr 255 drivers/misc/cs5535-mfgpt.c wrmsr(MSR_MFGPT_SETUP, val, dummy); wrmsr 247 drivers/thermal/intel/x86_pkg_temp_thermal.c wrmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, l, h); wrmsr 258 drivers/thermal/intel/x86_pkg_temp_thermal.c wrmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, l, h); wrmsr 429 drivers/thermal/intel/x86_pkg_temp_thermal.c wrmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, wrmsr 138 drivers/video/fbdev/geode/lxfb_ops.c wrmsr(MSR_GLCP_DOTPLL, dotpll_lo, dotpll_hi); wrmsr 155 drivers/video/fbdev/geode/lxfb_ops.c wrmsr(MSR_GLCP_DOTPLL, dotpll_lo, dotpll_hi); wrmsr 287 drivers/video/fbdev/geode/lxfb_ops.c wrmsr(MSR_LX_MSR_PADSEL, msrlo, msrhi); wrmsr 51 drivers/video/fbdev/geode/suspend_gx.c wrmsr(MSR_GLCP_DOTPLL, dotpll_lo, dotpll_hi); wrmsr 63 drivers/video/fbdev/geode/suspend_gx.c wrmsr(MSR_GLCP_DOTPLL, dotpll_lo, dotpll_hi); wrmsr 57 include/linux/cs5535.h wrmsr(MSR_PIC_ZSEL_HIGH, lo, hi); wrmsr 230 tools/testing/selftests/kvm/include/evmcs.h wrmsr(HV_X64_MSR_VP_ASSIST_PAGE, val); wrmsr 167 tools/testing/selftests/kvm/lib/x86_64/vmx.c wrmsr(MSR_IA32_FEATURE_CONTROL, feature_control | required); wrmsr 57 tools/testing/selftests/kvm/x86_64/smm_test.c wrmsr(APIC_BASE_MSR + (APIC_ICR >> 4), wrmsr 67 tools/testing/selftests/kvm/x86_64/smm_test.c wrmsr(MSR_IA32_APICBASE, apicbase | X2APIC_ENABLE); wrmsr 76 tools/testing/selftests/kvm/x86_64/vmx_tsc_adjust_test.c wrmsr(MSR_IA32_TSC, l1_tsc - TSC_ADJUST_VALUE); wrmsr 91 tools/testing/selftests/kvm/x86_64/vmx_tsc_adjust_test.c wrmsr(MSR_IA32_TSC, rdtsc() - TSC_ADJUST_VALUE);