Lines Matching refs:fpstate

481 				       struct fpstate *fpstate)  in validate_user_xstate_header()  argument
484 if (hdr->xfeatures & ~fpstate->user_xfeatures) in validate_user_xstate_header()
999 wrmsrl(MSR_IA32_XFD, current->thread.fpu.fpstate->xfd); in fpu__resume_cpu()
1132 void __copy_xstate_to_uabi_buf(struct membuf to, struct fpstate *fpstate, in __copy_xstate_to_uabi_buf() argument
1137 struct xregs_state *xsave = &fpstate->regs.xsave; in __copy_xstate_to_uabi_buf()
1157 header.xfeatures &= fpstate->user_xfeatures; in __copy_xstate_to_uabi_buf()
1200 mask = fpstate->user_xfeatures; in __copy_xstate_to_uabi_buf()
1251 __copy_xstate_to_uabi_buf(to, tsk->thread.fpu.fpstate, in copy_xstate_to_uabi_buf()
1268 static int copy_uabi_to_xstate(struct fpstate *fpstate, const void *kbuf, in copy_uabi_to_xstate() argument
1271 struct xregs_state *xsave = &fpstate->regs.xsave; in copy_uabi_to_xstate()
1281 if (validate_user_xstate_header(&hdr, fpstate)) in copy_uabi_to_xstate()
1336 int copy_uabi_from_kernel_to_xstate(struct fpstate *fpstate, const void *kbuf) in copy_uabi_from_kernel_to_xstate() argument
1338 return copy_uabi_to_xstate(fpstate, kbuf, NULL); in copy_uabi_from_kernel_to_xstate()
1346 int copy_sigframe_from_user_to_xstate(struct fpstate *fpstate, in copy_sigframe_from_user_to_xstate() argument
1349 return copy_uabi_to_xstate(fpstate, NULL, ubuf); in copy_sigframe_from_user_to_xstate()
1415 void fpstate_clear_xstate_component(struct fpstate *fps, unsigned int xfeature) in fpstate_clear_xstate_component()
1432 static bool xstate_op_valid(struct fpstate *fpstate, u64 mask, bool rstor) in xstate_op_valid() argument
1436 if (fpstate->xfd == xfd) in xstate_op_valid()
1443 if (fpstate->xfd == current->thread.fpu.fpstate->xfd) in xstate_op_valid()
1451 if (fpstate == &init_fpstate) in xstate_op_valid()
1469 mask &= ~fpstate->xfeatures; in xstate_op_valid()
1478 void xfd_validate_state(struct fpstate *fpstate, u64 mask, bool rstor) in xfd_validate_state() argument
1480 WARN_ON_ONCE(!xstate_op_valid(fpstate, mask, rstor)); in xfd_validate_state()
1498 if (fpu->fpstate && fpu->fpstate != &fpu->__fpstate) in arch_initcall()
1499 vfree(fpu->fpstate); in arch_initcall()
1513 static struct fpstate *fpu_install_fpstate(struct fpu *fpu, in fpu_install_fpstate()
1514 struct fpstate *newfps) in fpu_install_fpstate()
1516 struct fpstate *oldfps = fpu->fpstate; in fpu_install_fpstate()
1518 if (fpu->fpstate == newfps) in fpu_install_fpstate()
1521 fpu->fpstate = newfps; in fpu_install_fpstate()
1543 struct fpstate *curfps, *newfps = NULL; in fpstate_realloc()
1546 curfps = fpu->fpstate; in fpstate_realloc()
1547 fpsize = ksize + ALIGN(offsetof(struct fpstate, regs), 64); in fpstate_realloc()