Home
last modified time | relevance | path

Searched refs:boot_cpu_has (Results 1 – 25 of 185) sorted by relevance

12345678

/kernel/linux/linux-5.10/arch/x86/kernel/fpu/
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()
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_FXSR)) in fpregs_set()
[all …]
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_FXSR) ? "FXSAVE" : "FSAVE"); in fpu__init_system_xstate()
[all …]
Dcore.c145 if (likely(kfpu_mask & KFPU_MXCSR) && boot_cpu_has(X86_FEATURE_XMM)) in kernel_fpu_begin_mask()
148 if (unlikely(kfpu_mask & KFPU_387) && boot_cpu_has(X86_FEATURE_FPU)) in kernel_fpu_begin_mask()
352 if (boot_cpu_has(X86_FEATURE_OSPKE)) in copy_init_fpstate_to_fpregs()
458 if (boot_cpu_has(X86_FEATURE_FXSR)) { in fpu__exception_code()
476 if (boot_cpu_has(X86_FEATURE_XMM)) in fpu__exception_code()
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/
Dbugs.c139 if (boot_cpu_has(X86_FEATURE_MSR_SPEC_CTRL)) in check_bugs()
249 if (boot_cpu_has(X86_FEATURE_VIRT_SSBD)) in x86_amd_ssb_disable()
251 else if (boot_cpu_has(X86_FEATURE_LS_CFG_SSBD)) in x86_amd_ssb_disable()
276 if (!boot_cpu_has(X86_FEATURE_MD_CLEAR)) in mds_select_mitigation()
281 if (!boot_cpu_has(X86_BUG_MSBDS_ONLY) && in mds_select_mitigation()
339 if (!boot_cpu_has(X86_FEATURE_RTM)) { in taa_select_mitigation()
357 if (boot_cpu_has(X86_FEATURE_MD_CLEAR)) in taa_select_mitigation()
450 boot_cpu_has(X86_FEATURE_RTM))) in mmio_select_mitigation()
471 (boot_cpu_has(X86_FEATURE_MD_CLEAR) && in mmio_select_mitigation()
472 boot_cpu_has(X86_FEATURE_FLUSH_L1D) && in mmio_select_mitigation()
[all …]
Dhygon.c71 if (boot_cpu_has(X86_FEATURE_TOPOEXT)) { in hygon_get_topology()
234 if (boot_cpu_has(X86_FEATURE_TOPOEXT)) { in bsp_init_hygon()
239 } else if (boot_cpu_has(X86_FEATURE_NODEID_MSR)) { in bsp_init_hygon()
246 if (!boot_cpu_has(X86_FEATURE_AMD_SSBD) && in bsp_init_hygon()
247 !boot_cpu_has(X86_FEATURE_VIRT_SSBD)) { in bsp_init_hygon()
292 if (boot_cpu_has(X86_FEATURE_APIC)) in early_init_hygon()
Daperfmperf.c86 if (!boot_cpu_has(X86_FEATURE_APERFMPERF)) in aperfmperf_get_khz()
105 if (!boot_cpu_has(X86_FEATURE_APERFMPERF)) in arch_freq_prepare_all()
124 if (!boot_cpu_has(X86_FEATURE_APERFMPERF)) in arch_freq_get_on_cpu()
/kernel/linux/linux-5.10/arch/x86/crypto/
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()
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()
Dsha256_ssse3_glue.c133 if (boot_cpu_has(X86_FEATURE_SSSE3)) in register_sha256_ssse3()
141 if (boot_cpu_has(X86_FEATURE_SSSE3)) in unregister_sha256_ssse3()
199 if (boot_cpu_has(X86_FEATURE_AVX)) in avx_usable()
274 if (avx_usable() && boot_cpu_has(X86_FEATURE_AVX2) && in avx2_usable()
275 boot_cpu_has(X86_FEATURE_BMI2)) in avx2_usable()
349 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in register_sha256_ni()
357 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in unregister_sha256_ni()
Dsha512_ssse3_glue.c131 if (boot_cpu_has(X86_FEATURE_SSSE3)) in register_sha512_ssse3()
139 if (boot_cpu_has(X86_FEATURE_SSSE3)) in unregister_sha512_ssse3()
149 if (boot_cpu_has(X86_FEATURE_AVX)) in avx_usable()
273 if (avx_usable() && boot_cpu_has(X86_FEATURE_AVX2) && in avx2_usable()
274 boot_cpu_has(X86_FEATURE_BMI2)) in avx2_usable()
Dpoly1305_glue.c262 if (boot_cpu_has(X86_FEATURE_AVX) && in poly1305_simd_mod_init()
265 if (boot_cpu_has(X86_FEATURE_AVX) && boot_cpu_has(X86_FEATURE_AVX2) && in poly1305_simd_mod_init()
268 if (IS_ENABLED(CONFIG_AS_AVX512) && boot_cpu_has(X86_FEATURE_AVX) && in poly1305_simd_mod_init()
269 boot_cpu_has(X86_FEATURE_AVX2) && boot_cpu_has(X86_FEATURE_AVX512F) && in poly1305_simd_mod_init()
Dchacha_glue.c281 if (!boot_cpu_has(X86_FEATURE_SSSE3)) in chacha_simd_mod_init()
286 if (boot_cpu_has(X86_FEATURE_AVX) && in chacha_simd_mod_init()
287 boot_cpu_has(X86_FEATURE_AVX2) && in chacha_simd_mod_init()
292 boot_cpu_has(X86_FEATURE_AVX512VL) && in chacha_simd_mod_init()
293 boot_cpu_has(X86_FEATURE_AVX512BW)) /* kmovq */ in chacha_simd_mod_init()
302 if (IS_REACHABLE(CONFIG_CRYPTO_SKCIPHER) && boot_cpu_has(X86_FEATURE_SSSE3)) in chacha_simd_mod_fini()
/kernel/linux/linux-5.10/lib/raid6/
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()
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()
Dsse1.c32 return boot_cpu_has(X86_FEATURE_MMX) && in raid6_have_sse1_or_mmxext()
33 (boot_cpu_has(X86_FEATURE_XMM) || in raid6_have_sse1_or_mmxext()
34 boot_cpu_has(X86_FEATURE_MMXEXT)); in raid6_have_sse1_or_mmxext()
/kernel/linux/linux-5.10/arch/x86/kernel/
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_ADJUST) && in check_system_tsc_reliable()
[all …]
/kernel/linux/linux-5.10/arch/x86/include/asm/
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()
Dcpufeature.h138 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) macro
162 #define static_cpu_has(bit) boot_cpu_has(bit)
196 __builtin_constant_p(boot_cpu_has(bit)) ? \
197 boot_cpu_has(bit) : \
211 #define cpu_have_feature boot_cpu_has
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)
Dfsgsbase.h60 if (boot_cpu_has(X86_FEATURE_FSGSBASE)) in x86_fsbase_read_cpu()
70 if (boot_cpu_has(X86_FEATURE_FSGSBASE)) in x86_fsbase_write_cpu()
/kernel/linux/linux-5.10/arch/x86/kernel/apic/
Dapic.c338 else if (boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) in __setup_APIC_LVTT()
587 if (!boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) in apic_validate_deadline_timer()
589 if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) in apic_validate_deadline_timer()
698 if (boot_cpu_has(X86_FEATURE_TSC)) in lapic_cal_handler()
759 if (boot_cpu_has(X86_FEATURE_TSC)) { in calibrate_by_pmtimer()
799 if (!boot_cpu_has(X86_FEATURE_APIC) || disable_apic) in apic_needs_pit()
812 if (!boot_cpu_has(X86_FEATURE_ARAT)) in apic_needs_pit()
816 if (boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) in apic_needs_pit()
838 if (boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) in calibrate_APIC_clock()
937 if (boot_cpu_has(X86_FEATURE_TSC)) { in calibrate_APIC_clock()
[all …]
/kernel/linux/linux-5.10/arch/x86/events/
Dmsr.c22 return boot_cpu_has(X86_FEATURE_APERFMPERF); in test_aperfmperf()
27 return boot_cpu_has(X86_FEATURE_PTSC); in test_ptsc()
32 return boot_cpu_has(X86_FEATURE_IRPERF); in test_irperf()
37 return boot_cpu_has(X86_FEATURE_DTHERM); in test_therm_status()
295 if (!boot_cpu_has(X86_FEATURE_TSC)) { in msr_init()
/kernel/linux/linux-5.10/arch/x86/mm/
Dsetup_nx.c36 if (boot_cpu_has(X86_FEATURE_NX) && !disable_nx) in x86_configure_nx()
44 if (!boot_cpu_has(X86_FEATURE_NX)) { in x86_report_nx()
/kernel/linux/linux-5.10/arch/x86/xen/
Dsuspend.c43 if (xen_pv_domain() && boot_cpu_has(X86_FEATURE_SPEC_CTRL)) in xen_vcpu_notify_restore()
59 if (xen_pv_domain() && boot_cpu_has(X86_FEATURE_SPEC_CTRL)) { in xen_vcpu_notify_suspend()

12345678