Lines Matching refs:fx
54 static inline int fnsave_to_user_sigframe(struct fregs_state __user *fx) in fnsave_to_user_sigframe() argument
56 return user_insn(fnsave %[fx]; fwait, [fx] "=m" (*fx), "m" (*fx)); in fnsave_to_user_sigframe()
59 static inline int fxsave_to_user_sigframe(struct fxregs_state __user *fx) in fxsave_to_user_sigframe() argument
62 return user_insn(fxsave %[fx], [fx] "=m" (*fx), "m" (*fx)); in fxsave_to_user_sigframe()
64 return user_insn(fxsaveq %[fx], [fx] "=m" (*fx), "m" (*fx)); in fxsave_to_user_sigframe()
68 static inline void fxrstor(struct fxregs_state *fx) in fxrstor() argument
71 kernel_insn(fxrstor %[fx], "=m" (*fx), [fx] "m" (*fx)); in fxrstor()
73 kernel_insn(fxrstorq %[fx], "=m" (*fx), [fx] "m" (*fx)); in fxrstor()
76 static inline int fxrstor_safe(struct fxregs_state *fx) in fxrstor_safe() argument
79 return kernel_insn_err(fxrstor %[fx], "=m" (*fx), [fx] "m" (*fx)); in fxrstor_safe()
81 return kernel_insn_err(fxrstorq %[fx], "=m" (*fx), [fx] "m" (*fx)); in fxrstor_safe()
84 static inline int fxrstor_from_user_sigframe(struct fxregs_state __user *fx) in fxrstor_from_user_sigframe() argument
87 return user_insn(fxrstor %[fx], "=m" (*fx), [fx] "m" (*fx)); in fxrstor_from_user_sigframe()
89 return user_insn(fxrstorq %[fx], "=m" (*fx), [fx] "m" (*fx)); in fxrstor_from_user_sigframe()
92 static inline void frstor(struct fregs_state *fx) in frstor() argument
94 kernel_insn(frstor %[fx], "=m" (*fx), [fx] "m" (*fx)); in frstor()
97 static inline int frstor_safe(struct fregs_state *fx) in frstor_safe() argument
99 return kernel_insn_err(frstor %[fx], "=m" (*fx), [fx] "m" (*fx)); in frstor_safe()
102 static inline int frstor_from_user_sigframe(struct fregs_state __user *fx) in frstor_from_user_sigframe() argument
104 return user_insn(frstor %[fx], "=m" (*fx), [fx] "m" (*fx)); in frstor_from_user_sigframe()
107 static inline void fxsave(struct fxregs_state *fx) in fxsave() argument
110 asm volatile( "fxsave %[fx]" : [fx] "=m" (*fx)); in fxsave()
112 asm volatile("fxsaveq %[fx]" : [fx] "=m" (*fx)); in fxsave()