Lines Matching refs:msr
117 u64 (*read_msr)(unsigned int msr, int *err);
118 int (*write_msr)(unsigned int msr, u64 val);
560 static inline u64 paravirt_read_msr(unsigned msr, int *err) in paravirt_read_msr() argument
562 return PVOP_CALL2(u64, pv_cpu_ops.read_msr, msr, err); in paravirt_read_msr()
564 static inline int paravirt_write_msr(unsigned msr, unsigned low, unsigned high) in paravirt_write_msr() argument
566 return PVOP_CALL3(int, pv_cpu_ops.write_msr, msr, low, high); in paravirt_write_msr()
570 #define rdmsr(msr,val1,val2) do { \ argument
572 u64 _l = paravirt_read_msr(msr, &_err); \
577 #define wrmsr(msr,val1,val2) do { \ argument
578 paravirt_write_msr(msr, val1, val2); \
581 #define rdmsrl(msr,val) do { \ argument
583 val = paravirt_read_msr(msr, &_err); \
586 #define wrmsrl(msr,val) wrmsr(msr, (u32)((u64)(val)), ((u64)(val))>>32) argument
587 #define wrmsr_safe(msr,a,b) paravirt_write_msr(msr, a, b) argument
590 #define rdmsr_safe(msr,a,b) ({ \ argument
592 u64 _l = paravirt_read_msr(msr, &_err); \