Lines Matching refs:buf_fx
157 int copy_fpstate_to_sigframe(void __user *buf, void __user *buf_fx, int size) in copy_fpstate_to_sigframe() argument
162 int ia32_fxstate = (buf != buf_fx); in copy_fpstate_to_sigframe()
177 if (copy_fpregs_to_sigframe(buf_fx)) in copy_fpstate_to_sigframe()
195 if (__copy_to_user(buf_fx, xsave, fpu_user_xstate_size)) in copy_fpstate_to_sigframe()
203 if (use_fxsr() && save_xstate_epilog(buf_fx, ia32_fxstate)) in copy_fpstate_to_sigframe()
267 static int __fpu__restore_sig(void __user *buf, void __user *buf_fx, int size) in __fpu__restore_sig() argument
269 int ia32_fxstate = (buf != buf_fx); in __fpu__restore_sig()
296 if (unlikely(check_for_xstate(buf_fx, buf_fx, &fx_sw_user))) { in __fpu__restore_sig()
331 err = copy_user_to_xstate(&fpu->state.xsave, buf_fx); in __fpu__restore_sig()
333 err = __copy_from_user(&fpu->state.xsave, buf_fx, state_size); in __fpu__restore_sig()
359 if (copy_user_to_fpregs_zeroing(buf_fx, xfeatures, fx_only)) { in __fpu__restore_sig()
379 void __user *buf_fx = buf; in fpu__restore_sig() local
383 buf_fx = buf + sizeof(struct fregs_state); in fpu__restore_sig()
387 return __fpu__restore_sig(buf, buf_fx, size); in fpu__restore_sig()
392 unsigned long *buf_fx, unsigned long *size) in fpu__alloc_mathframe() argument
396 *buf_fx = sp = round_down(sp - frame_size, 64); in fpu__alloc_mathframe()