Lines Matching refs:xsave
1021 void (*xsavep)(struct xsave_state *, uint64_t) = xsave;
2029 fpu_xsave_to_fxsave(const struct xsave_state *xsave, struct fxsave_state *fx) in fpu_xsave_to_fxsave() argument
2031 const uint64_t comps = xsave->xs_header.xsh_xstate_bv; in fpu_xsave_to_fxsave()
2035 bcopy(xsave, fx, sizeof (*fx)); in fpu_xsave_to_fxsave()
2038 bcopy(xsave, fx, offsetof(struct fxsave_state, fx_xmm)); in fpu_xsave_to_fxsave()
2047 fx->fx_mxcsr = xsave->xs_fxsave.fx_mxcsr; in fpu_xsave_to_fxsave()
2048 fx->fx_mxcsr_mask = xsave->xs_fxsave.fx_mxcsr_mask; in fpu_xsave_to_fxsave()
2049 bcopy(xsave->xs_fxsave.fx_xmm, fx->fx_xmm, sizeof (fx->fx_xmm)); in fpu_xsave_to_fxsave()
2060 if ((xsave->xs_header.xsh_xstate_bv & XFEATURE_AVX) != 0 && in fpu_xsave_to_fxsave()
2061 (xsave->xs_header.xsh_xstate_bv & XFEATURE_SSE) == 0) { in fpu_xsave_to_fxsave()
2062 fx->fx_mxcsr = xsave->xs_fxsave.fx_mxcsr; in fpu_xsave_to_fxsave()
2063 fx->fx_mxcsr_mask = xsave->xs_fxsave.fx_mxcsr_mask; in fpu_xsave_to_fxsave()
2170 const struct xsave_state *xsave = fpu->fpu_regs.kfpu_u.kfpu_xs; in fpu_proc_xregs_xsave_fill() local
2194 fpu_xsave_to_fxsave(xsave, (struct fxsave_state *)prxsave); in fpu_proc_xregs_xsave_fill()
2201 bcopy((const void *)((uintptr_t)xsave + hdr_off), in fpu_proc_xregs_xsave_fill()
2247 const prxregset_xsave_t *xsave = datap; in fpu_proc_xregs_xsave_valid() local
2250 if (bcmp(rsvd, xsave->prx_xsh_reserved, sizeof (rsvd)) != 0 || in fpu_proc_xregs_xsave_valid()
2251 xsave->prx_xsh_xcomp_bv != 0) { in fpu_proc_xregs_xsave_valid()
2255 if ((xsave->prx_xsh_xstate_bv & ~xsave_bv_all) != 0) { in fpu_proc_xregs_xsave_valid()
2389 struct xsave_state *xsave = fpup; in fpu_signal_copyin_xmm() local
2396 bcopy(&kuc->uc_mcontext.fpregs, &xsave->xs_fxsave, in fpu_signal_copyin_xmm()
2398 xsave->xs_fxsave.__fx_ign2[3]._l[0] = in fpu_signal_copyin_xmm()
2400 xsave->xs_fxsave.__fx_ign2[3]._l[1] = in fpu_signal_copyin_xmm()
2402 xsave->xs_fxsave.fx_mxcsr &= sse_mxcsr_mask; in fpu_signal_copyin_xmm()
2403 xsave->xs_header.xsh_xstate_bv |= info->xi_bits; in fpu_signal_copyin_xmm()
2416 struct xsave_state *xsave = fpup; in fpu_signal_copyin_std() local
2428 xsave->xs_header.xsh_xstate_bv |= info->xi_bits; in fpu_signal_copyin_std()
2729 const prxregset_xsave_t *xsave = NULL; in fpu_proc_xregs_set() local
2766 xsave = data; in fpu_proc_xregs_set()
2780 if (xsave == NULL) { in fpu_proc_xregs_set()
2789 if ((xsave->prx_xsh_xstate_bv & ~bv_found) != 0) { in fpu_proc_xregs_set()
2846 (xsave->prx_xsh_xstate_bv & in fpu_proc_xregs_set()
2854 xsave->prx_xsh_xstate_bv, data); in fpu_proc_xregs_set()