/Linux-v4.19/arch/x86/kernel/cpu/ |
D | perfctr-watchdog.c | 45 static inline unsigned int nmi_perfctr_msr_to_bit(unsigned int msr) in nmi_perfctr_msr_to_bit() 73 static inline unsigned int nmi_evntsel_msr_to_bit(unsigned int msr) in nmi_evntsel_msr_to_bit() 107 int reserve_perfctr_nmi(unsigned int msr) in reserve_perfctr_nmi() 122 void release_perfctr_nmi(unsigned int msr) in release_perfctr_nmi() 135 int reserve_evntsel_nmi(unsigned int msr) in reserve_evntsel_nmi() 150 void release_evntsel_nmi(unsigned int msr) in release_evntsel_nmi()
|
/Linux-v4.19/arch/x86/include/asm/ |
D | msr.h | 14 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 inline unsigned long long notrace __rdmsr(unsigned int msr) in __rdmsr() 103 static inline void notrace __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 …]
|
D | paravirt.h | 109 static inline u64 paravirt_read_msr(unsigned msr) in paravirt_read_msr() 114 static inline void paravirt_write_msr(unsigned msr, in paravirt_write_msr() 120 static inline u64 paravirt_read_msr_safe(unsigned msr, int *err) in paravirt_read_msr_safe() 125 static inline int paravirt_write_msr_safe(unsigned msr, in paravirt_write_msr_safe() 131 #define rdmsr(msr, val1, val2) \ argument 138 #define wrmsr(msr, val1, val2) \ argument 143 #define rdmsrl(msr, val) \ argument 148 static inline void wrmsrl(unsigned msr, u64 val) in wrmsrl() 153 #define wrmsr_safe(msr, a, b) paravirt_write_msr_safe(msr, a, b) argument 156 #define rdmsr_safe(msr, a, b) \ argument [all …]
|
/Linux-v4.19/arch/x86/lib/ |
D | msr.c | 39 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()
|
/Linux-v4.19/arch/m68k/bvme6000/ |
D | config.c | 161 unsigned char msr = rtc->msr & 0xc0; in bvme6000_timer_int() local 180 unsigned char msr = rtc->msr & 0xc0; in bvme6000_sched_init() local 222 unsigned char msr = rtc->msr & 0xc0; in bvme6000_gettimeoffset() local 269 unsigned char msr = rtc->msr & 0xc0; in bvme6000_hwclk() local
|
/Linux-v4.19/arch/x86/kvm/ |
D | pmu_amd.c | 66 static enum index msr_to_index(u32 msr) in msr_to_index() 100 static inline struct kvm_pmc *get_gp_pmc_amd(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc_amd() 202 static bool amd_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) in amd_is_valid_msr() 213 static int amd_pmu_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *data) in amd_pmu_get_msr() 238 u32 msr = msr_info->index; in amd_pmu_set_msr() local
|
D | mtrr.c | 29 static bool msr_mtrr_valid(unsigned msr) in msr_mtrr_valid() 61 bool kvm_mtrr_valid(struct kvm_vcpu *vcpu, u32 msr, u64 data) in kvm_mtrr_valid() 196 static bool fixed_msr_to_seg_unit(u32 msr, int *seg, int *unit) in fixed_msr_to_seg_unit() 248 static bool fixed_msr_to_range(u32 msr, u64 *start, u64 *end) in fixed_msr_to_range() 259 static int fixed_msr_to_range_index(u32 msr) in fixed_msr_to_range_index() 316 static void update_mtrr(struct kvm_vcpu *vcpu, u32 msr) in update_mtrr() 350 static void set_var_mtrr_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data) in set_var_mtrr_msr() 382 int kvm_mtrr_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data) in kvm_mtrr_set_msr() 403 int kvm_mtrr_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) in kvm_mtrr_get_msr()
|
D | hyperv.c | 218 static void synic_exit(struct kvm_vcpu_hv_synic *synic, u32 msr) in synic_exit() 233 u32 msr, u64 data, bool host) in synic_set_msr() 298 static int synic_get_msr(struct kvm_vcpu_hv_synic *synic, u32 msr, u64 *pdata, in synic_get_msr() 749 static bool kvm_hv_msr_partition_wide(u32 msr) in kvm_hv_msr_partition_wide() 955 static int kvm_hv_set_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 data, in kvm_hv_set_msr_pw() 1041 static int kvm_hv_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in kvm_hv_set_msr() 1125 static int kvm_hv_get_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) in kvm_hv_get_msr_pw() 1171 static int kvm_hv_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata, in kvm_hv_get_msr() 1232 int kvm_hv_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in kvm_hv_set_msr_common() 1245 int kvm_hv_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata, bool host) in kvm_hv_get_msr_common()
|
D | pmu_intel.c | 145 static bool intel_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) in intel_is_valid_msr() 167 static int intel_pmu_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *data) in intel_pmu_get_msr() 203 u32 msr = msr_info->index; in intel_pmu_set_msr() local
|
D | pmu.h | 85 static inline struct kvm_pmc *get_gp_pmc(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc() 95 static inline struct kvm_pmc *get_fixed_pmc(struct kvm_pmu *pmu, u32 msr) in get_fixed_pmc()
|
/Linux-v4.19/arch/x86/xen/ |
D | pmu.c | 125 static inline bool is_amd_pmu_msr(unsigned int msr) in is_amd_pmu_msr() 182 static bool xen_intel_pmu_emulate(unsigned int msr, u64 *val, int type, in xen_intel_pmu_emulate() 245 static bool xen_amd_pmu_emulate(unsigned int msr, u64 *val, bool is_read) in xen_amd_pmu_emulate() 286 bool pmu_msr_read(unsigned int msr, uint64_t *val, int *err) in pmu_msr_read() 307 bool pmu_msr_write(unsigned int msr, uint32_t low, uint32_t high, int *err) in pmu_msr_write() 338 uint32_t msr; in xen_amd_read_pmc() local 359 uint32_t msr; in xen_intel_read_pmc() local
|
/Linux-v4.19/arch/powerpc/kvm/ |
D | book3s_hv_tm.c | 20 u64 msr = vcpu->arch.shregs.msr; in emulate_tx_failure() local 46 u64 msr = vcpu->arch.shregs.msr; in kvmhv_p9_tm_emulation() local
|
D | book3s_pr.c | 71 ulong msr = kvmppc_get_msr(vcpu); in kvmppc_is_split_real() local 77 ulong msr = kvmppc_get_msr(vcpu); in kvmppc_fixup_split_real() local 454 static void kvmppc_set_msr_pr(struct kvm_vcpu *vcpu, u64 msr) in kvmppc_set_msr_pr() 786 void kvmppc_giveup_ext(struct kvm_vcpu *vcpu, ulong msr) in kvmppc_giveup_ext() 849 ulong msr) in kvmppc_handle_ext() 1043 u64 msr = kvmppc_get_msr(vcpu); in kvmppc_setup_debug() local 1052 u64 msr = kvmppc_get_msr(vcpu); in kvmppc_clear_debug() local
|
D | book3s_hv_tm_builtin.c | 26 u64 newmsr, msr, bescr; in kvmhv_p9_tm_emulation_early() local
|
/Linux-v4.19/arch/powerpc/kernel/ |
D | signal_64.c | 112 unsigned long msr = regs->msr; in setup_sigcontext() local 214 unsigned long msr = tsk->thread.regs->msr; in setup_tm_sigcontexts() local 340 unsigned long msr; in restore_sigcontext() local 437 unsigned long msr; in restore_tm_sigcontexts() local 705 unsigned long msr; in SYSCALL_DEFINE0() local
|
/Linux-v4.19/tools/power/x86/x86_energy_perf_policy/ |
D | x86_energy_perf_policy.c | 627 int get_msr(int cpu, int offset, unsigned long long *msr) in get_msr() 682 unsigned long long msr; in read_hwp_cap() local 717 unsigned long long msr; in read_hwp_request() local 731 unsigned long long msr = 0; in write_hwp_request() local 751 unsigned long long msr; in print_cpu_msrs() local 776 unsigned long long msr; in print_pkg_msrs() local 1028 unsigned long long msr; in enable_hwp_on_cpu() local 1041 unsigned long long msr; in update_cpu_msrs() local 1203 unsigned long long msr; in verify_hwp_is_enabled() local 1285 unsigned long long msr; in early_cpuid() local
|
/Linux-v4.19/tools/power/cpupower/debug/i386/ |
D | centrino-decode.c | 29 static int rdmsr(unsigned int cpu, unsigned int msr, in rdmsr() 64 static void decode (unsigned int msr) in decode()
|
/Linux-v4.19/tools/power/x86/turbostat/ |
D | turbostat.c | 374 int get_msr(int cpu, off_t offset, unsigned long long *msr) in get_msr() 1704 unsigned long long msr; in get_counters() local 1981 unsigned long long msr; in dump_nhm_platform_info() local 2006 unsigned long long msr; in dump_hsw_turbo_ratio_limits() local 2028 unsigned long long msr; in dump_ivt_turbo_ratio_limits() local 2094 unsigned long long msr, core_counts; in dump_turbo_ratio_limits() local 2160 unsigned long long msr; in dump_atom_turbo_ratio_limits() local 2210 unsigned long long msr; in dump_knl_turbo_ratio_limits() local 2267 unsigned long long msr; in dump_nhm_cst_cfg() local 2296 unsigned long long msr; in dump_config_tdp() local [all …]
|
/Linux-v4.19/arch/mips/pci/ |
D | ops-loongson2.c | 185 void _rdmsr(u32 msr, u32 *hi, u32 *lo) in _rdmsr() 201 void _wrmsr(u32 msr, u32 hi, u32 lo) in _wrmsr()
|
/Linux-v4.19/arch/x86/power/ |
D | cpu.c | 39 struct saved_msr *msr = ctxt->saved_msrs.array; in msr_save_context() local 50 struct saved_msr *msr = ctxt->saved_msrs.array; in msr_restore_context() local
|
/Linux-v4.19/tools/testing/selftests/intel_pstate/ |
D | msr.c | 16 long long msr; in main() local
|
/Linux-v4.19/sound/pci/ctxfi/ |
D | ctamixer.h | 34 unsigned int msr; member 79 unsigned int msr; member
|
/Linux-v4.19/arch/x86/events/ |
D | msr.c | 101 u64 msr; member 117 static struct perf_msr msr[] = { variable
|
/Linux-v4.19/arch/x86/kernel/ |
D | process.c | 345 u64 msr = x86_amd_ls_cfg_base; in amd_set_core_ssb_state() local 383 u64 msr = x86_amd_ls_cfg_base | ssbd_tif_to_amd_ls_cfg(tifn); in amd_set_core_ssb_state() local 400 u64 msr = x86_spec_ctrl_base | ssbd_tif_to_spec_ctrl(tifn); in intel_set_ssb_state() local
|
/Linux-v4.19/drivers/usb/serial/ |
D | mct_u232.c | 306 unsigned char *msr) in mct_u232_get_modem_stat() 337 unsigned char msr) in mct_u232_msr_to_icount() 351 unsigned int *control_state, unsigned char msr) in mct_u232_msr_to_state()
|