Lines Matching refs:max_features
100 u64 xfeatures_missing = xfeatures_needed & ~fpu_kernel_cfg.max_features; in cpu_has_xfeatures()
175 if (!boot_cpu_has(X86_FEATURE_XSAVE) || !fpu_kernel_cfg.max_features) in fpu__init_cpu_xstate()
195 xsetbv(XCR_XFEATURE_ENABLED_MASK, fpu_user_cfg.max_features); in fpu__init_cpu_xstate()
208 return fpu_kernel_cfg.max_features & BIT_ULL(xfeature); in xfeature_enabled()
234 for_each_extended_xfeature(i, fpu_kernel_cfg.max_features) { in setup_xstate_cache()
305 for_each_extended_xfeature(i, fpu_kernel_cfg.max_features) { in print_xstate_offset_size()
307 i, xfeature_get_offset(fpu_kernel_cfg.max_features, i), in print_xstate_offset_size()
318 u64 mask = fpu_kernel_cfg.max_features & XFEATURE_MASK_FPSTATE; in os_xrstor_booting()
592 for_each_extended_xfeature(i, fpu_kernel_cfg.max_features) { in paranoid_xstate_size_valid()
604 size = xstate_calculate_size(fpu_kernel_cfg.max_features, compacted); in paranoid_xstate_size_valid()
725 fpu_kernel_cfg.max_features = 0; in fpu__init_disable_system_xstate()
775 fpu_kernel_cfg.max_features = eax + ((u64)edx << 32); in fpu__init_system_xstate()
781 fpu_kernel_cfg.max_features |= ecx + ((u64)edx << 32); in fpu__init_system_xstate()
783 if ((fpu_kernel_cfg.max_features & XFEATURE_MASK_FPSSE) != XFEATURE_MASK_FPSSE) { in fpu__init_system_xstate()
790 fpu_kernel_cfg.max_features); in fpu__init_system_xstate()
794 fpu_kernel_cfg.independent_features = fpu_kernel_cfg.max_features & in fpu__init_system_xstate()
805 fpu_kernel_cfg.max_features &= ~BIT_ULL(i); in fpu__init_system_xstate()
809 fpu_kernel_cfg.max_features &= ~XFEATURE_MASK_USER_DYNAMIC; in fpu__init_system_xstate()
812 fpu_kernel_cfg.max_features &= XFEATURE_MASK_USER_SUPPORTED; in fpu__init_system_xstate()
814 fpu_kernel_cfg.max_features &= XFEATURE_MASK_USER_SUPPORTED | in fpu__init_system_xstate()
817 fpu_user_cfg.max_features = fpu_kernel_cfg.max_features; in fpu__init_system_xstate()
818 fpu_user_cfg.max_features &= XFEATURE_MASK_USER_SUPPORTED; in fpu__init_system_xstate()
821 fpu_kernel_cfg.default_features = fpu_kernel_cfg.max_features; in fpu__init_system_xstate()
824 fpu_user_cfg.default_features = fpu_user_cfg.max_features; in fpu__init_system_xstate()
828 xfeatures = fpu_kernel_cfg.max_features; in fpu__init_system_xstate()
836 init_fpstate.xfd = fpu_user_cfg.max_features & XFEATURE_MASK_USER_DYNAMIC; in fpu__init_system_xstate()
861 fpu_user_cfg.max_features); in fpu__init_system_xstate()
882 if (xfeatures != fpu_kernel_cfg.max_features) { in fpu__init_system_xstate()
884 xfeatures, fpu_kernel_cfg.max_features); in fpu__init_system_xstate()
897 fpu_kernel_cfg.max_features, in fpu__init_system_xstate()
916 xsetbv(XCR_XFEATURE_ENABLED_MASK, fpu_user_cfg.max_features); in fpu__resume_cpu()
1675 if ((fpu_user_cfg.max_features & requested) != requested) in xstate_request_perm()
1784 supported = fpu_user_cfg.max_features | fpu_user_cfg.legacy_features; in fpu_xstate_prctl()
1872 for_each_extended_xfeature(i, fpu_user_cfg.max_features) { in dump_xsave_layout_desc()
1894 for_each_extended_xfeature(i, fpu_user_cfg.max_features) in get_xsave_desc_size()
1905 if (!fpu_user_cfg.max_features) in elf_coredump_extra_notes_write()
1934 if (!fpu_user_cfg.max_features) in elf_coredump_extra_notes_size()