| /Linux-v5.15/arch/x86/kernel/fpu/ |
| D | init.c | 21 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()
|
| D | xstate.c | 138 if (!boot_cpu_has(X86_FEATURE_XSAVE) || !xfeatures_mask_all) in fpu__init_cpu_xstate() 153 if (boot_cpu_has(X86_FEATURE_XSAVES)) { in fpu__init_cpu_xstate() 294 if (!boot_cpu_has(X86_FEATURE_XSAVES)) { in setup_xstate_comp_offsets() 391 if (!boot_cpu_has(X86_FEATURE_XSAVE)) in setup_init_fpu_buf() 397 if (boot_cpu_has(X86_FEATURE_XSAVES)) in setup_init_fpu_buf() 683 if (boot_cpu_has(X86_FEATURE_XSAVES)) in init_xstate_size() 732 if (!boot_cpu_has(X86_FEATURE_FPU)) { in fpu__init_system_xstate() 737 if (!boot_cpu_has(X86_FEATURE_XSAVE)) { in fpu__init_system_xstate() 739 boot_cpu_has(X86_FEATURE_FXSR) ? "FXSAVE" : "FSAVE"); in fpu__init_system_xstate() 775 if (!boot_cpu_has(xsave_cpuid_features[i])) in fpu__init_system_xstate() [all …]
|
| /Linux-v5.15/arch/x86/kernel/cpu/ |
| D | bugs.c | 107 if (boot_cpu_has(X86_FEATURE_MSR_SPEC_CTRL)) in check_bugs() 111 if (boot_cpu_has(X86_FEATURE_STIBP)) in check_bugs() 231 if (boot_cpu_has(X86_FEATURE_VIRT_SSBD)) in x86_amd_ssb_disable() 233 else if (boot_cpu_has(X86_FEATURE_LS_CFG_SSBD)) in x86_amd_ssb_disable() 258 if (!boot_cpu_has(X86_FEATURE_MD_CLEAR)) in mds_select_mitigation() 263 if (!boot_cpu_has(X86_BUG_MSBDS_ONLY) && in mds_select_mitigation() 329 if (!boot_cpu_has(X86_FEATURE_RTM)) { in taa_select_mitigation() 347 if (boot_cpu_has(X86_FEATURE_MD_CLEAR)) in taa_select_mitigation() 442 if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) in update_srbds_msr() 477 if ((ia32_cap & ARCH_CAP_MDS_NO) && !boot_cpu_has(X86_FEATURE_RTM)) in srbds_select_mitigation() [all …]
|
| D | tsx.c | 95 if (boot_cpu_has(X86_FEATURE_RTM_ALWAYS_ABORT) && in tsx_clear_cpuid() 96 boot_cpu_has(X86_FEATURE_TSX_FORCE_ABORT)) { in tsx_clear_cpuid() 114 if (boot_cpu_has(X86_FEATURE_RTM_ALWAYS_ABORT) && in tsx_init() 115 boot_cpu_has(X86_FEATURE_TSX_FORCE_ABORT)) { in tsx_init()
|
| D | intel.c | 447 if (boot_cpu_has(X86_FEATURE_APIC) && (c->x86<<8 | c->x86_model<<4) == 0x520 && in intel_workarounds() 646 if (boot_cpu_has(X86_FEATURE_DS)) { in init_intel() 656 if (c->x86 == 6 && boot_cpu_has(X86_FEATURE_CLFLUSH) && in init_intel() 660 if (c->x86 == 6 && boot_cpu_has(X86_FEATURE_MWAIT) && in init_intel() 1052 if (!boot_cpu_has(X86_FEATURE_SPLIT_LOCK_DETECT) && in sld_state_setup() 1053 !boot_cpu_has(X86_FEATURE_BUS_LOCK_DETECT)) in sld_state_setup() 1159 if (!boot_cpu_has(X86_FEATURE_BUS_LOCK_DETECT) || in bus_lock_init() 1160 (boot_cpu_has(X86_FEATURE_SPLIT_LOCK_DETECT) && in bus_lock_init() 1248 if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) in split_lock_setup() 1275 if (!boot_cpu_has(X86_FEATURE_BUS_LOCK_DETECT) && in sld_state_show() [all …]
|
| D | hygon.c | 68 if (boot_cpu_has(X86_FEATURE_TOPOEXT)) { in hygon_get_topology() 214 if (boot_cpu_has(X86_FEATURE_TOPOEXT)) { in bsp_init_hygon() 219 } else if (boot_cpu_has(X86_FEATURE_NODEID_MSR)) { in bsp_init_hygon() 226 if (!boot_cpu_has(X86_FEATURE_AMD_SSBD) && in bsp_init_hygon() 227 !boot_cpu_has(X86_FEATURE_VIRT_SSBD)) { in bsp_init_hygon() 276 if (boot_cpu_has(X86_FEATURE_APIC)) in early_init_hygon()
|
| D | aperfmperf.c | 91 if (!boot_cpu_has(X86_FEATURE_APERFMPERF)) in aperfmperf_get_khz() 113 if (!boot_cpu_has(X86_FEATURE_APERFMPERF)) in arch_freq_prepare_all() 136 if (!boot_cpu_has(X86_FEATURE_APERFMPERF)) in arch_freq_get_on_cpu()
|
| /Linux-v5.15/arch/x86/crypto/ |
| D | blake2s-glue.c | 98 if (!boot_cpu_has(X86_FEATURE_SSSE3)) in blake2s_mod_init() 104 boot_cpu_has(X86_FEATURE_AVX) && in blake2s_mod_init() 105 boot_cpu_has(X86_FEATURE_AVX2) && in blake2s_mod_init() 106 boot_cpu_has(X86_FEATURE_AVX512F) && in blake2s_mod_init() 107 boot_cpu_has(X86_FEATURE_AVX512VL) && in blake2s_mod_init() 119 if (IS_REACHABLE(CONFIG_CRYPTO_HASH) && boot_cpu_has(X86_FEATURE_SSSE3)) in blake2s_mod_exit()
|
| D | sha1_ssse3_glue.c | 105 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()
|
| D | sha256_ssse3_glue.c | 133 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()
|
| 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()
|
| D | sm4_aesni_avx2_glue.c | 136 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()
|
| D | sha512_ssse3_glue.c | 131 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()
|
| 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()
|
| /Linux-v5.15/lib/raid6/ |
| 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()
|
| 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()
|
| 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-v5.15/arch/um/include/asm/ |
| D | cpufeature.h | 55 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) macro 78 #define static_cpu_has(bit) boot_cpu_has(bit) 136 __builtin_constant_p(boot_cpu_has(bit)) ? \ 137 boot_cpu_has(bit) : \ 150 #define cpu_have_feature boot_cpu_has
|
| /Linux-v5.15/arch/x86/kernel/ |
| D | tsc.c | 902 if (!boot_cpu_has(X86_FEATURE_TSC)) in recalibrate_cpu_khz() 1020 if (!boot_cpu_has(X86_FEATURE_TSC)) in cpufreq_register_tsc_scaling() 1022 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) in cpufreq_register_tsc_scaling() 1051 if (boot_cpu_has(X86_FEATURE_HYPERVISOR) || in detect_art() 1052 !boot_cpu_has(X86_FEATURE_NONSTOP_TSC) || in detect_art() 1053 !boot_cpu_has(X86_FEATURE_TSC_ADJUST) || in detect_art() 1197 if (boot_cpu_has(X86_FEATURE_TSC_RELIABLE)) in check_system_tsc_reliable() 1207 if (!boot_cpu_has(X86_FEATURE_TSC) || tsc_unstable) in unsynchronized_tsc() 1215 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) in unsynchronized_tsc() 1374 if (boot_cpu_has(X86_FEATURE_ART)) in tsc_refine_calibration_work() [all …]
|
| /Linux-v5.15/arch/x86/include/asm/ |
| D | cpufeature.h | 141 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) macro 165 #define static_cpu_has(bit) boot_cpu_has(bit) 199 __builtin_constant_p(boot_cpu_has(bit)) ? \ 200 boot_cpu_has(bit) : \ 214 #define cpu_have_feature boot_cpu_has
|
| D | xor_avx.h | 164 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)
|
| 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-v5.15/arch/x86/kernel/apic/ |
| D | apic.c | 340 else if (boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) in __setup_APIC_LVTT() 589 if (!boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) in apic_validate_deadline_timer() 591 if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) in apic_validate_deadline_timer() 700 if (boot_cpu_has(X86_FEATURE_TSC)) in lapic_cal_handler() 761 if (boot_cpu_has(X86_FEATURE_TSC)) { in calibrate_by_pmtimer() 801 if (!boot_cpu_has(X86_FEATURE_APIC) || disable_apic) in apic_needs_pit() 814 if (!boot_cpu_has(X86_FEATURE_ARAT)) in apic_needs_pit() 818 if (boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) in apic_needs_pit() 840 if (boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) in calibrate_APIC_clock() 939 if (boot_cpu_has(X86_FEATURE_TSC)) { in calibrate_APIC_clock() [all …]
|
| /Linux-v5.15/arch/x86/events/ |
| 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() 298 if (!boot_cpu_has(X86_FEATURE_TSC)) { in msr_init()
|
| /Linux-v5.15/arch/x86/mm/ |
| D | setup_nx.c | 36 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()
|