Lines Matching refs:msr
9 struct msr *msrs_alloc(void) in msrs_alloc()
11 struct msr *msrs = NULL; in msrs_alloc()
13 msrs = alloc_percpu(struct msr); in msrs_alloc()
23 void msrs_free(struct msr *msrs) in msrs_free()
39 int msr_read(u32 msr, struct msr *m) in msr_read() argument
44 err = rdmsrl_safe(msr, &val); in msr_read()
57 int msr_write(u32 msr, struct msr *m) in msr_write() argument
59 return wrmsrl_safe(msr, m->q); in msr_write()
62 static inline int __flip_bit(u32 msr, u8 bit, bool set) in __flip_bit() argument
64 struct msr m, m1; in __flip_bit()
70 err = msr_read(msr, &m); in __flip_bit()
83 err = msr_write(msr, &m1); in __flip_bit()
98 int msr_set_bit(u32 msr, u8 bit) in msr_set_bit() argument
100 return __flip_bit(msr, bit, true); in msr_set_bit()
111 int msr_clear_bit(u32 msr, u8 bit) in msr_clear_bit() argument
113 return __flip_bit(msr, bit, false); in msr_clear_bit()
117 void do_trace_write_msr(unsigned int msr, u64 val, int failed) in do_trace_write_msr() argument
119 trace_write_msr(msr, val, failed); in do_trace_write_msr()
124 void do_trace_read_msr(unsigned int msr, u64 val, int failed) in do_trace_read_msr() argument
126 trace_read_msr(msr, val, failed); in do_trace_read_msr()