Lines Matching refs:xfeatures

363 	xstate_init_xcomp_bv(&init_fpstate.regs.xsave, init_fpstate.xfeatures);  in setup_init_fpu_buf()
403 if (hdr->xfeatures & ~fpstate->user_xfeatures) in validate_user_xstate_header()
563 static unsigned int xstate_calculate_size(u64 xfeatures, bool compacted) in xstate_calculate_size() argument
565 unsigned int topmost = fls64(xfeatures) - 1; in xstate_calculate_size()
572 offset = xfeature_get_offset(xfeatures, topmost); in xstate_calculate_size()
751 u64 xfeatures; in fpu__init_system_xstate() local
825 xfeatures = fpu_kernel_cfg.max_features; in fpu__init_system_xstate()
865 init_fpstate.xfeatures = fpu_kernel_cfg.default_features; in fpu__init_system_xstate()
879 if (xfeatures != fpu_kernel_cfg.max_features) { in fpu__init_system_xstate()
881 xfeatures, fpu_kernel_cfg.max_features); in fpu__init_system_xstate()
985 if (!(xsave->header.xfeatures & BIT_ULL(xfeature_nr))) in get_xsave_addr()
1070 header.xfeatures = xsave->header.xfeatures; in __copy_xstate_to_uabi_buf()
1075 header.xfeatures &= XFEATURE_MASK_FP; in __copy_xstate_to_uabi_buf()
1079 header.xfeatures &= XFEATURE_MASK_FP | XFEATURE_MASK_SSE; in __copy_xstate_to_uabi_buf()
1083 header.xfeatures &= fpstate->user_xfeatures; in __copy_xstate_to_uabi_buf()
1088 copy_feature(header.xfeatures & XFEATURE_MASK_FP, &to, &xsave->i387, in __copy_xstate_to_uabi_buf()
1092 copy_feature(header.xfeatures & (XFEATURE_MASK_SSE | XFEATURE_MASK_YMM), in __copy_xstate_to_uabi_buf()
1097 copy_feature(header.xfeatures & XFEATURE_MASK_FP, in __copy_xstate_to_uabi_buf()
1102 copy_feature(header.xfeatures & XFEATURE_MASK_SSE, in __copy_xstate_to_uabi_buf()
1135 mask &= (header.xfeatures | xinit->header.xcomp_bv); in __copy_xstate_to_uabi_buf()
1154 copy_feature(header.xfeatures & BIT_ULL(i), &to, in __copy_xstate_to_uabi_buf()
1249 if (hdr.xfeatures & mask) { in copy_uabi_to_xstate()
1261 if (!(hdr.xfeatures & XFEATURE_MASK_FP)) { in copy_uabi_to_xstate()
1270 if (hdr.xfeatures & mask) { in copy_uabi_to_xstate()
1281 if (hdr.xfeatures & XFEATURE_MASK_PKRU) { in copy_uabi_to_xstate()
1299 xsave->header.xfeatures &= XFEATURE_MASK_SUPERVISOR_ALL; in copy_uabi_to_xstate()
1304 xsave->header.xfeatures |= hdr.xfeatures; in copy_uabi_to_xstate()
1446 mask &= ~fpstate->xfeatures; in xstate_op_valid()
1494 static int fpstate_realloc(u64 xfeatures, unsigned int ksize, in fpstate_realloc() argument
1524 guest_fpu->xfeatures |= xfeatures; in fpstate_realloc()
1537 newfps->xfeatures = curfps->xfeatures | xfeatures; in fpstate_realloc()
1540 newfps->user_xfeatures = curfps->user_xfeatures | xfeatures; in fpstate_realloc()
1542 newfps->xfd = curfps->xfd & ~xfeatures; in fpstate_realloc()
1545 xstate_init_xcomp_bv(&newfps->regs.xsave, newfps->xfeatures); in fpstate_realloc()