Home
last modified time | relevance | path

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

1234

/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()
74 static inline unsigned int nmi_evntsel_msr_to_bit(unsigned int msr) in nmi_evntsel_msr_to_bit()
109 int reserve_perfctr_nmi(unsigned int msr) in reserve_perfctr_nmi()
124 void release_perfctr_nmi(unsigned int msr) in release_perfctr_nmi()
137 int reserve_evntsel_nmi(unsigned int msr) in reserve_evntsel_nmi()
152 void release_evntsel_nmi(unsigned int msr) in release_evntsel_nmi()
/arch/x86/lib/
Dmsr.c39 int msr_read(u32 msr, struct msr *m) in msr_read()
57 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()
/arch/x86/include/asm/
Dmsr.h14 struct msr { struct
26 struct msr reg; argument
79 static inline void do_trace_write_msr(unsigned int msr, u64 val, int failed) {} in do_trace_write_msr()
80 static inline void do_trace_read_msr(unsigned int msr, u64 val, int failed) {} in do_trace_read_msr()
81 static inline void do_trace_rdpmc(unsigned int msr, u64 val, int failed) {} in do_trace_rdpmc()
91 static __always_inline unsigned long long __rdmsr(unsigned int msr) in __rdmsr()
103 static __always_inline void __wrmsr(unsigned int msr, u32 low, u32 high) in __wrmsr()
111 #define native_rdmsr(msr, val1, val2) \ argument
118 #define native_wrmsr(msr, low, high) \ argument
121 #define native_wrmsrl(msr, val) \ argument
[all …]
Dparavirt.h159 static inline u64 paravirt_read_msr(unsigned msr) in paravirt_read_msr()
164 static inline void paravirt_write_msr(unsigned msr, in paravirt_write_msr()
170 static inline u64 paravirt_read_msr_safe(unsigned msr, int *err) in paravirt_read_msr_safe()
175 static inline int paravirt_write_msr_safe(unsigned msr, in paravirt_write_msr_safe()
181 #define rdmsr(msr, val1, val2) \ argument
188 #define wrmsr(msr, val1, val2) \ argument
193 #define rdmsrl(msr, val) \ argument
198 static inline void wrmsrl(unsigned msr, u64 val) in wrmsrl()
203 #define wrmsr_safe(msr, a, b) paravirt_write_msr_safe(msr, a, b) argument
206 #define rdmsr_safe(msr, a, b) \ argument
[all …]
/arch/powerpc/include/asm/
Dasm-prototypes.h166 static inline void kvmppc_save_tm_hv(struct kvm_vcpu *vcpu, u64 msr, in kvmppc_save_tm_hv()
168 static inline void kvmppc_restore_tm_hv(struct kvm_vcpu *vcpu, u64 msr, in kvmppc_restore_tm_hv()
/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_hv_tm_builtin.c23 u64 newmsr, msr, bescr; in kvmhv_p9_tm_emulation_early() local
Dbook3s_pr.c68 ulong msr = kvmppc_get_msr(vcpu); in kvmppc_is_split_real() local
74 ulong msr = kvmppc_get_msr(vcpu); in kvmppc_fixup_split_real() local
451 static void kvmppc_set_msr_pr(struct kvm_vcpu *vcpu, u64 msr) in kvmppc_set_msr_pr()
784 void kvmppc_giveup_ext(struct kvm_vcpu *vcpu, ulong msr) in kvmppc_giveup_ext()
847 ulong msr) in kvmppc_handle_ext()
1041 u64 msr = kvmppc_get_msr(vcpu); in kvmppc_setup_debug() local
1050 u64 msr = kvmppc_get_msr(vcpu); in kvmppc_clear_debug() local
/arch/m68k/bvme6000/
Dconfig.c172 unsigned char msr; in bvme6000_timer_int() local
197 unsigned char msr = rtc->msr & 0xc0; in bvme6000_sched_init() local
239 unsigned char msr, msb; in bvme6000_read_clk() local
292 unsigned char msr = rtc->msr & 0xc0; in bvme6000_hwclk() local
/arch/x86/kvm/
Dpmu_amd.c80 static enum index msr_to_index(u32 msr) in msr_to_index()
114 static inline struct kvm_pmc *get_gp_pmc_amd(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc_amd()
222 static bool amd_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) in amd_is_valid_msr()
233 static int amd_pmu_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *data) in amd_pmu_get_msr()
258 u32 msr = msr_info->index; in amd_pmu_set_msr() local
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()
186 static bool fixed_msr_to_seg_unit(u32 msr, int *seg, int *unit) in fixed_msr_to_seg_unit()
242 static bool fixed_msr_to_range(u32 msr, u64 *start, u64 *end) in fixed_msr_to_range()
253 static int fixed_msr_to_range_index(u32 msr) in fixed_msr_to_range_index()
310 static void update_mtrr(struct kvm_vcpu *vcpu, u32 msr) in update_mtrr()
344 static void set_var_mtrr_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data) in set_var_mtrr_msr()
376 int kvm_mtrr_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data) in kvm_mtrr_set_msr()
397 int kvm_mtrr_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) in kvm_mtrr_get_msr()
Dhyperv.c188 static void synic_exit(struct kvm_vcpu_hv_synic *synic, u32 msr) in synic_exit()
203 u32 msr, u64 data, bool host) in synic_set_msr()
271 static int synic_get_msr(struct kvm_vcpu_hv_synic *synic, u32 msr, u64 *pdata, in synic_get_msr()
805 static bool kvm_hv_msr_partition_wide(u32 msr) in kvm_hv_msr_partition_wide()
1013 static int kvm_hv_set_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 data, in kvm_hv_set_msr_pw()
1099 static int kvm_hv_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in kvm_hv_set_msr()
1210 static int kvm_hv_get_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) in kvm_hv_get_msr_pw()
1256 static int kvm_hv_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata, in kvm_hv_get_msr()
1317 int kvm_hv_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in kvm_hv_set_msr_common()
1330 int kvm_hv_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata, bool host) in kvm_hv_get_msr_common()
Dpmu.h87 static inline struct kvm_pmc *get_gp_pmc(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc()
101 static inline struct kvm_pmc *get_fixed_pmc(struct kvm_pmu *pmu, u32 msr) in get_fixed_pmc()
/arch/powerpc/kernel/
Dsignal_64.c108 unsigned long msr = regs->msr; in setup_sigcontext() local
196 unsigned long msr) in setup_tm_sigcontexts()
329 unsigned long msr; in restore_sigcontext() local
426 unsigned long msr; in restore_tm_sigcontexts() local
712 unsigned long msr; in SYSCALL_DEFINE0() local
824 unsigned long msr = regs->msr; in handle_rt_signal64() local
Dhead_32.h174 #define EXC_XFER_TEMPLATE(hdlr, trap, msr, tfer, ret) \ argument
Dsignal_32.c387 unsigned long msr = regs->msr; in save_user_regs() local
493 unsigned long msr) in save_tm_user_regs()
631 unsigned long msr; in restore_user_regs() local
735 unsigned long msr, msr_hi; in restore_tm_user_regs() local
909 unsigned long msr = regs->msr; in handle_rt_signal32() local
1370 unsigned long msr = regs->msr; in handle_signal32() local
/arch/x86/xen/
Dpmu.c132 static inline bool is_amd_pmu_msr(unsigned int msr) in is_amd_pmu_msr()
189 static bool xen_intel_pmu_emulate(unsigned int msr, u64 *val, int type, in xen_intel_pmu_emulate()
252 static bool xen_amd_pmu_emulate(unsigned int msr, u64 *val, bool is_read) in xen_amd_pmu_emulate()
293 bool pmu_msr_read(unsigned int msr, uint64_t *val, int *err) in pmu_msr_read()
314 bool pmu_msr_write(unsigned int msr, uint32_t low, uint32_t high, int *err) in pmu_msr_write()
345 uint32_t msr; in xen_amd_read_pmc() local
366 uint32_t msr; in xen_intel_read_pmc() local
Denlighten_pvh.c28 u32 msr; in xen_pvh_init() local
/arch/powerpc/platforms/powernv/
Dopal-call.c70 unsigned long opcode, unsigned long msr) in __opal_call_trace()
87 unsigned long opcode, unsigned long msr) in __opal_call_trace()
99 unsigned long msr = mfmsr(); in opal_call() local
/arch/x86/events/
Dprobe.c14 perf_msr_probe(struct perf_msr *msr, int cnt, bool zero, void *data) in perf_msr_probe()
Dprobe.h7 u64 msr; member
/arch/x86/kvm/vmx/
Dpmu_intel.c152 static bool intel_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) in intel_is_valid_msr()
174 static int intel_pmu_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *data) in intel_pmu_get_msr()
214 u32 msr = msr_info->index; in intel_pmu_set_msr() local
/arch/mips/pci/
Dops-loongson2.c182 void _rdmsr(u32 msr, u32 *hi, u32 *lo) in _rdmsr()
198 void _wrmsr(u32 msr, u32 hi, u32 lo) in _wrmsr()
/arch/x86/platform/pvh/
Denlighten.c123 u32 msr = xen_cpuid_base(); in xen_prepare_pvh() local
/arch/microblaze/kernel/
Dsetup.c95 unsigned int fdt, unsigned int msr, unsigned int tlb0, in machine_early_init()

1234