Lines Matching refs:fx

99 static inline void fpstate_init_fxstate(struct fxregs_state *fx)
101 fx->cwd = 0x37f;
102 fx->mxcsr = MXCSR_DEFAULT;
147 static inline int copy_fregs_to_user(struct fregs_state __user *fx)
149 return user_insn(fnsave %[fx]; fwait, [fx] "=m" (*fx), "m" (*fx));
152 static inline int copy_fxregs_to_user(struct fxregs_state __user *fx)
155 return user_insn(fxsave %[fx], [fx] "=m" (*fx), "m" (*fx));
157 return user_insn(fxsaveq %[fx], [fx] "=m" (*fx), "m" (*fx));
161 static inline void copy_kernel_to_fxregs(struct fxregs_state *fx)
164 kernel_insn(fxrstor %[fx], "=m" (*fx), [fx] "m" (*fx));
166 kernel_insn(fxrstorq %[fx], "=m" (*fx), [fx] "m" (*fx));
169 static inline int copy_kernel_to_fxregs_err(struct fxregs_state *fx)
172 return kernel_insn_err(fxrstor %[fx], "=m" (*fx), [fx] "m" (*fx));
174 return kernel_insn_err(fxrstorq %[fx], "=m" (*fx), [fx] "m" (*fx));
177 static inline int copy_user_to_fxregs(struct fxregs_state __user *fx)
180 return user_insn(fxrstor %[fx], "=m" (*fx), [fx] "m" (*fx));
182 return user_insn(fxrstorq %[fx], "=m" (*fx), [fx] "m" (*fx));
185 static inline void copy_kernel_to_fregs(struct fregs_state *fx)
187 kernel_insn(frstor %[fx], "=m" (*fx), [fx] "m" (*fx));
190 static inline int copy_kernel_to_fregs_err(struct fregs_state *fx)
192 return kernel_insn_err(frstor %[fx], "=m" (*fx), [fx] "m" (*fx));
195 static inline int copy_user_to_fregs(struct fregs_state __user *fx)
197 return user_insn(frstor %[fx], "=m" (*fx), [fx] "m" (*fx));
203 asm volatile( "fxsave %[fx]" : [fx] "=m" (fpu->state.fxsave));
205 asm volatile("fxsaveq %[fx]" : [fx] "=m" (fpu->state.fxsave));
208 static inline void fxsave(struct fxregs_state *fx)
211 asm volatile( "fxsave %[fx]" : [fx] "=m" (*fx));
213 asm volatile("fxsaveq %[fx]" : [fx] "=m" (*fx));