| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | msrs_test.c | 23 #define ____MSR_TEST(msr, str, val, rsvd, reset, feat, f2, is_kvm) \ argument 35 #define __MSR_TEST(msr, str, val, rsvd, reset, feat) \ argument 38 #define MSR_TEST_NON_ZERO(msr, val, rsvd, reset, feat) \ argument 41 #define MSR_TEST(msr, val, rsvd, feat) \ argument 44 MSR_TEST2(msr,val,rsvd,feat,f2) global() argument 60 MSR_TEST_CANONICAL(msr,feat) global() argument 63 MSR_TEST_KVM(msr,val,rsvd,feat) global() argument 77 fixup_rdmsr_val(u32 msr,u64 want) fixup_rdmsr_val() argument 97 __rdmsr(u32 msr,u64 want) __rdmsr() argument 109 __wrmsr(u32 msr,u64 val) __wrmsr() argument 119 guest_test_supported_msr(const struct kvm_msr * msr) guest_test_supported_msr() argument 128 guest_test_unsupported_msr(const struct kvm_msr * msr) guest_test_unsupported_msr() argument 168 guest_test_reserved_val(const struct kvm_msr * msr) guest_test_reserved_val() argument 194 const struct kvm_msr *msr = &msrs[READ_ONCE(idx)]; guest_main() local 291 u32 msr = msrs[idx].index; host_test_msr() local 447 struct kvm_msr *msr = &msrs[idx]; test_msrs() local [all...] |
| H A D | feature_msrs_test.c | 15 static bool is_kvm_controlled_msr(u32 msr) in is_kvm_controlled_msr() 24 static bool is_hidden_vmx_msr(u32 msr) in is_hidden_vmx_msr() 37 static bool is_quirked_msr(u32 msr) in is_quirked_msr() 42 static void test_feature_msr(u32 msr) in test_feature_msr()
|
| H A D | kvm_pv_test.c | 20 #define TEST_MSR(msr) { .idx = msr, .name = #msr } argument 22 #define PR_MSR(msr) ucall(UCALL_PR_MSR, 1, msr) argument 41 static void test_msr(struct msr_data *msr) in test_msr() 100 struct msr_data *msr = (struct msr_data *)uc->args[0]; in pr_msr() local
|
| H A D | hyperv_features.c | 37 is_write_only_msr(u32 msr) is_write_only_msr() argument 42 guest_msr(struct msr_data * msr) guest_msr() argument 138 struct msr_data *msr; guest_test_msrs_access() local [all...] |
| H A D | userspace_msr_exit_test.c | 80 static void deny_msr(u8 *bitmap, u32 msr) in deny_msr() 145 static noinline u64 test_rdmsr(u32 msr) in test_rdmsr() 161 static noinline void test_wrmsr(u32 msr, u64 value) in test_wrmsr() 179 static noinline u64 test_em_rdmsr(u32 msr) in test_em_rdmsr() 195 static noinline void test_em_wrmsr(u32 msr, u64 value) in test_em_wrmsr()
|
| H A D | pmu_counters_test.c | 366 GUEST_ASSERT_PMC_MSR_ACCESS(insn,msr,expect_gp,vector) global() argument 371 GUEST_ASSERT_PMC_VALUE(insn,msr,val,expected) global() argument 408 const u32 msr = base_msr + i; guest_rd_wr_counters() local [all...] |
| /linux/arch/x86/kernel/cpu/ |
| H A D | perfctr-watchdog.c | 45 static inline unsigned int nmi_perfctr_msr_to_bit(unsigned int msr) in nmi_perfctr_msr_to_bit() 78 static inline unsigned int nmi_evntsel_msr_to_bit(unsigned int msr) in nmi_evntsel_msr_to_bit() 108 int reserve_perfctr_nmi(unsigned int msr) in reserve_perfctr_nmi() 123 void release_perfctr_nmi(unsigned int msr) in release_perfctr_nmi() 136 int reserve_evntsel_nmi(unsigned int msr) in reserve_evntsel_nmi() 151 void release_evntsel_nmi(unsigned int msr) in release_evntsel_nmi()
|
| H A D | amd.c | 38 static inline int rdmsrq_amd_safe(unsigned msr, u64 *p) in rdmsrq_amd_safe() 56 static inline int wrmsrq_amd_safe(unsigned msr, u64 val) in wrmsrq_amd_safe() 551 u64 msr; in early_detect_mem_encrypt() local
|
| /linux/arch/m68k/bvme6000/ |
| H A D | config.c | 166 unsigned char msr; in bvme6000_timer_int() local 191 unsigned char msr = rtc->msr & 0xc0; in bvme6000_sched_init() local 233 unsigned char msr, msb; in bvme6000_read_clk() local 286 unsigned char msr = rtc->msr & 0xc0; in bvme6000_hwclk() local
|
| /linux/arch/x86/hyperv/ |
| H A D | ivm.c | 189 static void hv_ghcb_msr_write(u64 msr, u64 value) in hv_ghcb_msr_write() 218 static void hv_ghcb_msr_read(u64 msr, u64 *value) in hv_ghcb_msr_read() 403 static inline void hv_ghcb_msr_write(u64 msr, u64 value) {} in hv_ghcb_msr_write() 404 static inline void hv_ghcb_msr_read(u64 msr, u64 *value) {} in hv_ghcb_msr_read() 409 static void hv_tdx_msr_write(u64 msr, u64 val) in hv_tdx_msr_write() 423 static void hv_tdx_msr_read(u64 msr, u64 *val) in hv_tdx_msr_read() 453 static inline void hv_tdx_msr_write(u64 msr, u64 value) {} in hv_tdx_msr_write() 454 static inline void hv_tdx_msr_read(u64 msr, u64 *value) {} in hv_tdx_msr_read() 459 void hv_ivm_msr_write(u64 msr, u64 value) in hv_ivm_msr_write() 470 void hv_ivm_msr_read(u64 msr, u64 *value) in hv_ivm_msr_read()
|
| /linux/arch/powerpc/kernel/ |
| H A D | signal_64.c | 130 unsigned long msr = regs->msr; in __unsafe_setup_sigcontext() local 210 unsigned long msr) in setup_tm_sigcontexts() 344 unsigned long msr; in __unsafe_restore_sigcontext() local 445 unsigned long msr; in restore_tm_sigcontexts() local 749 unsigned long msr; in SYSCALL_DEFINE0() local 865 unsigned long msr = regs->msr; in handle_rt_signal64() local
|
| H A D | signal_32.c | 271 unsigned long msr = regs->msr; in __unsafe_save_user_regs() local 370 struct mcontext __user *tm_frame, unsigned long msr) in save_tm_user_regs_unsafe() 451 struct mcontext __user *tm_frame, unsigned long msr) in save_tm_user_regs_unsafe() 457 #define unsafe_save_tm_user_regs(regs, frame, tm_frame, msr, label) do { \ argument 470 unsigned long msr; in restore_user_regs() local 576 unsigned long msr, msr_hi; in restore_tm_user_regs() local 746 unsigned long msr = regs->msr; in handle_rt_signal32() local 846 unsigned long msr = regs->msr; in handle_signal32() local
|
| /linux/arch/powerpc/include/asm/ |
| H A D | asm-prototypes.h | 63 static inline void kvmppc_save_tm_hv(struct kvm_vcpu *vcpu, u64 msr, in kvmppc_save_tm_hv() 65 static inline void kvmppc_restore_tm_hv(struct kvm_vcpu *vcpu, u64 msr, in kvmppc_restore_tm_hv()
|
| /linux/arch/powerpc/kvm/ |
| H A D | book3s_hv_tm.c | 19 u64 msr = vcpu->arch.shregs.msr; in emulate_tx_failure() local 45 u64 msr = vcpu->arch.shregs.msr; in kvmhv_p9_tm_emulation() local
|
| H A D | book3s_hv_tm_builtin.c | 23 u64 newmsr, msr, bescr; in kvmhv_p9_tm_emulation_early() local
|
| /linux/arch/powerpc/platforms/powernv/ |
| H A D | opal-call.c | 71 unsigned long opcode, unsigned long msr) in __opal_call_trace() 88 unsigned long opcode, unsigned long msr) in __opal_call_trace() 100 unsigned long msr = mfmsr(); in opal_call() local
|
| /linux/drivers/cpufreq/ |
| H A D | powernow-k8.c | 90 u64 msr; in pending_bit_stuck() local 102 struct msr msr; in query_current_values_with_pending_wait() local 134 struct msr msr; in fidvid_msr_init() local 149 struct msr msr; in write_new_fid() local 193 struct msr msr; in write_new_vid() local 284 struct msr msr; in core_voltage_pre_transition() local
|
| /linux/tools/power/cpupower/debug/i386/ |
| H A D | centrino-decode.c | 28 static int rdmsr(unsigned int cpu, unsigned int msr, in rdmsr() 63 static void decode (unsigned int msr) in decode()
|
| /linux/arch/mips/pci/ |
| H A D | ops-loongson2.c | 182 void _rdmsr(u32 msr, u32 *hi, u32 *lo) in _rdmsr() 198 void _wrmsr(u32 msr, u32 hi, u32 lo) in _wrmsr()
|
| /linux/tools/power/x86/x86_energy_perf_policy/ |
| H A D | x86_energy_perf_policy.c | 802 int get_msr(int cpu, int offset, unsigned long long *msr) in get_msr() 927 unsigned long long msr; in read_hwp_cap() local 962 unsigned long long msr; in read_hwp_request_msr() local 976 unsigned long long msr = 0; in write_hwp_request_msr() local 1115 unsigned long long msr; in print_pkg_msrs() local 1387 unsigned long long msr; in update_cpu_msrs() local 1539 unsigned long long msr; in is_hwp_enabled_on_cpu() local 1655 unsigned long long msr; in early_cpuid() local
|
| /linux/sound/pci/ctxfi/ |
| H A D | ctamixer.h | 30 unsigned int msr; member 75 unsigned int msr; member
|
| /linux/drivers/i2c/busses/ |
| H A D | i2c-rcar.c | 554 static void rcar_i2c_irq_send(struct rcar_i2c_priv *priv, u32 msr) in rcar_i2c_irq_send() 603 static void rcar_i2c_irq_recv(struct rcar_i2c_priv *priv, u32 msr) in rcar_i2c_irq_recv() 734 static irqreturn_t rcar_i2c_irq(int irq, struct rcar_i2c_priv *priv, u32 msr) in rcar_i2c_irq() 784 u32 msr; in rcar_i2c_gen2_irq() local 801 u32 msr; in rcar_i2c_gen3_irq() local 997 u32 msr = rcar_i2c_read(priv, ICMSR); in rcar_i2c_master_xfer_atomic() local
|
| /linux/arch/x86/kvm/vmx/ |
| H A D | vmx.c | 487 u64 msr; in vmx_disable_fb_clear() local 774 struct vmx_uret_msr *vmx_find_uret_msr(struct vcpu_vmx *vmx, u32 msr) in vmx_find_uret_msr() 785 struct vmx_uret_msr *msr, u64 data) in vmx_set_guest_uret_msr() 970 static bool msr_write_intercepted(struct vcpu_vmx *vmx, u32 msr) in msr_write_intercepted() 1007 static int vmx_find_loadstore_msr_slot(struct vmx_msrs *m, u32 msr) in vmx_find_loadstore_msr_slot() 1018 static void vmx_remove_auto_msr(struct vmx_msrs *m, u32 msr, in vmx_remove_auto_msr() 1032 static void clear_atomic_switch_msr(struct vcpu_vmx *vmx, unsigned msr) in clear_atomic_switch_msr() 1071 static void vmx_add_auto_msr(struct vmx_msrs *m, u32 msr, u64 value, in vmx_add_auto_msr() 1088 static void add_atomic_switch_msr(struct vcpu_vmx *vmx, unsigned msr, in add_atomic_switch_msr() 1182 static void vmx_add_autostore_msr(struct vcpu_vmx *vmx, u32 msr) in vmx_add_autostore_msr() [all …]
|
| /linux/tools/testing/selftests/intel_pstate/ |
| H A D | msr.c | 16 long long msr; in main() local
|
| /linux/tools/power/x86/turbostat/ |
| H A D | turbostat.c | 628 unsigned long long msr = 3; in slm_bclk() local 1449 unsigned long long msr[NUM_RAPL_COUNTERS]; member 1467 unsigned long long msr; member 1713 unsigned long long msr[NUM_CSTATE_COUNTERS]; member 1729 unsigned long long msr; member 1860 unsigned long long msr[NUM_MSR_COUNTERS]; member 1871 unsigned long long msr; member 2628 int get_msr(int cpu, off_t offset, unsigned long long *msr) in get_msr() 4579 unsigned long long msr; in get_epb() local 5231 unsigned long long msr; in get_counters() local [all …]
|