Home
last modified time | relevance | path

Searched defs:msr (Results 1 – 25 of 188) sorted by relevance

12345678

/linux-6.1.9/arch/x86/include/asm/
Dmsr.h68 static inline void do_trace_write_msr(unsigned int msr, u64 val, int failed) {} in do_trace_write_msr()
69 static inline void do_trace_read_msr(unsigned int msr, u64 val, int failed) {} in do_trace_read_msr()
70 static inline void do_trace_rdpmc(unsigned int msr, u64 val, int failed) {} in do_trace_rdpmc()
80 static __always_inline unsigned long long __rdmsr(unsigned int msr) in __rdmsr()
92 static __always_inline void __wrmsr(unsigned int msr, u32 low, u32 high) in __wrmsr()
100 #define native_rdmsr(msr, val1, val2) \ argument
107 #define native_wrmsr(msr, low, high) \ argument
110 #define native_wrmsrl(msr, val) \ argument
114 static inline unsigned long long native_read_msr(unsigned int msr) in native_read_msr()
126 static inline unsigned long long native_read_msr_safe(unsigned int msr, in native_read_msr_safe()
[all …]
Dparavirt.h186 static inline u64 paravirt_read_msr(unsigned msr) in paravirt_read_msr()
191 static inline void paravirt_write_msr(unsigned msr, in paravirt_write_msr()
197 static inline u64 paravirt_read_msr_safe(unsigned msr, int *err) in paravirt_read_msr_safe()
202 static inline int paravirt_write_msr_safe(unsigned msr, in paravirt_write_msr_safe()
208 #define rdmsr(msr, val1, val2) \ argument
215 #define wrmsr(msr, val1, val2) \ argument
220 #define rdmsrl(msr, val) \ argument
225 static inline void wrmsrl(unsigned msr, u64 val) in wrmsrl()
230 #define wrmsr_safe(msr, a, b) paravirt_write_msr_safe(msr, a, b) argument
233 #define rdmsr_safe(msr, a, b) \ argument
[all …]
/linux-6.1.9/arch/x86/kernel/cpu/
Dperfctr-watchdog.c45 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-6.1.9/arch/x86/lib/
Dmsr.c39 static int msr_read(u32 msr, struct msr *m) in msr_read()
57 static int msr_write(u32 msr, struct msr *m) in msr_write()
62 static inline int __flip_bit(u32 msr, u8 bit, bool set) in __flip_bit()
98 int msr_set_bit(u32 msr, u8 bit) in msr_set_bit()
111 int msr_clear_bit(u32 msr, u8 bit) in msr_clear_bit()
117 void do_trace_write_msr(unsigned int msr, u64 val, int failed) in do_trace_write_msr()
124 void do_trace_read_msr(unsigned int msr, u64 val, int failed) in do_trace_read_msr()
/linux-6.1.9/arch/powerpc/kernel/
Dcpu_setup_power.c19 u64 msr; in init_hvmode_206() local
147 u64 msr; in __restore_cpu_power7() local
179 u64 msr; in __restore_cpu_power8() local
219 u64 msr; in __restore_cpu_power9() local
261 u64 msr; in __restore_cpu_power10() local
Dsignal_64.c130 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
Dsignal_32.c270 unsigned long msr = regs->msr; in __unsafe_save_user_regs() local
368 struct mcontext __user *tm_frame, unsigned long msr) in save_tm_user_regs_unsafe()
448 struct mcontext __user *tm_frame, unsigned long msr) in save_tm_user_regs_unsafe()
454 #define unsafe_save_tm_user_regs(regs, frame, tm_frame, msr, label) do { \ argument
467 unsigned long msr; in restore_user_regs() local
573 unsigned long msr, msr_hi; in restore_tm_user_regs() local
743 unsigned long msr = regs->msr; in handle_rt_signal32() local
843 unsigned long msr = regs->msr; in handle_signal32() local
/linux-6.1.9/arch/x86/kvm/svm/
Dpmu.c36 static inline struct kvm_pmc *get_gp_pmc_amd(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc_amd()
103 static bool amd_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) in amd_is_valid_msr()
109 static struct kvm_pmc *amd_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) in amd_msr_idx_to_pmc()
124 u32 msr = msr_info->index; in amd_pmu_get_msr() local
146 u32 msr = msr_info->index; in amd_pmu_set_msr() local
/linux-6.1.9/arch/x86/xen/
Dpmu.c132 static inline bool is_amd_pmu_msr(unsigned int msr) in is_amd_pmu_msr()
198 static bool xen_intel_pmu_emulate(unsigned int msr, u64 *val, int type, in xen_intel_pmu_emulate()
261 static bool xen_amd_pmu_emulate(unsigned int msr, u64 *val, bool is_read) in xen_amd_pmu_emulate()
302 static bool pmu_msr_chk_emulated(unsigned int msr, uint64_t *val, bool is_read, in pmu_msr_chk_emulated()
317 bool pmu_msr_read(unsigned int msr, uint64_t *val, int *err) in pmu_msr_read()
332 bool pmu_msr_write(unsigned int msr, uint32_t low, uint32_t high, int *err) in pmu_msr_write()
358 uint32_t msr; in xen_amd_read_pmc() local
379 uint32_t msr; in xen_intel_read_pmc() local
/linux-6.1.9/tools/testing/selftests/kvm/x86_64/
Dkvm_pv_test.c20 #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
Duserspace_msr_exit_test.c86 static void deny_msr(uint8_t *bitmap, u32 msr) in deny_msr()
151 static noinline uint64_t test_rdmsr(uint32_t msr) in test_rdmsr()
167 static noinline void test_wrmsr(uint32_t msr, uint64_t value) in test_wrmsr()
185 static noinline uint64_t test_em_rdmsr(uint32_t msr) in test_em_rdmsr()
201 static noinline void test_em_wrmsr(uint32_t msr, uint64_t value) in test_em_wrmsr()
/linux-6.1.9/arch/m68k/bvme6000/
Dconfig.c169 unsigned char msr; in bvme6000_timer_int() local
194 unsigned char msr = rtc->msr & 0xc0; in bvme6000_sched_init() local
236 unsigned char msr, msb; in bvme6000_read_clk() local
289 unsigned char msr = rtc->msr & 0xc0; in bvme6000_hwclk() local
/linux-6.1.9/arch/x86/kvm/
Dmtrr.c27 static bool msr_mtrr_valid(unsigned msr) in msr_mtrr_valid()
54 bool kvm_mtrr_valid(struct kvm_vcpu *vcpu, u32 msr, u64 data) in kvm_mtrr_valid()
182 static bool fixed_msr_to_seg_unit(u32 msr, int *seg, int *unit) in fixed_msr_to_seg_unit()
238 static bool fixed_msr_to_range(u32 msr, u64 *start, u64 *end) in fixed_msr_to_range()
249 static int fixed_msr_to_range_index(u32 msr) in fixed_msr_to_range_index()
306 static void update_mtrr(struct kvm_vcpu *vcpu, u32 msr) in update_mtrr()
340 static void set_var_mtrr_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data) in set_var_mtrr_msr()
372 int kvm_mtrr_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data) in kvm_mtrr_set_msr()
393 int kvm_mtrr_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) in kvm_mtrr_get_msr()
Dhyperv.c223 static void synic_exit(struct kvm_vcpu_hv_synic *synic, u32 msr) in synic_exit()
238 u32 msr, u64 data, bool host) in synic_set_msr()
324 static void syndbg_exit(struct kvm_vcpu *vcpu, u32 msr) in syndbg_exit()
341 static int syndbg_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in syndbg_set_msr()
380 static int syndbg_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata, bool host) in syndbg_get_msr()
415 static int synic_get_msr(struct kvm_vcpu_hv_synic *synic, u32 msr, u64 *pdata, in synic_get_msr()
977 static bool kvm_hv_msr_partition_wide(u32 msr) in kvm_hv_msr_partition_wide()
1217 static bool hv_check_msr_access(struct kvm_vcpu_hv *hv_vcpu, u32 msr) in hv_check_msr_access()
1291 static int kvm_hv_set_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 data, in kvm_hv_set_msr_pw()
1424 static int kvm_hv_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in kvm_hv_set_msr()
[all …]
/linux-6.1.9/arch/arm64/hyperv/
Dhv_core.c60 void hv_set_vpreg(u32 msr, u64 value) in hv_set_vpreg()
91 void hv_get_vpreg_128(u32 msr, struct hv_get_vp_registers_output *result) in hv_get_vpreg_128()
121 u64 hv_get_vpreg(u32 msr) in hv_get_vpreg()
/linux-6.1.9/arch/x86/include/asm/shared/
Dmsr.h5 struct msr { struct
6 union {
/linux-6.1.9/arch/powerpc/include/asm/
Dasm-prototypes.h63 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-6.1.9/arch/powerpc/kvm/
Dbook3s_hv_tm.c19 u64 msr = vcpu->arch.shregs.msr; in emulate_tx_failure() local
45 u64 msr = vcpu->arch.shregs.msr; in kvmhv_p9_tm_emulation() local
Dbook3s_pr.c69 ulong msr = kvmppc_get_msr(vcpu); in kvmppc_is_split_real() local
75 ulong msr = kvmppc_get_msr(vcpu); in kvmppc_fixup_split_real() local
109 unsigned long msr, pc, new_msr, new_pc; in kvmppc_inject_interrupt_pr() local
472 static void kvmppc_set_msr_pr(struct kvm_vcpu *vcpu, u64 msr) in kvmppc_set_msr_pr()
804 void kvmppc_giveup_ext(struct kvm_vcpu *vcpu, ulong msr) in kvmppc_giveup_ext()
867 ulong msr) in kvmppc_handle_ext()
1063 u64 msr = kvmppc_get_msr(vcpu); in kvmppc_setup_debug() local
1072 u64 msr = kvmppc_get_msr(vcpu); in kvmppc_clear_debug() local
/linux-6.1.9/arch/powerpc/platforms/powernv/
Dopal-call.c71 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-6.1.9/tools/power/cpupower/debug/i386/
Dcentrino-decode.c28 static int rdmsr(unsigned int cpu, unsigned int msr, in rdmsr()
63 static void decode (unsigned int msr) in decode()
/linux-6.1.9/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c680 int get_msr(int cpu, int offset, unsigned long long *msr) in get_msr()
779 unsigned long long msr; in read_hwp_cap() local
814 unsigned long long msr; in read_hwp_request() local
828 unsigned long long msr = 0; in write_hwp_request() local
917 unsigned long long msr; in print_pkg_msrs() local
1169 unsigned long long msr; in enable_hwp_on_cpu() local
1182 unsigned long long msr; in update_cpu_msrs() local
1332 unsigned long long msr; in verify_hwp_is_enabled() local
1418 unsigned long long msr; in early_cpuid() local
/linux-6.1.9/tools/power/x86/turbostat/
Dturbostat.c690 int get_msr(int cpu, off_t offset, unsigned long long *msr) in get_msr()
1978 unsigned long long msr; in get_epb() local
2078 unsigned long long msr; in get_counters() local
2426 unsigned long long msr; in dump_nhm_platform_info() local
2452 unsigned long long msr; in dump_hsw_turbo_ratio_limits() local
2471 unsigned long long msr; in dump_ivt_turbo_ratio_limits() local
2536 unsigned long long msr, core_counts; in dump_turbo_ratio_limits() local
2565 unsigned long long msr; in dump_atom_turbo_ratio_limits() local
2607 unsigned long long msr; in dump_knl_turbo_ratio_limits() local
2662 unsigned long long msr; in dump_nhm_cst_cfg() local
[all …]
/linux-6.1.9/arch/x86/kvm/vmx/
Dpmu_intel.c162 static inline struct kvm_pmc *get_fw_gp_pmc(struct kvm_pmu *pmu, u32 msr) in get_fw_gp_pmc()
188 static bool intel_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) in intel_is_valid_msr()
223 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
394 u32 msr = msr_info->index; in intel_pmu_set_msr() local
/linux-6.1.9/drivers/powercap/
Dintel_rapl_msr.c101 u32 msr = (u32)ra->reg; in rapl_msr_read_raw() local
114 u32 msr = (u32)ra->reg; in rapl_msr_update_func() local

12345678