Home
last modified time | relevance | path

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

12345678

/Linux-v5.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()
205 if (!boot_cpu_has(X86_FEATURE_FPU)) { in fpu__init_system_xstate_size_legacy()
208 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()
453 if (!boot_cpu_has(X86_FEATURE_XSAVE)) in setup_init_fpu_buf()
459 if (boot_cpu_has(X86_FEATURE_XSAVES)) in setup_init_fpu_buf()
514 return boot_cpu_has(X86_FEATURE_XSAVES); in using_compacted_format()
747 if (boot_cpu_has(X86_FEATURE_XSAVES)) in init_xstate_size()
795 if (!boot_cpu_has(X86_FEATURE_FPU)) { in fpu__init_system_xstate()
800 if (!boot_cpu_has(X86_FEATURE_XSAVE)) { in fpu__init_system_xstate()
802 boot_cpu_has(X86_FEATURE_FXSR) ? "FXSAVE" : "FSAVE"); in fpu__init_system_xstate()
[all …]
Dcore.c144 if (boot_cpu_has(X86_FEATURE_XMM)) in kernel_fpu_begin()
147 if (boot_cpu_has(X86_FEATURE_FPU)) in kernel_fpu_begin()
351 if (boot_cpu_has(X86_FEATURE_OSPKE)) in copy_init_fpstate_to_fpregs()
457 if (boot_cpu_has(X86_FEATURE_FXSR)) { in fpu__exception_code()
475 if (boot_cpu_has(X86_FEATURE_XMM)) in fpu__exception_code()
/Linux-v5.10/arch/x86/kernel/cpu/
Dbugs.c99 if (boot_cpu_has(X86_FEATURE_MSR_SPEC_CTRL)) in check_bugs()
103 if (boot_cpu_has(X86_FEATURE_STIBP)) in check_bugs()
222 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()
320 if (!boot_cpu_has(X86_FEATURE_RTM)) { in taa_select_mitigation()
338 if (boot_cpu_has(X86_FEATURE_MD_CLEAR)) in taa_select_mitigation()
433 if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) in update_srbds_msr()
468 if ((ia32_cap & ARCH_CAP_MDS_NO) && !boot_cpu_has(X86_FEATURE_RTM)) in srbds_select_mitigation()
[all …]
Dhygon.c72 if (boot_cpu_has(X86_FEATURE_TOPOEXT)) { in hygon_get_topology()
235 if (boot_cpu_has(X86_FEATURE_TOPOEXT)) { in bsp_init_hygon()
240 } else if (boot_cpu_has(X86_FEATURE_NODEID_MSR)) { in bsp_init_hygon()
247 if (!boot_cpu_has(X86_FEATURE_AMD_SSBD) && in bsp_init_hygon()
248 !boot_cpu_has(X86_FEATURE_VIRT_SSBD)) { in bsp_init_hygon()
293 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()
/Linux-v5.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()
/Linux-v5.10/arch/x86/crypto/
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()
Dblake2s-glue.c196 if (!boot_cpu_has(X86_FEATURE_SSSE3)) in blake2s_mod_init()
202 boot_cpu_has(X86_FEATURE_AVX) && in blake2s_mod_init()
203 boot_cpu_has(X86_FEATURE_AVX2) && in blake2s_mod_init()
204 boot_cpu_has(X86_FEATURE_AVX512F) && in blake2s_mod_init()
205 boot_cpu_has(X86_FEATURE_AVX512VL) && in blake2s_mod_init()
217 if (IS_REACHABLE(CONFIG_CRYPTO_HASH) && boot_cpu_has(X86_FEATURE_SSSE3)) in blake2s_mod_exit()
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()
/Linux-v5.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.h137 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) macro
161 #define static_cpu_has(bit) boot_cpu_has(bit)
219 __builtin_constant_p(boot_cpu_has(bit)) ? \
220 boot_cpu_has(bit) : \
234 #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()
/Linux-v5.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()
1194 if (boot_cpu_has(X86_FEATURE_TSC_RELIABLE)) in check_system_tsc_reliable()
1204 if (!boot_cpu_has(X86_FEATURE_TSC) || tsc_unstable) in unsynchronized_tsc()
1212 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) in unsynchronized_tsc()
1371 if (boot_cpu_has(X86_FEATURE_ART)) in tsc_refine_calibration_work()
[all …]
/Linux-v5.10/arch/x86/kernel/apic/
Dapic.c337 else if (boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) in __setup_APIC_LVTT()
583 if (!boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) in apic_validate_deadline_timer()
585 if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) in apic_validate_deadline_timer()
694 if (boot_cpu_has(X86_FEATURE_TSC)) in lapic_cal_handler()
755 if (boot_cpu_has(X86_FEATURE_TSC)) { in calibrate_by_pmtimer()
795 if (!boot_cpu_has(X86_FEATURE_APIC) || disable_apic) in apic_needs_pit()
808 if (!boot_cpu_has(X86_FEATURE_ARAT)) in apic_needs_pit()
812 if (boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) in apic_needs_pit()
834 if (boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) in calibrate_APIC_clock()
933 if (boot_cpu_has(X86_FEATURE_TSC)) { in calibrate_APIC_clock()
[all …]
/Linux-v5.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()
294 if (!boot_cpu_has(X86_FEATURE_TSC)) { in msr_init()
/Linux-v5.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()
/Linux-v5.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