/linux/tools/testing/selftests/kvm/x86/ |
H A D | msrs_test.c | 23 #define ____MSR_TEST(msr, str, val, rsvd, reset, feat, f2, is_kvm) \ argument 35 #define __MSR_TEST(msr, str, val, rsvd, reset, feat) \ argument 38 #define MSR_TEST_NON_ZERO(msr, val, rsvd, reset, feat) \ argument 41 #define MSR_TEST(msr, val, rsvd, feat) \ argument 44 #define MSR_TEST2(msr, val, rsvd, feat, f2) \ argument 60 #define MSR_TEST_CANONICAL(msr, feat) \ argument 63 #define MSR_TEST_KVM(msr, val, rsvd, feat) \ argument 77 static u64 fixup_rdmsr_val(u32 msr, u64 want) in fixup_rdmsr_val() 97 static void __rdmsr(u32 msr, u64 want) in __rdmsr() 109 static void __wrmsr(u32 msr, u64 val) in __wrmsr() [all …]
|
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/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/arch/x86/kvm/svm/ |
H A D | pmu.c | 38 static inline struct kvm_pmc *get_gp_pmc_amd(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc_amd() 93 static struct kvm_pmc *amd_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) in amd_msr_idx_to_pmc() 104 static bool amd_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) in amd_is_valid_msr() 132 u32 msr = msr_info->index; in amd_pmu_get_msr() local 154 u32 msr = msr_info->index; in amd_pmu_set_msr() local
|
/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/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/arch/x86/kvm/ |
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() 1250 static bool hv_check_msr_access(struct kvm_vcpu_hv *hv_vcpu, u32 msr) in hv_check_msr_access() 1376 static int kvm_hv_set_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 data, in kvm_hv_set_msr_pw() 1519 static int kvm_hv_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in kvm_hv_set_msr() [all …]
|
/linux/tools/power/x86/x86_energy_perf_policy/ |
H A D | x86_energy_perf_policy.c | 680 get_msr(int cpu,int offset,unsigned long long * msr) get_msr() argument 779 unsigned long long msr; read_hwp_cap() local 814 unsigned long long msr; read_hwp_request() local 828 unsigned long long msr = 0; write_hwp_request() local 917 unsigned long long msr; print_pkg_msrs() local 1169 unsigned long long msr; enable_hwp_on_cpu() local 1182 unsigned long long msr; update_cpu_msrs() local 1333 unsigned long long msr; verify_hwp_is_enabled() local 1419 unsigned long long msr; early_cpuid() local [all...] |
/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/arch/mips/pci/ |
H A D | ops-loongson2.c | 182 void _rdmsr(u32 msr, u32 *hi, u32 *lo) in _rdmsr() 198 void _wrmsr(u32 msr, u32 hi, u32 lo) in _wrmsr()
|
/linux/arch/x86/xen/ |
H A D | enlighten_pv.c | 1089 static u64 xen_do_read_msr(u32 msr, int *err) in xen_do_read_msr() 1124 static void xen_do_write_msr(u32 msr, u64 val, int *err) in xen_do_write_msr() 1162 static int xen_read_msr_safe(u32 msr, u64 *val) in xen_read_msr_safe() 1170 static int xen_write_msr_safe(u32 msr, u64 val) in xen_write_msr_safe() 1179 static u64 xen_read_msr(u32 msr) in xen_read_msr() 1186 static void xen_write_msr(u32 msr, u64 val) in xen_write_msr()
|
/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]; global() member 1614 unsigned long long msr; global() member 1745 unsigned long long msr[NUM_MSR_COUNTERS]; global() member 1756 unsigned long long msr; global() member 2474 get_msr(int cpu,off_t offset,unsigned long long * msr) get_msr() argument 4431 unsigned long long msr; get_epb() local 5104 unsigned long long msr; get_counters() local 5327 unsigned long long msr; probe_cst_limit() local 5371 unsigned long long msr; dump_platform_info() local 5390 unsigned long long msr; dump_power_ctl() local 5408 unsigned long long msr; dump_turbo_ratio_limit2() local 5427 unsigned long long msr; dump_turbo_ratio_limit1() local 5470 unsigned long long msr, core_counts; dump_turbo_ratio_limits() local 5499 unsigned long long msr; dump_atom_turbo_ratio_limits() local 5541 unsigned long long msr; dump_knl_turbo_ratio_limits() local 5596 unsigned long long msr; dump_cst_cfg() local 5624 unsigned long long msr; dump_config_tdp() local 5668 unsigned long long msr; print_irtl() local 6564 get_msr_sum(int cpu,off_t offset,unsigned long long * msr) get_msr_sum() argument 6887 unsigned long long msr; probe_bclk() local 7389 unsigned long long msr; print_hwp() local 7478 unsigned long long msr; print_perf_limit() local 7583 unsigned long long msr; get_tdp_intel() local 7598 unsigned long long msr; rapl_probe_intel() local 7659 unsigned long long msr; rapl_probe_amd() local 7687 print_power_limit_msr(int cpu,unsigned long long msr,char * label) print_power_limit_msr() argument 7853 unsigned long long msr; print_rapl() local 8007 unsigned long long msr; set_temperature_target() local 8075 unsigned long long msr; print_thermal() local 8180 unsigned long long msr; decode_feature_control_msr() local 8192 unsigned long long msr; decode_misc_enable_msr() local 8212 unsigned long long msr; decode_misc_feature_control() local 8236 unsigned long long msr; decode_misc_pwr_mgmt_msr() local 8258 unsigned long long msr; decode_c6_demotion_policy_msr() local [all...] |
/linux/sound/pci/ctxfi/ |
H A D | ctamixer.h | 30 unsigned int msr; member 75 unsigned int msr; member
|
/linux/drivers/i2c/busses/ |
H A D | i2c-rcar.c | 552 static void rcar_i2c_irq_send(struct rcar_i2c_priv *priv, u32 msr) in rcar_i2c_irq_send() 601 static void rcar_i2c_irq_recv(struct rcar_i2c_priv *priv, u32 msr) in rcar_i2c_irq_recv() 732 static irqreturn_t rcar_i2c_irq(int irq, struct rcar_i2c_priv *priv, u32 msr) in rcar_i2c_irq() 782 u32 msr; in rcar_i2c_gen2_irq() local 799 u32 msr; in rcar_i2c_gen3_irq() local 992 u32 msr = rcar_i2c_read(priv, ICMSR); in rcar_i2c_master_xfer_atomic() local
|
/linux/drivers/usb/serial/ |
H A 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()
|
/linux/tools/testing/selftests/intel_pstate/ |
H A D | msr.c | 16 long long msr; in main() local
|