Lines Matching refs:fx
136 static inline void fx_finit(struct i387_fxsave_struct *fx) in fx_finit() argument
138 fx->cwd = 0x37f; in fx_finit()
139 fx->mxcsr = MXCSR_DEFAULT; in fx_finit()
182 static inline int fsave_user(struct i387_fsave_struct __user *fx) in fsave_user() argument
184 return user_insn(fnsave %[fx]; fwait, [fx] "=m" (*fx), "m" (*fx)); in fsave_user()
187 static inline int fxsave_user(struct i387_fxsave_struct __user *fx) in fxsave_user() argument
190 return user_insn(fxsave %[fx], [fx] "=m" (*fx), "m" (*fx)); in fxsave_user()
192 return user_insn(fxsaveq %[fx], [fx] "=m" (*fx), "m" (*fx)); in fxsave_user()
195 return user_insn(rex64/fxsave (%[fx]), "=m" (*fx), [fx] "R" (fx)); in fxsave_user()
198 static inline int fxrstor_checking(struct i387_fxsave_struct *fx) in fxrstor_checking() argument
201 return check_insn(fxrstor %[fx], "=m" (*fx), [fx] "m" (*fx)); in fxrstor_checking()
203 return check_insn(fxrstorq %[fx], "=m" (*fx), [fx] "m" (*fx)); in fxrstor_checking()
206 return check_insn(rex64/fxrstor (%[fx]), "=m" (*fx), [fx] "R" (fx), in fxrstor_checking()
207 "m" (*fx)); in fxrstor_checking()
210 static inline int fxrstor_user(struct i387_fxsave_struct __user *fx) in fxrstor_user() argument
213 return user_insn(fxrstor %[fx], "=m" (*fx), [fx] "m" (*fx)); in fxrstor_user()
215 return user_insn(fxrstorq %[fx], "=m" (*fx), [fx] "m" (*fx)); in fxrstor_user()
218 return user_insn(rex64/fxrstor (%[fx]), "=m" (*fx), [fx] "R" (fx), in fxrstor_user()
219 "m" (*fx)); in fxrstor_user()
222 static inline int frstor_checking(struct i387_fsave_struct *fx) in frstor_checking() argument
224 return check_insn(frstor %[fx], "=m" (*fx), [fx] "m" (*fx)); in frstor_checking()
227 static inline int frstor_user(struct i387_fsave_struct __user *fx) in frstor_user() argument
229 return user_insn(frstor %[fx], "=m" (*fx), [fx] "m" (*fx)); in frstor_user()
235 asm volatile( "fxsave %[fx]" : [fx] "=m" (fpu->state->fxsave)); in fpu_fxsave()
237 asm volatile("fxsaveq %[fx]" : [fx] "=m" (fpu->state->fxsave)); in fpu_fxsave()
262 : [fx] "R" (&fpu->state->fxsave)); in fpu_fxsave()
284 : [fx] "=m" (fpu->state->fsave)); in fpu_save_init()
494 extern int save_xstate_sig(void __user *buf, void __user *fx, int size);
495 extern int __restore_xstate_sig(void __user *buf, void __user *fx, int size);