Home
last modified time | relevance | path

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

1234567

/Linux-v4.19/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()
214 if (boot_cpu_has(X86_FEATURE_FXSR)) in fpu__init_system_xstate_size_legacy()
Dregset.c27 if (boot_cpu_has(X86_FEATURE_FXSR) && target_fpu->initialized) in regset_xregset_fpregs_active()
39 if (!boot_cpu_has(X86_FEATURE_FXSR)) in xfpregs_get()
56 if (!boot_cpu_has(X86_FEATURE_FXSR)) in xfpregs_set()
74 if (boot_cpu_has(X86_FEATURE_XSAVE)) in xfpregs_set()
88 if (!boot_cpu_has(X86_FEATURE_XSAVE)) in xstateregs_get()
125 if (!boot_cpu_has(X86_FEATURE_XSAVE)) in xstateregs_set()
309 if (!boot_cpu_has(X86_FEATURE_FPU)) in fpregs_get()
312 if (!boot_cpu_has(X86_FEATURE_FXSR)) in fpregs_get()
340 if (!boot_cpu_has(X86_FEATURE_FPU)) in fpregs_set()
343 if (!boot_cpu_has(X86_FEATURE_FXSR)) in fpregs_set()
[all …]
Dxstate.c222 if (!boot_cpu_has(X86_FEATURE_XSAVE) || !xfeatures_mask) in fpu__init_cpu_xstate()
362 if (!boot_cpu_has(X86_FEATURE_XSAVES)) { in setup_xstate_comp()
417 if (!boot_cpu_has(X86_FEATURE_XSAVE)) in setup_init_fpu_buf()
423 if (boot_cpu_has(X86_FEATURE_XSAVES)) in setup_init_fpu_buf()
477 return boot_cpu_has(X86_FEATURE_XSAVES); in using_compacted_format()
680 if (boot_cpu_has(X86_FEATURE_XSAVES)) in init_xstate_size()
728 if (!boot_cpu_has(X86_FEATURE_FPU)) { in fpu__init_system_xstate()
733 if (!boot_cpu_has(X86_FEATURE_XSAVE)) { in fpu__init_system_xstate()
735 boot_cpu_has(X86_FEATURE_FXSR) ? "FXSAVE" : "FSAVE"); in fpu__init_system_xstate()
761 if (!boot_cpu_has(xsave_cpuid_features[i])) in fpu__init_system_xstate()
[all …]
/Linux-v4.19/lib/raid6/
Drecov_avx512.c21 return boot_cpu_has(X86_FEATURE_AVX2) && in raid6_has_avx512()
22 boot_cpu_has(X86_FEATURE_AVX) && in raid6_has_avx512()
23 boot_cpu_has(X86_FEATURE_AVX512F) && in raid6_has_avx512()
24 boot_cpu_has(X86_FEATURE_AVX512BW) && in raid6_has_avx512()
25 boot_cpu_has(X86_FEATURE_AVX512VL) && in raid6_has_avx512()
26 boot_cpu_has(X86_FEATURE_AVX512DQ); in raid6_has_avx512()
Davx512.c41 return boot_cpu_has(X86_FEATURE_AVX2) && in raid6_have_avx512()
42 boot_cpu_has(X86_FEATURE_AVX) && in raid6_have_avx512()
43 boot_cpu_has(X86_FEATURE_AVX512F) && in raid6_have_avx512()
44 boot_cpu_has(X86_FEATURE_AVX512BW) && in raid6_have_avx512()
45 boot_cpu_has(X86_FEATURE_AVX512VL) && in raid6_have_avx512()
46 boot_cpu_has(X86_FEATURE_AVX512DQ); in raid6_have_avx512()
Dsse1.c37 return boot_cpu_has(X86_FEATURE_MMX) && in raid6_have_sse1_or_mmxext()
38 (boot_cpu_has(X86_FEATURE_XMM) || in raid6_have_sse1_or_mmxext()
39 boot_cpu_has(X86_FEATURE_MMXEXT)); in raid6_have_sse1_or_mmxext()
Drecov_ssse3.c17 return boot_cpu_has(X86_FEATURE_XMM) && in raid6_has_ssse3()
18 boot_cpu_has(X86_FEATURE_XMM2) && in raid6_has_ssse3()
19 boot_cpu_has(X86_FEATURE_SSSE3); in raid6_has_ssse3()
Dsse2.c32 return boot_cpu_has(X86_FEATURE_MMX) && in raid6_have_sse2()
33 boot_cpu_has(X86_FEATURE_FXSR) && in raid6_have_sse2()
34 boot_cpu_has(X86_FEATURE_XMM) && in raid6_have_sse2()
35 boot_cpu_has(X86_FEATURE_XMM2); in raid6_have_sse2()
/Linux-v4.19/arch/x86/kernel/cpu/
Dbugs.c78 if (boot_cpu_has(X86_FEATURE_MSR_SPEC_CTRL)) in check_bugs()
82 if (boot_cpu_has(X86_FEATURE_STIBP)) in check_bugs()
216 if (boot_cpu_has(X86_FEATURE_VIRT_SSBD)) in x86_amd_ssb_disable()
218 else if (boot_cpu_has(X86_FEATURE_LS_CFG_SSBD)) in x86_amd_ssb_disable()
347 if (boot_cpu_has(X86_FEATURE_IBRS_ENHANCED)) { in spectre_v2_select_mitigation()
376 if (!boot_cpu_has(X86_FEATURE_LFENCE_RDTSC)) { in spectre_v2_select_mitigation()
407 if (boot_cpu_has(X86_FEATURE_IBPB)) { in spectre_v2_select_mitigation()
423 if (boot_cpu_has(X86_FEATURE_IBRS) && mode != SPECTRE_V2_IBRS_ENHANCED) { in spectre_v2_select_mitigation()
497 if (!boot_cpu_has(X86_FEATURE_SSBD)) in __ssb_select_mitigation()
653 if (boot_cpu_has(X86_FEATURE_MSR_SPEC_CTRL)) in x86_spec_ctrl_setup_ap()
[all …]
/Linux-v4.19/arch/x86/crypto/
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()
167 if (boot_cpu_has(X86_FEATURE_AVX)) in avx_usable()
202 if (avx_usable() && boot_cpu_has(X86_FEATURE_AVX2) in avx2_usable()
203 && boot_cpu_has(X86_FEATURE_BMI1) in avx2_usable()
204 && boot_cpu_has(X86_FEATURE_BMI2)) in avx2_usable()
314 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in register_sha1_ni()
321 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()
200 if (boot_cpu_has(X86_FEATURE_AVX)) in avx_usable()
281 if (avx_usable() && boot_cpu_has(X86_FEATURE_AVX2) && in avx2_usable()
282 boot_cpu_has(X86_FEATURE_BMI2)) in avx2_usable()
361 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in register_sha256_ni()
369 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in unregister_sha256_ni()
Dsha512_ssse3_glue.c133 if (boot_cpu_has(X86_FEATURE_SSSE3)) in register_sha512_ssse3()
141 if (boot_cpu_has(X86_FEATURE_SSSE3)) in unregister_sha512_ssse3()
152 if (boot_cpu_has(X86_FEATURE_AVX)) in avx_usable()
281 if (avx_usable() && boot_cpu_has(X86_FEATURE_AVX2) && in avx2_usable()
282 boot_cpu_has(X86_FEATURE_BMI2)) in avx2_usable()
Dmorus1280-avx2-glue.c42 if (!boot_cpu_has(X86_FEATURE_AVX2) || in crypto_morus1280_avx2_module_init()
43 !boot_cpu_has(X86_FEATURE_OSXSAVE) || in crypto_morus1280_avx2_module_init()
Dchacha20_glue.c123 if (!boot_cpu_has(X86_FEATURE_SSSE3)) in chacha20_simd_mod_init()
127 chacha20_use_avx2 = boot_cpu_has(X86_FEATURE_AVX) && in chacha20_simd_mod_init()
128 boot_cpu_has(X86_FEATURE_AVX2) && in chacha20_simd_mod_init()
Dcamellia_aesni_avx2_glue.c269 if (!boot_cpu_has(X86_FEATURE_AVX) || in camellia_aesni_init()
270 !boot_cpu_has(X86_FEATURE_AVX2) || in camellia_aesni_init()
271 !boot_cpu_has(X86_FEATURE_AES) || in camellia_aesni_init()
272 !boot_cpu_has(X86_FEATURE_OSXSAVE)) { in camellia_aesni_init()
/Linux-v4.19/arch/x86/include/asm/
Dpkeys.h7 #define arch_max_pkey() (boot_cpu_has(X86_FEATURE_OSPKE) ? 16 : 1)
14 return boot_cpu_has(X86_FEATURE_OSPKE); in arch_pkeys_enabled()
24 if (!boot_cpu_has(X86_FEATURE_OSPKE)) in execute_only_pkey()
35 if (!boot_cpu_has(X86_FEATURE_OSPKE)) in arch_override_mprotect_pkey()
Dcpufeature.h129 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) macro
153 #define static_cpu_has(bit) boot_cpu_has(bit)
208 __builtin_constant_p(boot_cpu_has(bit)) ? \
209 boot_cpu_has(bit) : \
223 #define cpu_have_feature boot_cpu_has
Dxor_avx.h170 if (boot_cpu_has(X86_FEATURE_AVX) && boot_cpu_has(X86_FEATURE_OSXSAVE)) \
175 (boot_cpu_has(X86_FEATURE_AVX) && boot_cpu_has(X86_FEATURE_OSXSAVE) ? &xor_block_avx : FASTEST)
/Linux-v4.19/arch/x86/kernel/
Dtsc.c873 if (!boot_cpu_has(X86_FEATURE_TSC)) in recalibrate_cpu_khz()
991 if (!boot_cpu_has(X86_FEATURE_TSC)) in cpufreq_register_tsc_scaling()
993 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) in cpufreq_register_tsc_scaling()
1022 if (boot_cpu_has(X86_FEATURE_HYPERVISOR) || in detect_art()
1023 !boot_cpu_has(X86_FEATURE_NONSTOP_TSC) || in detect_art()
1024 !boot_cpu_has(X86_FEATURE_TSC_ADJUST) || in detect_art()
1158 if (boot_cpu_has(X86_FEATURE_TSC_RELIABLE)) in check_system_tsc_reliable()
1168 if (!boot_cpu_has(X86_FEATURE_TSC) || tsc_unstable) in unsynchronized_tsc()
1176 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) in unsynchronized_tsc()
1334 if (boot_cpu_has(X86_FEATURE_ART)) in tsc_refine_calibration_work()
[all …]
Dtsc_sync.c53 if (!boot_cpu_has(X86_FEATURE_TSC_ADJUST)) in tsc_verify_tsc_adjust()
119 if (!boot_cpu_has(X86_FEATURE_TSC_ADJUST)) in tsc_store_and_check_tsc_adjust()
145 if (!boot_cpu_has(X86_FEATURE_TSC_ADJUST)) in tsc_store_and_check_tsc_adjust()
326 if (!boot_cpu_has(X86_FEATURE_TSC_ADJUST)) in check_tsc_sync_source()
/Linux-v4.19/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()
266 if (!boot_cpu_has(X86_FEATURE_TSC)) { in msr_init()
/Linux-v4.19/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-v4.19/arch/x86/kernel/apic/
Dapic.c330 else if (boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) in __setup_APIC_LVTT()
610 if (!boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER) || in apic_check_deadline_errata()
611 boot_cpu_has(X86_FEATURE_HYPERVISOR)) in apic_check_deadline_errata()
726 if (boot_cpu_has(X86_FEATURE_TSC)) in lapic_cal_handler()
787 if (boot_cpu_has(X86_FEATURE_TSC)) { in calibrate_by_pmtimer()
813 if (boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) { in calibrate_APIC_clock()
883 if (boot_cpu_has(X86_FEATURE_TSC)) { in calibrate_APIC_clock()
1191 if (!boot_cpu_has(X86_FEATURE_APIC) && !apic_from_smp_config()) in lapic_shutdown()
1242 if (!boot_cpu_has(X86_FEATURE_APIC)) { in apic_intr_mode_select()
1251 if (!boot_cpu_has(X86_FEATURE_APIC) && !smp_found_config) { in apic_intr_mode_select()
[all …]
Dapic_noop.c89 WARN_ON_ONCE(boot_cpu_has(X86_FEATURE_APIC) && !disable_apic); in noop_apic_read()
95 WARN_ON_ONCE(boot_cpu_has(X86_FEATURE_APIC) && !disable_apic); in noop_apic_write()
/Linux-v4.19/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()

1234567