Lines Matching refs:msr
17 static inline unsigned long long native_read_msr(unsigned int msr) in native_read_msr() argument
21 asm volatile("rdmsr" : "=A" (val) : "c" (msr)); in native_read_msr()
25 static inline unsigned long long native_read_msr_safe(unsigned int msr, in native_read_msr_safe() argument
40 : "c" (msr), "i" (-EFAULT)); in native_read_msr_safe()
45 static inline void native_write_msr(unsigned int msr, unsigned long long val) in native_write_msr() argument
47 asm volatile("wrmsr" : : "c" (msr), "A"(val)); in native_write_msr()
50 static inline int native_write_msr_safe(unsigned int msr, in native_write_msr_safe() argument
64 : "c" (msr), "0" ((u32)val), "d" ((u32)(val>>32)), in native_write_msr_safe()
93 #define rdmsr(msr,val1,val2) \ argument
95 u64 __val = native_read_msr(msr); \
105 #define rdmsrl(msr,val) \ argument
106 ((val) = native_read_msr(msr))
108 #define wrmsrl(msr,val) native_write_msr(msr, val) argument
117 #define rdmsr_safe(msr,p1,p2) \ argument
120 u64 __val = native_read_msr_safe(msr, &__err); \
178 #define rdmsr(msr,val1,val2) \ argument
181 : "c" (msr))
184 #define rdmsrl(msr,val) do { unsigned long a__,b__; \ argument
187 : "c" (msr)); \
191 #define wrmsr(msr,val1,val2) \ argument
194 : "c" (msr), "a" (val1), "d" (val2))
196 #define wrmsrl(msr,val) wrmsr(msr,(__u32)((__u64)(val)),((__u64)(val))>>32) argument
299 #define wrmsr_safe(msr,a,b) ({ int ret__; \ argument
310 : "c" (msr), "0" (a), "d" (b), "i" (-EFAULT)); \
313 #define checking_wrmsrl(msr,val) wrmsr_safe(msr,(u32)(val),(u32)((val)>>32)) argument
315 #define rdmsr_safe(msr,a,b) \ argument
327 :"c"(msr), "i"(-EIO), "0"(0)); \