Lines Matching refs:xsave
425 xstate_init_xcomp_bv(&init_fpstate.regs.xsave, fpu_kernel_cfg.max_features); in setup_init_fpu_buf()
430 os_xrstor_booting(&init_fpstate.regs.xsave); in setup_init_fpu_buf()
1007 static void *__raw_xsave_addr(struct xregs_state *xsave, int xfeature_nr) in __raw_xsave_addr() argument
1014 return (void *)xsave + xstate_comp_offsets[xfeature_nr]; in __raw_xsave_addr()
1034 void *get_xsave_addr(struct xregs_state *xsave, int xfeature_nr) in get_xsave_addr() argument
1059 if (!(xsave->header.xfeatures & BIT_ULL(xfeature_nr))) in get_xsave_addr()
1062 return __raw_xsave_addr(xsave, xfeature_nr); in get_xsave_addr()
1136 struct xregs_state *xinit = &init_fpstate.regs.xsave; in __copy_xstate_to_uabi_buf()
1137 struct xregs_state *xsave = &fpstate->regs.xsave; in __copy_xstate_to_uabi_buf() local
1144 header.xfeatures = xsave->header.xfeatures; in __copy_xstate_to_uabi_buf()
1162 copy_feature(header.xfeatures & XFEATURE_MASK_FP, &to, &xsave->i387, in __copy_xstate_to_uabi_buf()
1167 &to, &xsave->i387.mxcsr, &xinit->i387.mxcsr, in __copy_xstate_to_uabi_buf()
1172 &to, &xsave->i387.st_space, &xinit->i387.st_space, in __copy_xstate_to_uabi_buf()
1173 sizeof(xsave->i387.st_space)); in __copy_xstate_to_uabi_buf()
1177 &to, &xsave->i387.xmm_space, &xinit->i387.xmm_space, in __copy_xstate_to_uabi_buf()
1178 sizeof(xsave->i387.xmm_space)); in __copy_xstate_to_uabi_buf()
1184 membuf_zero(&to, sizeof(xsave->i387.padding)); in __copy_xstate_to_uabi_buf()
1187 membuf_write(&to, xstate_fx_sw_bytes, sizeof(xsave->i387.sw_reserved)); in __copy_xstate_to_uabi_buf()
1220 __raw_xsave_addr(xsave, i), in __copy_xstate_to_uabi_buf()
1271 struct xregs_state *xsave = &fpstate->regs.xsave; in copy_uabi_to_xstate() local
1299 xsave->i387.mxcsr = mxcsr[0]; in copy_uabi_to_xstate()
1300 xsave->i387.mxcsr_mask = mxcsr[1]; in copy_uabi_to_xstate()
1308 void *dst = __raw_xsave_addr(xsave, i); in copy_uabi_to_xstate()
1322 xsave->header.xfeatures &= XFEATURE_MASK_SUPERVISOR_ALL; in copy_uabi_to_xstate()
1327 xsave->header.xfeatures |= hdr.xfeatures; in copy_uabi_to_xstate()
1417 void *addr = get_xsave_addr(&fps->regs.xsave, xfeature); in fpstate_clear_xstate_component()
1572 xstate_init_xcomp_bv(&newfps->regs.xsave, newfps->xfeatures); in fpstate_realloc()