Home
last modified time | relevance | path

Searched refs:boot_cpu_has (Results 1 - 25 of 374) sorted by relevance

12345678910>>...15

/kernel/linux/linux-5.10/arch/x86/kernel/fpu/
H A Dinit.c21 if (boot_cpu_has(X86_FEATURE_FXSR)) in fpu__init_cpu_generic()
23 if (boot_cpu_has(X86_FEATURE_XMM)) in fpu__init_cpu_generic()
30 if (!boot_cpu_has(X86_FEATURE_FPU)) in fpu__init_cpu_generic()
36 if (!boot_cpu_has(X86_FEATURE_FPU)) in fpu__init_cpu_generic()
72 if (!boot_cpu_has(X86_FEATURE_CPUID) && in fpu__init_system_early_generic()
99 if (boot_cpu_has(X86_FEATURE_FXSR)) { in fpu__init_system_mxcsr()
202 if (!boot_cpu_has(X86_FEATURE_FPU)) { in fpu__init_system_xstate_size_legacy()
205 if (boot_cpu_has(X86_FEATURE_FXSR)) in fpu__init_system_xstate_size_legacy()
H A Dregset.c23 if (boot_cpu_has(X86_FEATURE_FXSR)) in regset_xregset_fpregs_active()
34 if (!boot_cpu_has(X86_FEATURE_FXSR)) in xfpregs_get()
50 if (!boot_cpu_has(X86_FEATURE_FXSR)) in xfpregs_set()
68 if (boot_cpu_has(X86_FEATURE_XSAVE)) in xfpregs_set()
80 if (!boot_cpu_has(X86_FEATURE_XSAVE)) in xstateregs_get()
114 if (!boot_cpu_has(X86_FEATURE_XSAVE)) in xstateregs_set()
296 if (!boot_cpu_has(X86_FEATURE_FPU)) in fpregs_get()
299 if (!boot_cpu_has(X86_FEATURE_FXSR)) { in fpregs_get()
326 if (!boot_cpu_has(X86_FEATURE_FPU)) in fpregs_set()
329 if (!boot_cpu_has(X86_FEATURE_FXS in fpregs_set()
[all...]
H A Dxstate.c214 if (!boot_cpu_has(X86_FEATURE_XSAVE) || !xfeatures_mask_all) in fpu__init_cpu_xstate()
238 if (boot_cpu_has(X86_FEATURE_XSAVES)) { in fpu__init_cpu_xstate()
379 if (!boot_cpu_has(X86_FEATURE_XSAVES)) { in setup_xstate_comp_offsets()
476 if (!boot_cpu_has(X86_FEATURE_XSAVE)) in setup_init_fpu_buf()
482 if (boot_cpu_has(X86_FEATURE_XSAVES)) in setup_init_fpu_buf()
549 return boot_cpu_has(X86_FEATURE_XSAVES); in using_compacted_format()
782 if (boot_cpu_has(X86_FEATURE_XSAVES)) in init_xstate_size()
830 if (!boot_cpu_has(X86_FEATURE_FPU)) { in fpu__init_system_xstate()
835 if (!boot_cpu_has(X86_FEATURE_XSAVE)) { in fpu__init_system_xstate()
837 boot_cpu_has(X86_FEATURE_FXS in fpu__init_system_xstate()
[all...]
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/
H A Dbugs.c222 if (boot_cpu_has(X86_FEATURE_VIRT_SSBD)) in x86_amd_ssb_disable()
224 else if (boot_cpu_has(X86_FEATURE_LS_CFG_SSBD)) in x86_amd_ssb_disable()
249 if (!boot_cpu_has(X86_FEATURE_MD_CLEAR)) in mds_select_mitigation()
254 if (!boot_cpu_has(X86_BUG_MSBDS_ONLY) && in mds_select_mitigation()
312 if (!boot_cpu_has(X86_FEATURE_RTM)) { in taa_select_mitigation()
330 if (boot_cpu_has(X86_FEATURE_MD_CLEAR)) in taa_select_mitigation()
423 boot_cpu_has(X86_FEATURE_RTM))) in mmio_select_mitigation()
430 if (boot_cpu_has(X86_FEATURE_CLEAR_CPU_BUF)) in mmio_select_mitigation()
451 (boot_cpu_has(X86_FEATURE_MD_CLEAR) && in mmio_select_mitigation()
452 boot_cpu_has(X86_FEATURE_FLUSH_L1 in mmio_select_mitigation()
[all...]
H A Dintel.c392 * As a result, boot_cpu_has(X86_FEATURE_PGE) in arch/x86/include/asm/tlbflush.h in early_init_intel()
541 if (boot_cpu_has(X86_FEATURE_APIC) && (c->x86<<8 | c->x86_model<<4) == 0x520 && in intel_workarounds()
656 if (boot_cpu_has(X86_FEATURE_DS)) { in init_intel()
666 if (c->x86 == 6 && boot_cpu_has(X86_FEATURE_CLFLUSH) && in init_intel()
670 if (c->x86 == 6 && boot_cpu_has(X86_FEATURE_MWAIT) && in init_intel()
1078 if (!boot_cpu_has(X86_FEATURE_SPLIT_LOCK_DETECT) && in sld_state_setup()
1079 !boot_cpu_has(X86_FEATURE_BUS_LOCK_DETECT)) in sld_state_setup()
1234 if (!boot_cpu_has(X86_FEATURE_BUS_LOCK_DETECT)) in bus_lock_init()
1239 if ((boot_cpu_has(X86_FEATURE_SPLIT_LOCK_DETECT) && in bus_lock_init()
1299 if (boot_cpu_has(X86_FEATURE_HYPERVISO in split_lock_setup()
[all...]
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/
H A Dbugs.c219 if (boot_cpu_has(X86_FEATURE_VIRT_SSBD)) in x86_amd_ssb_disable()
221 else if (boot_cpu_has(X86_FEATURE_LS_CFG_SSBD)) in x86_amd_ssb_disable()
246 if (!boot_cpu_has(X86_FEATURE_MD_CLEAR)) in mds_select_mitigation()
251 if (!boot_cpu_has(X86_BUG_MSBDS_ONLY) && in mds_select_mitigation()
309 if (!boot_cpu_has(X86_FEATURE_RTM)) { in taa_select_mitigation()
327 if (boot_cpu_has(X86_FEATURE_MD_CLEAR)) in taa_select_mitigation()
420 boot_cpu_has(X86_FEATURE_RTM))) in mmio_select_mitigation()
427 if (boot_cpu_has(X86_FEATURE_CLEAR_CPU_BUF)) in mmio_select_mitigation()
448 (boot_cpu_has(X86_FEATURE_MD_CLEAR) && in mmio_select_mitigation()
449 boot_cpu_has(X86_FEATURE_FLUSH_L1 in mmio_select_mitigation()
[all...]
H A Dhygon.c71 if (boot_cpu_has(X86_FEATURE_TOPOEXT)) { in hygon_get_topology()
96 if (!boot_cpu_has(X86_FEATURE_HYPERVISOR) && c->x86_model <= 0x3) in hygon_get_topology()
238 if (boot_cpu_has(X86_FEATURE_TOPOEXT)) { in bsp_init_hygon()
243 } else if (boot_cpu_has(X86_FEATURE_NODEID_MSR)) { in bsp_init_hygon()
250 if (!boot_cpu_has(X86_FEATURE_AMD_SSBD) && in bsp_init_hygon()
251 !boot_cpu_has(X86_FEATURE_VIRT_SSBD)) { in bsp_init_hygon()
296 if (boot_cpu_has(X86_FEATURE_APIC)) in early_init_hygon()
/kernel/linux/linux-5.10/arch/x86/crypto/
H A Dblake2s-glue.c61 if (boot_cpu_has(X86_FEATURE_SSSE3)) in blake2s_mod_init()
65 boot_cpu_has(X86_FEATURE_AVX) && in blake2s_mod_init()
66 boot_cpu_has(X86_FEATURE_AVX2) && in blake2s_mod_init()
67 boot_cpu_has(X86_FEATURE_AVX512F) && in blake2s_mod_init()
68 boot_cpu_has(X86_FEATURE_AVX512VL) && in blake2s_mod_init()
H A Dsha1_ssse3_glue.c105 if (boot_cpu_has(X86_FEATURE_SSSE3)) in register_sha1_ssse3()
112 if (boot_cpu_has(X86_FEATURE_SSSE3)) in unregister_sha1_ssse3()
155 if (boot_cpu_has(X86_FEATURE_AVX)) in avx_usable()
183 if (avx_usable() && boot_cpu_has(X86_FEATURE_AVX2) in avx2_usable()
184 && boot_cpu_has(X86_FEATURE_BMI1) in avx2_usable()
185 && boot_cpu_has(X86_FEATURE_BMI2)) in avx2_usable()
286 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in register_sha1_ni()
293 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in unregister_sha1_ni()
/kernel/linux/linux-6.6/arch/x86/crypto/
H A Dblake2s-glue.c59 if (boot_cpu_has(X86_FEATURE_SSSE3)) in blake2s_mod_init()
63 boot_cpu_has(X86_FEATURE_AVX) && in blake2s_mod_init()
64 boot_cpu_has(X86_FEATURE_AVX2) && in blake2s_mod_init()
65 boot_cpu_has(X86_FEATURE_AVX512F) && in blake2s_mod_init()
66 boot_cpu_has(X86_FEATURE_AVX512VL) && in blake2s_mod_init()
H A Dsha1_ssse3_glue.c114 if (boot_cpu_has(X86_FEATURE_SSSE3)) in register_sha1_ssse3()
121 if (boot_cpu_has(X86_FEATURE_SSSE3)) in unregister_sha1_ssse3()
164 if (boot_cpu_has(X86_FEATURE_AVX)) in avx_usable()
192 if (avx_usable() && boot_cpu_has(X86_FEATURE_AVX2) in avx2_usable()
193 && boot_cpu_has(X86_FEATURE_BMI1) in avx2_usable()
194 && boot_cpu_has(X86_FEATURE_BMI2)) in avx2_usable()
295 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in register_sha1_ni()
302 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in unregister_sha1_ni()
H A Daria_gfni_avx512_glue.c206 if (!boot_cpu_has(X86_FEATURE_AVX) || in aria_avx512_init()
207 !boot_cpu_has(X86_FEATURE_AVX2) || in aria_avx512_init()
208 !boot_cpu_has(X86_FEATURE_AVX512F) || in aria_avx512_init()
209 !boot_cpu_has(X86_FEATURE_AVX512VL) || in aria_avx512_init()
210 !boot_cpu_has(X86_FEATURE_GFNI) || in aria_avx512_init()
211 !boot_cpu_has(X86_FEATURE_OSXSAVE)) { in aria_avx512_init()
H A Dcamellia_aesni_avx2_glue.c107 if (!boot_cpu_has(X86_FEATURE_AVX) || in camellia_aesni_init()
108 !boot_cpu_has(X86_FEATURE_AVX2) || in camellia_aesni_init()
109 !boot_cpu_has(X86_FEATURE_AES) || in camellia_aesni_init()
110 !boot_cpu_has(X86_FEATURE_OSXSAVE)) { in camellia_aesni_init()
H A Dsm4_aesni_avx2_glue.c136 if (!boot_cpu_has(X86_FEATURE_AVX) || in sm4_init()
137 !boot_cpu_has(X86_FEATURE_AVX2) || in sm4_init()
138 !boot_cpu_has(X86_FEATURE_AES) || in sm4_init()
139 !boot_cpu_has(X86_FEATURE_OSXSAVE)) { in sm4_init()
/kernel/linux/linux-5.10/lib/raid6/
H A Drecov_avx512.c16 return boot_cpu_has(X86_FEATURE_AVX2) && in raid6_has_avx512()
17 boot_cpu_has(X86_FEATURE_AVX) && in raid6_has_avx512()
18 boot_cpu_has(X86_FEATURE_AVX512F) && in raid6_has_avx512()
19 boot_cpu_has(X86_FEATURE_AVX512BW) && in raid6_has_avx512()
20 boot_cpu_has(X86_FEATURE_AVX512VL) && in raid6_has_avx512()
21 boot_cpu_has(X86_FEATURE_AVX512DQ); in raid6_has_avx512()
H A Davx512.c36 return boot_cpu_has(X86_FEATURE_AVX2) && in raid6_have_avx512()
37 boot_cpu_has(X86_FEATURE_AVX) && in raid6_have_avx512()
38 boot_cpu_has(X86_FEATURE_AVX512F) && in raid6_have_avx512()
39 boot_cpu_has(X86_FEATURE_AVX512BW) && in raid6_have_avx512()
40 boot_cpu_has(X86_FEATURE_AVX512VL) && in raid6_have_avx512()
41 boot_cpu_has(X86_FEATURE_AVX512DQ); in raid6_have_avx512()
/kernel/linux/linux-6.6/arch/x86/kernel/fpu/
H A Dinit.c25 if (boot_cpu_has(X86_FEATURE_FXSR)) in fpu__init_cpu_generic()
27 if (boot_cpu_has(X86_FEATURE_XMM)) in fpu__init_cpu_generic()
34 if (!boot_cpu_has(X86_FEATURE_FPU)) in fpu__init_cpu_generic()
40 if (!boot_cpu_has(X86_FEATURE_FPU)) in fpu__init_cpu_generic()
76 if (!boot_cpu_has(X86_FEATURE_CPUID) && in fpu__init_system_early_generic()
103 if (boot_cpu_has(X86_FEATURE_FXSR)) { in fpu__init_system_mxcsr()
/kernel/linux/linux-6.6/lib/raid6/
H A Drecov_avx512.c16 return boot_cpu_has(X86_FEATURE_AVX2) && in raid6_has_avx512()
17 boot_cpu_has(X86_FEATURE_AVX) && in raid6_has_avx512()
18 boot_cpu_has(X86_FEATURE_AVX512F) && in raid6_has_avx512()
19 boot_cpu_has(X86_FEATURE_AVX512BW) && in raid6_has_avx512()
20 boot_cpu_has(X86_FEATURE_AVX512VL) && in raid6_has_avx512()
21 boot_cpu_has(X86_FEATURE_AVX512DQ); in raid6_has_avx512()
H A Davx512.c36 return boot_cpu_has(X86_FEATURE_AVX2) && in raid6_have_avx512()
37 boot_cpu_has(X86_FEATURE_AVX) && in raid6_have_avx512()
38 boot_cpu_has(X86_FEATURE_AVX512F) && in raid6_have_avx512()
39 boot_cpu_has(X86_FEATURE_AVX512BW) && in raid6_have_avx512()
40 boot_cpu_has(X86_FEATURE_AVX512VL) && in raid6_have_avx512()
41 boot_cpu_has(X86_FEATURE_AVX512DQ); in raid6_have_avx512()
/kernel/linux/linux-5.10/arch/x86/include/asm/
H A Dpkeys.h12 #define arch_max_pkey() (boot_cpu_has(X86_FEATURE_OSPKE) ? 16 : 1)
19 return boot_cpu_has(X86_FEATURE_OSPKE); in arch_pkeys_enabled()
29 if (!boot_cpu_has(X86_FEATURE_OSPKE)) in execute_only_pkey()
40 if (!boot_cpu_has(X86_FEATURE_OSPKE)) in arch_override_mprotect_pkey()
H A Dxor_avx.h164 if (boot_cpu_has(X86_FEATURE_AVX) && boot_cpu_has(X86_FEATURE_OSXSAVE)) \
169 (boot_cpu_has(X86_FEATURE_AVX) && boot_cpu_has(X86_FEATURE_OSXSAVE) ? &xor_block_avx : FASTEST)
/kernel/linux/linux-6.6/arch/um/include/asm/
H A Dcpufeature.h55 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) macro
69 * Static testing of CPU features. Used the same as boot_cpu_has(). It
72 * means that the boot_cpu_has() variant is already fast enough for the
122 __builtin_constant_p(boot_cpu_has(bit)) ? \
123 boot_cpu_has(bit) : \
135 #define cpu_have_feature boot_cpu_has
/kernel/linux/linux-5.10/arch/x86/kernel/
H A Dtsc.c901 if (!boot_cpu_has(X86_FEATURE_TSC)) in recalibrate_cpu_khz()
1019 if (!boot_cpu_has(X86_FEATURE_TSC)) in cpufreq_register_tsc_scaling()
1021 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) in cpufreq_register_tsc_scaling()
1050 if (boot_cpu_has(X86_FEATURE_HYPERVISOR) || in detect_art()
1051 !boot_cpu_has(X86_FEATURE_NONSTOP_TSC) || in detect_art()
1052 !boot_cpu_has(X86_FEATURE_TSC_ADJUST) || in detect_art()
1202 if (boot_cpu_has(X86_FEATURE_TSC_RELIABLE)) in check_system_tsc_reliable()
1216 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC) && in check_system_tsc_reliable()
1217 boot_cpu_has(X86_FEATURE_NONSTOP_TSC) && in check_system_tsc_reliable()
1218 boot_cpu_has(X86_FEATURE_TSC_ADJUS in check_system_tsc_reliable()
[all...]
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Dtsc.c938 if (!boot_cpu_has(X86_FEATURE_TSC)) in recalibrate_cpu_khz()
1055 if (!boot_cpu_has(X86_FEATURE_TSC)) in cpufreq_register_tsc_scaling()
1057 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) in cpufreq_register_tsc_scaling()
1086 if (boot_cpu_has(X86_FEATURE_HYPERVISOR) || in detect_art()
1087 !boot_cpu_has(X86_FEATURE_NONSTOP_TSC) || in detect_art()
1088 !boot_cpu_has(X86_FEATURE_TSC_ADJUST) || in detect_art()
1244 if (boot_cpu_has(X86_FEATURE_TSC_RELIABLE)) in check_system_tsc_reliable()
1258 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC) && in check_system_tsc_reliable()
1259 boot_cpu_has(X86_FEATURE_NONSTOP_TSC) && in check_system_tsc_reliable()
1260 boot_cpu_has(X86_FEATURE_TSC_ADJUS in check_system_tsc_reliable()
[all...]
/kernel/linux/linux-6.6/arch/x86/include/asm/
H A Dxor_avx.h171 if (boot_cpu_has(X86_FEATURE_AVX) && boot_cpu_has(X86_FEATURE_OSXSAVE)) \
176 (boot_cpu_has(X86_FEATURE_AVX) && boot_cpu_has(X86_FEATURE_OSXSAVE) ? &xor_block_avx : FASTEST)

Completed in 24 milliseconds

12345678910>>...15