| /linux/arch/x86/kernel/cpu/ |
| A D | bugs.c | 316 if (!boot_cpu_has(X86_FEATURE_RTM)) { in taa_select_mitigation() 334 if (boot_cpu_has(X86_FEATURE_MD_CLEAR)) in taa_select_mitigation() 889 if (!boot_cpu_has(X86_FEATURE_SMAP)) in smap_works_speculatively() 935 !boot_cpu_has(X86_FEATURE_PTI)) in spectre_v1_select_mitigation() 1089 boot_cpu_has(X86_FEATURE_IBPB)) in retbleed_select_mitigation() 1338 if (!boot_cpu_has(X86_FEATURE_IBPB) && !boot_cpu_has(X86_FEATURE_STIBP)) in spectre_v2_user_select_mitigation() 1814 if (boot_cpu_has(X86_BUG_BHI)) in spectre_v2_select_mitigation() 2081 if (!boot_cpu_has(X86_FEATURE_SSBD)) in __ssb_select_mitigation() 2580 if (boot_cpu_has(X86_FEATURE_SBPB)) in srso_select_mitigation() 2723 !boot_cpu_has(X86_FEATURE_VMX)) in itlb_multihit_show_state() [all …]
|
| A D | intel.c | 573 if (boot_cpu_has(X86_FEATURE_DS)) { in init_intel() 583 if (boot_cpu_has(X86_FEATURE_CLFLUSH) && in init_intel() 995 if (!boot_cpu_has(X86_FEATURE_SPLIT_LOCK_DETECT) && in sld_state_setup() 996 !boot_cpu_has(X86_FEATURE_BUS_LOCK_DETECT)) in sld_state_setup() 1151 if (!boot_cpu_has(X86_FEATURE_BUS_LOCK_DETECT)) in bus_lock_init() 1156 if ((boot_cpu_has(X86_FEATURE_SPLIT_LOCK_DETECT) && in bus_lock_init() 1216 if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) in split_lock_setup() 1246 if (!boot_cpu_has(X86_FEATURE_BUS_LOCK_DETECT) && in sld_state_show() 1247 !boot_cpu_has(X86_FEATURE_SPLIT_LOCK_DETECT)) in sld_state_show() 1269 boot_cpu_has(X86_FEATURE_SPLIT_LOCK_DETECT) ? in sld_state_show() [all …]
|
| A D | tsx.c | 116 if (boot_cpu_has(X86_FEATURE_RTM_ALWAYS_ABORT) && in tsx_clear_cpuid() 117 boot_cpu_has(X86_FEATURE_TSX_FORCE_ABORT)) { in tsx_clear_cpuid() 170 if (boot_cpu_has(X86_FEATURE_RTM_ALWAYS_ABORT)) { in tsx_init()
|
| A D | amd.c | 403 if (!boot_cpu_has(X86_FEATURE_AMD_SSBD) && in bsp_init_amd() 404 !boot_cpu_has(X86_FEATURE_VIRT_SSBD) && in bsp_init_amd() 578 if (boot_cpu_has(X86_FEATURE_APIC)) { in early_init_amd() 606 if (c->x86 == 0x17 && boot_cpu_has(X86_FEATURE_AMD_IBPB)) in early_init_amd() 985 if (boot_cpu_has(X86_FEATURE_ZEN1)) in init_amd() 987 else if (boot_cpu_has(X86_FEATURE_ZEN2)) in init_amd() 989 else if (boot_cpu_has(X86_FEATURE_ZEN3)) in init_amd() 991 else if (boot_cpu_has(X86_FEATURE_ZEN4)) in init_amd() 993 else if (boot_cpu_has(X86_FEATURE_ZEN5)) in init_amd() 1053 (boot_cpu_has(X86_FEATURE_ZEN1) && c->x86_model > 0x2f)) in init_amd()
|
| /linux/arch/x86/crypto/ |
| A D | blake2s-glue.c | 59 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()
|
| A D | sha1_ssse3_glue.c | 117 if (boot_cpu_has(X86_FEATURE_SSSE3)) in register_sha1_ssse3() 124 if (boot_cpu_has(X86_FEATURE_SSSE3)) in unregister_sha1_ssse3() 167 if (boot_cpu_has(X86_FEATURE_AVX)) in avx_usable() 195 if (avx_usable() && boot_cpu_has(X86_FEATURE_AVX2) in avx2_usable() 196 && boot_cpu_has(X86_FEATURE_BMI1) in avx2_usable() 197 && boot_cpu_has(X86_FEATURE_BMI2)) in avx2_usable() 298 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in register_sha1_ni() 305 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in unregister_sha1_ni()
|
| A D | sm4_aesni_avx2_glue.c | 110 if (!boot_cpu_has(X86_FEATURE_AVX) || in sm4_init() 111 !boot_cpu_has(X86_FEATURE_AVX2) || in sm4_init() 112 !boot_cpu_has(X86_FEATURE_AES) || in sm4_init() 113 !boot_cpu_has(X86_FEATURE_OSXSAVE)) { in sm4_init()
|
| A D | aria_gfni_avx512_glue.c | 206 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()
|
| A D | camellia_aesni_avx2_glue.c | 107 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()
|
| A D | sha256_ssse3_glue.c | 153 if (boot_cpu_has(X86_FEATURE_SSSE3)) in register_sha256_ssse3() 161 if (boot_cpu_has(X86_FEATURE_SSSE3)) in unregister_sha256_ssse3() 227 if (boot_cpu_has(X86_FEATURE_AVX)) in avx_usable() 310 if (avx_usable() && boot_cpu_has(X86_FEATURE_AVX2) && in avx2_usable() 311 boot_cpu_has(X86_FEATURE_BMI2)) in avx2_usable() 393 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in register_sha256_ni() 401 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in unregister_sha256_ni()
|
| A D | sha512_ssse3_glue.c | 132 if (boot_cpu_has(X86_FEATURE_SSSE3)) in register_sha512_ssse3() 140 if (boot_cpu_has(X86_FEATURE_SSSE3)) in unregister_sha512_ssse3() 150 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()
|
| A D | poly1305_glue.c | 262 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()
|
| A D | aria_aesni_avx2_glue.c | 206 if (!boot_cpu_has(X86_FEATURE_AVX) || in aria_avx2_init() 207 !boot_cpu_has(X86_FEATURE_AVX2) || in aria_avx2_init() 208 !boot_cpu_has(X86_FEATURE_AES) || in aria_avx2_init() 209 !boot_cpu_has(X86_FEATURE_OSXSAVE)) { in aria_avx2_init() 220 if (boot_cpu_has(X86_FEATURE_GFNI) && IS_ENABLED(CONFIG_AS_GFNI)) { in aria_avx2_init()
|
| A D | camellia_aesni_avx_glue.c | 107 if (!boot_cpu_has(X86_FEATURE_AVX) || in camellia_aesni_init() 108 !boot_cpu_has(X86_FEATURE_AES) || in camellia_aesni_init() 109 !boot_cpu_has(X86_FEATURE_OSXSAVE)) { in camellia_aesni_init()
|
| /linux/arch/x86/kernel/fpu/ |
| A D | init.c | 25 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()
|
| /linux/lib/raid6/ |
| A D | recov_avx512.c | 16 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()
|
| A D | avx512.c | 36 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()
|
| A D | sse1.c | 32 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/arch/x86/kernel/ |
| A D | tsc.c | 939 if (!boot_cpu_has(X86_FEATURE_TSC)) in recalibrate_cpu_khz() 1056 if (!boot_cpu_has(X86_FEATURE_TSC)) in cpufreq_register_tsc_scaling() 1058 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) in cpufreq_register_tsc_scaling() 1087 if (boot_cpu_has(X86_FEATURE_HYPERVISOR) || in detect_art() 1089 !boot_cpu_has(X86_FEATURE_TSC_ADJUST) || in detect_art() 1248 if (boot_cpu_has(X86_FEATURE_TSC_RELIABLE)) in check_system_tsc_reliable() 1261 boot_cpu_has(X86_FEATURE_TSC_ADJUST) && in check_system_tsc_reliable() 1280 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) in unsynchronized_tsc() 1399 if (boot_cpu_has(X86_FEATURE_ART)) { in tsc_refine_calibration_work() 1427 if (boot_cpu_has(X86_FEATURE_ART)) { in init_tsc_clocksource() [all …]
|
| /linux/arch/um/include/asm/ |
| A D | cpufeature.h | 54 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) macro 121 __builtin_constant_p(boot_cpu_has(bit)) ? \ 122 boot_cpu_has(bit) : \ 134 #define cpu_have_feature boot_cpu_has
|
| /linux/arch/x86/include/asm/ |
| A D | cpufeature.h | 145 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) macro 154 if (!boot_cpu_has(bit)) \ 197 __builtin_constant_p(boot_cpu_has(bit)) ? \ 198 boot_cpu_has(bit) : \ 211 #define cpu_have_feature boot_cpu_has
|
| A D | xor_avx.h | 171 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)
|
| A D | vmalloc.h | 14 return boot_cpu_has(X86_FEATURE_GBPAGES); in arch_vmap_pud_supported() 21 return boot_cpu_has(X86_FEATURE_PSE); in arch_vmap_pmd_supported()
|
| /linux/arch/x86/kernel/apic/ |
| A D | apic.c | 549 if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) in apic_validate_deadline_timer() 658 if (boot_cpu_has(X86_FEATURE_TSC)) in lapic_cal_handler() 719 if (boot_cpu_has(X86_FEATURE_TSC)) { in calibrate_by_pmtimer() 771 if (!boot_cpu_has(X86_FEATURE_ARAT)) in apic_needs_pit() 893 if (boot_cpu_has(X86_FEATURE_TSC)) { in calibrate_APIC_clock() 1247 if (!boot_cpu_has(X86_FEATURE_APIC)) { in __apic_intr_mode_select() 1262 if (!boot_cpu_has(X86_FEATURE_APIC) && in __apic_intr_mode_select() 1710 if (!boot_cpu_has(X86_FEATURE_APIC)) in __x2apic_disable() 1937 if (!boot_cpu_has(X86_FEATURE_APIC)) { in detect_init_APIC() 2025 if (!boot_cpu_has(X86_FEATURE_APIC)) { in detect_init_APIC() [all …]
|
| /linux/arch/x86/events/ |
| A D | msr.c | 22 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() 305 if (!boot_cpu_has(X86_FEATURE_TSC)) { in msr_init()
|