/linux/arch/x86/include/asm/ |
H A D | msr.h | 54 static inline void do_trace_write_msr(u32 msr, u64 val, int failed) {} in do_trace_write_msr() 55 static inline void do_trace_read_msr(u32 msr, u64 val, int failed) {} in do_trace_read_msr() 56 static inline void do_trace_rdpmc(u32 msr, u64 val, int failed) {} in do_trace_rdpmc() 66 static __always_inline u64 __rdmsr(u32 msr) in __rdmsr() 78 static __always_inline void __wrmsrq(u32 msr, u64 val) in __wrmsrq() 86 #define native_rdmsr(msr, val1, val2) \ argument 93 static __always_inline u64 native_rdmsrq(u32 msr) in native_rdmsrq() 98 #define native_wrmsr(msr, low, high) \ argument 101 #define native_wrmsrq(msr, val) \ argument 104 static inline u64 native_read_msr(u32 msr) in native_read_msr() [all …]
|
H A D | paravirt.h | 178 static inline u64 paravirt_read_msr(u32 msr) in paravirt_read_msr() 183 static inline void paravirt_write_msr(u32 msr, u64 val) in paravirt_write_msr() 188 static inline int paravirt_read_msr_safe(u32 msr, u64 *val) in paravirt_read_msr_safe() 193 static inline int paravirt_write_msr_safe(u32 msr, u64 val) in paravirt_write_msr_safe() 198 #define rdmsr(msr, val1, val2) \ argument 205 static __always_inline void wrmsr(u32 msr, u32 low, u32 high) in wrmsr() 210 #define rdmsrq(msr, val) \ argument 215 static inline void wrmsrq(u32 msr, u64 val) in wrmsrq() 220 static inline int wrmsrq_safe(u32 msr, u64 val) in wrmsrq_safe() 226 #define rdmsr_safe(msr, a, b) \ argument [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()
|
/linux/tools/testing/selftests/kvm/x86/ |
H A D | feature_msrs_test.c | 15 static bool is_kvm_controlled_msr(uint32_t msr) in is_kvm_controlled_msr() 24 static bool is_hidden_vmx_msr(uint32_t msr) in is_hidden_vmx_msr() 37 static bool is_quirked_msr(uint32_t msr) in is_quirked_msr() 42 static void test_feature_msr(uint32_t 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 static bool is_write_only_msr(uint32_t msr) in is_write_only_msr() 42 static void guest_msr(struct msr_data *msr) in guest_msr() 138 struct msr_data *msr; in guest_test_msrs_access() local
|
H A D | userspace_msr_exit_test.c | 80 static void deny_msr(uint8_t *bitmap, u32 msr) in deny_msr() 145 static noinline uint64_t test_rdmsr(uint32_t msr) in test_rdmsr() 161 static noinline void test_wrmsr(uint32_t msr, uint64_t value) in test_wrmsr() 179 static noinline uint64_t test_em_rdmsr(uint32_t msr) in test_em_rdmsr() 195 static noinline void test_em_wrmsr(uint32_t msr, uint64_t value) in test_em_wrmsr()
|
/linux/arch/x86/kvm/ |
H A D | mtrr.c | 24 static u64 *find_mtrr(struct kvm_vcpu *vcpu, unsigned int msr) in find_mtrr() 61 static bool kvm_mtrr_valid(struct kvm_vcpu *vcpu, u32 msr, u64 data) in kvm_mtrr_valid() 96 int kvm_mtrr_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data) in kvm_mtrr_set_msr() 111 int kvm_mtrr_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) in kvm_mtrr_get_msr()
|
H A D | hyperv.c | 245 static void synic_exit(struct kvm_vcpu_hv_synic *synic, u32 msr) in synic_exit() 260 u32 msr, u64 data, bool host) in synic_set_msr() 346 static void syndbg_exit(struct kvm_vcpu *vcpu, u32 msr) in syndbg_exit() 363 static int syndbg_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in syndbg_set_msr() 402 static int syndbg_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata, bool host) in syndbg_get_msr() 437 static int synic_get_msr(struct kvm_vcpu_hv_synic *synic, u32 msr, u64 *pdata, in synic_get_msr() 1011 static bool kvm_hv_msr_partition_wide(u32 msr) in kvm_hv_msr_partition_wide() 1252 static bool hv_check_msr_access(struct kvm_vcpu_hv *hv_vcpu, u32 msr) in hv_check_msr_access() 1378 static int kvm_hv_set_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 data, in kvm_hv_set_msr_pw() 1521 static int kvm_hv_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in kvm_hv_set_msr() [all …]
|
/linux/arch/powerpc/kernel/ |
H A D | cpu_setup_power.c | 19 u64 msr; in init_hvmode_206() local 153 u64 msr; in __restore_cpu_power7() local 185 u64 msr; in __restore_cpu_power8() local 225 u64 msr; in __restore_cpu_power9() local 268 u64 msr; in __restore_cpu_power10() local
|
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/x86/hyperv/ |
H A D | ivm.c | 188 static void hv_ghcb_msr_write(u64 msr, u64 value) in hv_ghcb_msr_write() 217 static void hv_ghcb_msr_read(u64 msr, u64 *value) in hv_ghcb_msr_read() 389 static inline void hv_ghcb_msr_write(u64 msr, u64 value) {} in hv_ghcb_msr_write() 390 static inline void hv_ghcb_msr_read(u64 msr, u64 *value) {} in hv_ghcb_msr_read() 394 static void hv_tdx_msr_write(u64 msr, u64 val) in hv_tdx_msr_write() 408 static void hv_tdx_msr_read(u64 msr, u64 *val) in hv_tdx_msr_read() 438 static inline void hv_tdx_msr_write(u64 msr, u64 value) {} in hv_tdx_msr_write() 439 static inline void hv_tdx_msr_read(u64 msr, u64 *value) {} in hv_tdx_msr_read() 443 void hv_ivm_msr_write(u64 msr, u64 value) in hv_ivm_msr_write() 454 void hv_ivm_msr_read(u64 msr, u64 *value) in hv_ivm_msr_read()
|
/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/arm64/hyperv/ |
H A D | hv_core.c | 76 void hv_set_vpreg(u32 msr, u64 value) in hv_set_vpreg() 107 void hv_get_vpreg_128(u32 msr, struct hv_get_vp_registers_output *result) in hv_get_vpreg_128() 137 u64 hv_get_vpreg(u32 msr) in hv_get_vpreg()
|
/linux/arch/x86/xen/ |
H A D | pmu.c | 132 static bool is_amd_pmu_msr(u32 msr) in is_amd_pmu_msr() 198 static bool xen_intel_pmu_emulate(u32 msr, u64 *val, int type, int index, bool is_read) in xen_intel_pmu_emulate() 260 static bool xen_amd_pmu_emulate(u32 msr, u64 *val, bool is_read) in xen_amd_pmu_emulate() 301 bool pmu_msr_chk_emulated(u32 msr, u64 *val, bool is_read) in pmu_msr_chk_emulated() 322 u32 msr; in xen_amd_read_pmc() local 344 u32 msr; in xen_intel_read_pmc() local
|
H A D | enlighten_pv.c | 1090 static u64 xen_do_read_msr(u32 msr, int *err) in xen_do_read_msr() 1125 static void xen_do_write_msr(u32 msr, u64 val, int *err) in xen_do_write_msr() 1163 static int xen_read_msr_safe(u32 msr, u64 *val) in xen_read_msr_safe() 1171 static int xen_write_msr_safe(u32 msr, u64 val) in xen_write_msr_safe() 1180 static u64 xen_read_msr(u32 msr) in xen_read_msr() 1187 static void xen_write_msr(u32 msr, u64 val) in xen_write_msr()
|
/linux/arch/x86/include/asm/shared/ |
H A D | msr.h | 5 struct msr { struct 6 union {
|
/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
|
/linux/arch/x86/kvm/vmx/ |
H A D | pmu_intel.c | 144 static inline struct kvm_pmc *get_fw_gp_pmc(struct kvm_pmu *pmu, u32 msr) in get_fw_gp_pmc() 186 static bool intel_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) in intel_is_valid_msr() 217 static struct kvm_pmc *intel_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) in intel_msr_idx_to_pmc() 344 u32 msr = msr_info->index; in intel_pmu_get_msr() local 387 u32 msr = msr_info->index; in intel_pmu_set_msr() 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/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/sound/pci/ctxfi/ |
H A D | ctamixer.h | 30 unsigned int msr; member 75 unsigned int msr; member
|
/linux/tools/power/x86/turbostat/ |
H A D | turbostat.c | 609 unsigned long long msr = 3; in slm_bclk() local 1334 unsigned long long msr[NUM_RAPL_COUNTERS]; member 1352 unsigned long long msr; member 1598 unsigned long long msr[NUM_CSTATE_COUNTERS]; member 1614 unsigned long long msr; member 1745 unsigned long long msr[NUM_MSR_COUNTERS]; member 1756 unsigned long long msr; member 2474 int get_msr(int cpu, off_t offset, unsigned long long *msr) in get_msr() 4431 unsigned long long msr; in get_epb() local 5104 unsigned long long msr; in get_counters() local [all …]
|