| /OK3568_Linux_fs/u-boot/arch/x86/cpu/ivybridge/ |
| H A D | model_206ax.c | 35 msr_t msr; in enable_vmx() local 164 msr_t msr = msr_read(MSR_PLATFORM_INFO); in set_power_limits() local 227 msr_t msr; in configure_c_states() local 289 msr_t msr; in configure_thermal_target() local 308 msr_t msr; in configure_misc() local 329 msr_t msr; in enable_lapic_tpr() local 339 msr_t msr; in configure_dca_cap() local 352 msr_t msr, perf_ctl; in set_max_ratio() local 374 msr_t msr; in set_energy_perf_bias() local 387 msr_t msr; in configure_mca() local [all …]
|
| /OK3568_Linux_fs/kernel/arch/x86/include/asm/ |
| H A D | msr.h | 14 struct msr { struct 26 struct msr reg; argument 77 static inline void do_trace_write_msr(unsigned int msr, u64 val, int failed) {} in do_trace_write_msr() 78 static inline void do_trace_read_msr(unsigned int msr, u64 val, int failed) {} in do_trace_read_msr() 79 static inline void do_trace_rdpmc(unsigned int msr, u64 val, int failed) {} in do_trace_rdpmc() 89 static __always_inline unsigned long long __rdmsr(unsigned int msr) in __rdmsr() 101 static __always_inline void __wrmsr(unsigned int msr, u32 low, u32 high) in __wrmsr() 109 #define native_rdmsr(msr, val1, val2) \ argument 116 #define native_wrmsr(msr, low, high) \ argument 119 #define native_wrmsrl(msr, val) \ argument [all …]
|
| H A D | paravirt.h | 163 static inline u64 paravirt_read_msr(unsigned msr) in paravirt_read_msr() 168 static inline void paravirt_write_msr(unsigned msr, in paravirt_write_msr() 174 static inline u64 paravirt_read_msr_safe(unsigned msr, int *err) in paravirt_read_msr_safe() 179 static inline int paravirt_write_msr_safe(unsigned msr, in paravirt_write_msr_safe() 185 #define rdmsr(msr, val1, val2) \ argument 192 #define wrmsr(msr, val1, val2) \ argument 197 #define rdmsrl(msr, val) \ argument 202 static inline void wrmsrl(unsigned msr, u64 val) in wrmsrl() 207 #define wrmsr_safe(msr, a, b) paravirt_write_msr_safe(msr, a, b) argument 210 #define rdmsr_safe(msr, a, b) \ argument [all …]
|
| /OK3568_Linux_fs/u-boot/arch/x86/include/asm/ |
| H A D | msr.h | 27 struct msr { struct 39 struct msr reg; argument 76 unsigned long long native_read_msr(unsigned int msr) in native_read_msr() 84 static inline void native_write_msr(unsigned int msr, in native_write_msr() 113 #define rdmsr(msr, val1, val2) \ argument 120 static inline void wrmsr(unsigned msr, unsigned low, unsigned high) in wrmsr() 125 #define rdmsrl(msr, val) \ argument 128 #define wrmsrl(msr, val) \ argument 131 static inline void msr_clrsetbits_64(unsigned msr, u64 clear, u64 set) in msr_clrsetbits_64() 141 static inline void msr_setbits_64(unsigned msr, u64 set) in msr_setbits_64() [all …]
|
| /OK3568_Linux_fs/kernel/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() 117 int reserve_perfctr_nmi(unsigned int msr) in reserve_perfctr_nmi() 132 void release_perfctr_nmi(unsigned int msr) in release_perfctr_nmi() 145 int reserve_evntsel_nmi(unsigned int msr) in reserve_evntsel_nmi() 160 void release_evntsel_nmi(unsigned int msr) in release_evntsel_nmi()
|
| /OK3568_Linux_fs/u-boot/arch/x86/cpu/broadwell/ |
| H A D | cpu.c | 105 msr_t msr, perf_ctl, platform_info; in set_max_freq() local 233 msr_t msr; in initialize_vr_config() local 410 msr_t msr, perf_ctl; in set_max_ratio() local 438 msr_t msr; in broadwell_init() local 460 msr_t msr; in configure_mca() local 480 msr_t msr; in enable_lapic_tpr() local 490 msr_t msr; in configure_c_states() local 547 msr_t msr; in configure_misc() local 569 msr_t msr; in configure_thermal_target() local 587 msr_t msr; in configure_dca_cap() local [all …]
|
| /OK3568_Linux_fs/kernel/arch/x86/lib/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/kernel/ |
| H A D | cpu_setup_power.c | 19 u64 msr; in init_hvmode_206() local 146 u64 msr; in __restore_cpu_power7() local 176 u64 msr; in __restore_cpu_power8() local 214 u64 msr; in __restore_cpu_power9() local 254 u64 msr; in __restore_cpu_power10() local
|
| H A D | signal_64.c | 108 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 710 unsigned long msr; in SYSCALL_DEFINE0() local 822 unsigned long msr = regs->msr; in handle_rt_signal64() local
|
| H A D | signal_32.c | 242 unsigned long msr = regs->msr; in save_user_regs() local 348 unsigned long msr) in save_tm_user_regs() 486 unsigned long msr; in restore_user_regs() local 590 unsigned long msr, msr_hi; in restore_tm_user_regs() local 764 unsigned long msr = regs->msr; in handle_rt_signal32() local 1225 unsigned long msr = regs->msr; in handle_signal32() local
|
| /OK3568_Linux_fs/kernel/arch/x86/kvm/svm/ |
| H A D | pmu.c | 80 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() 223 static bool amd_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) in amd_is_valid_msr() 229 static struct kvm_pmc *amd_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) in amd_msr_idx_to_pmc() 244 u32 msr = msr_info->index; in amd_pmu_get_msr() local 266 u32 msr = msr_info->index; in amd_pmu_set_msr() local
|
| /OK3568_Linux_fs/kernel/arch/m68k/bvme6000/ |
| H A D | config.c | 171 unsigned char msr; in bvme6000_timer_int() local 196 unsigned char msr = rtc->msr & 0xc0; in bvme6000_sched_init() local 238 unsigned char msr, msb; in bvme6000_read_clk() local 291 unsigned char msr = rtc->msr & 0xc0; in bvme6000_hwclk() local
|
| /OK3568_Linux_fs/kernel/arch/x86/kvm/ |
| H A D | mtrr.c | 27 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()
|
| H A D | hyperv.c | 190 static void synic_exit(struct kvm_vcpu_hv_synic *synic, u32 msr) in synic_exit() 205 u32 msr, u64 data, bool host) in synic_set_msr() 297 static void syndbg_exit(struct kvm_vcpu *vcpu, u32 msr) in syndbg_exit() 314 static int syndbg_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in syndbg_set_msr() 353 static int syndbg_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata, bool host) in syndbg_get_msr() 390 static int synic_get_msr(struct kvm_vcpu_hv_synic *synic, u32 msr, u64 *pdata, in synic_get_msr() 924 static bool kvm_hv_msr_partition_wide(u32 msr) in kvm_hv_msr_partition_wide() 1134 static int kvm_hv_set_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 data, in kvm_hv_set_msr_pw() 1223 static int kvm_hv_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in kvm_hv_set_msr() 1334 static int kvm_hv_get_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata, in kvm_hv_get_msr_pw() [all …]
|
| /OK3568_Linux_fs/kernel/arch/x86/xen/ |
| H A D | pmu.c | 132 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
|
| /OK3568_Linux_fs/kernel/arch/x86/kvm/vmx/ |
| H A D | pmu_intel.c | 172 static inline struct kvm_pmc *get_fw_gp_pmc(struct kvm_pmu *pmu, u32 msr) in get_fw_gp_pmc() 180 static bool intel_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) in intel_is_valid_msr() 202 static struct kvm_pmc *intel_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) in intel_msr_idx_to_pmc() 218 u32 msr = msr_info->index; in intel_pmu_get_msr() local 258 u32 msr = msr_info->index; in intel_pmu_set_msr() local
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/kvm/x86_64/ |
| H A D | kvm_pv_test.c | 69 #define TEST_MSR(msr) { .idx = msr, .name = #msr } argument 71 #define PR_MSR(msr) ucall(UCALL_PR_MSR, 1, msr) argument 90 static void test_msr(struct msr_data *msr) in test_msr() 156 struct msr_data *msr = (struct msr_data *)uc->args[0]; in pr_msr() local
|
| /OK3568_Linux_fs/kernel/arch/powerpc/include/asm/ |
| H A D | asm-prototypes.h | 163 static inline void kvmppc_save_tm_hv(struct kvm_vcpu *vcpu, u64 msr, in kvmppc_save_tm_hv() 165 static inline void kvmppc_restore_tm_hv(struct kvm_vcpu *vcpu, u64 msr, in kvmppc_restore_tm_hv()
|
| /OK3568_Linux_fs/kernel/tools/power/x86/x86_energy_perf_policy/ |
| H A D | x86_energy_perf_policy.c | 677 int get_msr(int cpu, int offset, unsigned long long *msr) in get_msr() 734 unsigned long long msr; in read_hwp_cap() local 769 unsigned long long msr; in read_hwp_request() local 783 unsigned long long msr = 0; in write_hwp_request() local 803 unsigned long long msr; in print_cpu_msrs() local 828 unsigned long long msr; in print_pkg_msrs() local 1080 unsigned long long msr; in enable_hwp_on_cpu() local 1093 unsigned long long msr; in update_cpu_msrs() local 1243 unsigned long long msr; in verify_hwp_is_enabled() local 1329 unsigned long long msr; in early_cpuid() local
|
| /OK3568_Linux_fs/kernel/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
|
| /OK3568_Linux_fs/u-boot/arch/powerpc/include/asm/ |
| H A D | ppc.h | 109 unsigned long msr; in get_msr() local 116 static inline void set_msr(unsigned long msr) in set_msr()
|
| /OK3568_Linux_fs/u-boot/arch/x86/cpu/ |
| H A D | turbo.c | 54 msr_t msr; in turbo_get_state() local 85 msr_t msr; in turbo_enable() local
|
| /OK3568_Linux_fs/kernel/tools/power/x86/turbostat/ |
| H A D | turbostat.c | 497 int get_msr(int cpu, off_t offset, unsigned long long *msr) in get_msr() 1895 unsigned long long msr; in get_counters() local 2188 unsigned long long msr; in dump_nhm_platform_info() local 2213 unsigned long long msr; in dump_hsw_turbo_ratio_limits() local 2235 unsigned long long msr; in dump_ivt_turbo_ratio_limits() local 2302 unsigned long long msr, core_counts; in dump_turbo_ratio_limits() local 2368 unsigned long long msr; in dump_atom_turbo_ratio_limits() local 2418 unsigned long long msr; in dump_knl_turbo_ratio_limits() local 2475 unsigned long long msr; in dump_nhm_cst_cfg() local 2504 unsigned long long msr; in dump_config_tdp() local [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/powernv/ |
| H A D | opal-call.c | 70 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
|
| /OK3568_Linux_fs/kernel/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()
|