Lines Matching refs:msr
9 struct msr __percpu *msrs_alloc(void) in msrs_alloc()
11 struct msr __percpu *msrs = NULL; in msrs_alloc()
13 msrs = alloc_percpu(struct msr); in msrs_alloc()
23 void msrs_free(struct msr __percpu *msrs) in msrs_free()
39 static int msr_read(u32 msr, struct msr *m) in msr_read() argument
44 err = rdmsrl_safe(msr, &val); in msr_read()
59 static int msr_write(u32 msr, struct msr *m) in msr_write() argument
61 return wrmsrl_safe(msr, m->q); in msr_write()
64 static inline int __flip_bit(u32 msr, u8 bit, bool set) in __flip_bit() argument
66 struct msr m, m1; in __flip_bit()
72 err = msr_read(msr, &m); in __flip_bit()
85 err = msr_write(msr, &m1); in __flip_bit()
102 int msr_set_bit(u32 msr, u8 bit) in msr_set_bit() argument
104 return __flip_bit(msr, bit, true); in msr_set_bit()
117 int msr_clear_bit(u32 msr, u8 bit) in msr_clear_bit() argument
119 return __flip_bit(msr, bit, false); in msr_clear_bit()
123 void do_trace_write_msr(unsigned int msr, u64 val, int failed) in do_trace_write_msr() argument
125 trace_write_msr(msr, val, failed); in do_trace_write_msr()
130 void do_trace_read_msr(unsigned int msr, u64 val, int failed) in do_trace_read_msr() argument
132 trace_read_msr(msr, val, failed); in do_trace_read_msr()