Lines Matching refs:reg
46 static inline int wrmsr_eio(u32 reg, u32 eax, u32 edx) in wrmsr_eio() argument
62 : "a" (eax), "d" (edx), "c" (reg), "i" (-EIO), "0" (0)); in wrmsr_eio()
67 static inline int rdmsr_eio(u32 reg, u32 *eax, u32 *edx) in rdmsr_eio() argument
83 : "c" (reg), "i" (-EIO), "0" (0)); in rdmsr_eio()
93 u32 reg; member
102 cmd->err = wrmsr_eio(cmd->reg, cmd->data[0], cmd->data[1]); in msr_smp_wrmsr()
110 cmd->err = rdmsr_eio(cmd->reg, &cmd->data[0], &cmd->data[1]); in msr_smp_rdmsr()
113 static inline int do_wrmsr(int cpu, u32 reg, u32 eax, u32 edx) in do_wrmsr() argument
118 return wrmsr_eio(reg, eax, edx); in do_wrmsr()
121 cmd.reg = reg; in do_wrmsr()
130 static inline int do_rdmsr(int cpu, u32 reg, u32 *eax, u32 *edx) in do_rdmsr() argument
135 return rdmsr_eio(reg, eax, edx); in do_rdmsr()
138 cmd.reg = reg; in do_rdmsr()
151 static inline int do_wrmsr(int cpu, u32 reg, u32 eax, u32 edx) in do_wrmsr() argument
153 return wrmsr_eio(reg, eax, edx); in do_wrmsr()
156 static inline int do_rdmsr(int cpu, u32 reg, u32 *eax, u32 *edx) in do_rdmsr() argument
158 return rdmsr_eio(reg, eax, edx); in do_rdmsr()
183 u32 reg = *ppos; in msr_read() local
191 err = do_rdmsr(cpu, reg, &data[0], &data[1]); in msr_read()
208 u32 reg = *ppos; in msr_write() local
218 err = do_wrmsr(cpu, reg, data[0], data[1]); in msr_write()