/linux-4.4.14/arch/x86/include/asm/ |
D | cpufeature.h | 345 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) macro 358 #define cpu_has_fpu boot_cpu_has(X86_FEATURE_FPU) 359 #define cpu_has_de boot_cpu_has(X86_FEATURE_DE) 360 #define cpu_has_pse boot_cpu_has(X86_FEATURE_PSE) 361 #define cpu_has_tsc boot_cpu_has(X86_FEATURE_TSC) 362 #define cpu_has_pge boot_cpu_has(X86_FEATURE_PGE) 363 #define cpu_has_apic boot_cpu_has(X86_FEATURE_APIC) 364 #define cpu_has_sep boot_cpu_has(X86_FEATURE_SEP) 365 #define cpu_has_mtrr boot_cpu_has(X86_FEATURE_MTRR) 366 #define cpu_has_mmx boot_cpu_has(X86_FEATURE_MMX) [all …]
|
D | apic.h | 448 if (APIC_XAPIC(ver) || boot_cpu_has(X86_FEATURE_EXTD_APICID)) in default_get_apic_id()
|
/linux-4.4.14/arch/x86/crypto/ |
D | sha1_ssse3_glue.c | 115 if (boot_cpu_has(X86_FEATURE_SSSE3)) in register_sha1_ssse3() 122 if (boot_cpu_has(X86_FEATURE_SSSE3)) in unregister_sha1_ssse3() 204 if (avx_usable() && boot_cpu_has(X86_FEATURE_AVX2) in avx2_usable() 205 && boot_cpu_has(X86_FEATURE_BMI1) in avx2_usable() 206 && boot_cpu_has(X86_FEATURE_BMI2)) in avx2_usable() 318 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in register_sha1_ni() 325 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in unregister_sha1_ni()
|
D | sha256_ssse3_glue.c | 135 if (boot_cpu_has(X86_FEATURE_SSSE3)) in register_sha256_ssse3() 143 if (boot_cpu_has(X86_FEATURE_SSSE3)) in unregister_sha256_ssse3() 287 if (avx_usable() && boot_cpu_has(X86_FEATURE_AVX2) && in avx2_usable() 288 boot_cpu_has(X86_FEATURE_BMI2)) in avx2_usable() 369 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in register_sha256_ni() 377 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in unregister_sha256_ni()
|
D | sha512_ssse3_glue.c | 135 if (boot_cpu_has(X86_FEATURE_SSSE3)) in register_sha512_ssse3() 143 if (boot_cpu_has(X86_FEATURE_SSSE3)) in unregister_sha512_ssse3() 287 if (avx_usable() && boot_cpu_has(X86_FEATURE_AVX2) && in avx2_usable() 288 boot_cpu_has(X86_FEATURE_BMI2)) in avx2_usable()
|
D | aesni-intel_glue.c | 1465 if (boot_cpu_has(X86_FEATURE_AVX2)) { in aesni_init() 1472 if (boot_cpu_has(X86_FEATURE_AVX)) { in aesni_init()
|
/linux-4.4.14/lib/raid6/ |
D | sse1.c | 37 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()
|
D | recov_ssse3.c | 17 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()
|
D | sse2.c | 32 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()
|
D | recov_avx2.c | 18 return boot_cpu_has(X86_FEATURE_AVX2) && in raid6_has_avx2() 19 boot_cpu_has(X86_FEATURE_AVX); in raid6_has_avx2()
|
D | avx2.c | 36 return boot_cpu_has(X86_FEATURE_AVX2) && boot_cpu_has(X86_FEATURE_AVX); in raid6_have_avx2()
|
D | x86.h | 52 static inline int boot_cpu_has(int flag) in boot_cpu_has() function
|
D | mmx.c | 34 return boot_cpu_has(X86_FEATURE_MMX); in raid6_have_mmx()
|
/linux-4.4.14/arch/x86/kernel/ |
D | tsc.c | 956 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) in cpufreq_tsc() 1038 if (boot_cpu_has(X86_FEATURE_TSC_RELIABLE)) in check_system_tsc_reliable() 1056 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) in unsynchronized_tsc() 1162 if (boot_cpu_has(X86_FEATURE_NONSTOP_TSC_S3)) in init_tsc_clocksource() 1169 if (boot_cpu_has(X86_FEATURE_TSC_RELIABLE)) { in init_tsc_clocksource()
|
D | alternative.c | 224 } else if (boot_cpu_has(X86_FEATURE_NOPL)) { in arch_init_ideal_nops() 247 if (boot_cpu_has(X86_FEATURE_K8)) in arch_init_ideal_nops() 249 else if (boot_cpu_has(X86_FEATURE_K7)) in arch_init_ideal_nops() 386 if (!boot_cpu_has(a->cpuid)) { in apply_alternatives()
|
D | machine_kexec_32.c | 252 boot_cpu_has(X86_FEATURE_PAE), in machine_kexec()
|
D | process.c | 360 if (!boot_cpu_has(X86_FEATURE_NONSTOP_TSC)) in amd_e400_idle()
|
D | hpet.c | 604 if (boot_cpu_has(X86_FEATURE_ARAT)) in hpet_msi_capability_lookup() 961 if (boot_cpu_has(X86_FEATURE_ARAT)) in hpet_late_init()
|
/linux-4.4.14/arch/x86/kernel/cpu/mcheck/ |
D | mce-inject.c | 217 if (!boot_cpu_has(X86_FEATURE_MCE) || !boot_cpu_has(X86_FEATURE_MCA)) in mce_write()
|
/linux-4.4.14/arch/x86/kernel/cpu/ |
D | perf_event_msr.c | 15 return boot_cpu_has(X86_FEATURE_APERFMPERF); in test_aperfmperf() 214 if (!boot_cpu_has(X86_FEATURE_TSC)) { in msr_init()
|
D | mshyperv.c | 121 if (!boot_cpu_has(X86_FEATURE_HYPERVISOR)) in ms_hyperv_platform()
|
D | common.c | 156 if (!boot_cpu_has(X86_FEATURE_MPX)) in x86_mpx_setup() 998 if (!boot_cpu_has(X86_FEATURE_SEP)) in enable_sep_cpu() 1489 return boot_cpu_has(bit); in __static_cpu_has_safe()
|
D | perf_event_intel_ds.c | 1303 if (!boot_cpu_has(X86_FEATURE_DTES64)) in intel_ds_init() 1306 x86_pmu.bts = boot_cpu_has(X86_FEATURE_BTS); in intel_ds_init() 1307 x86_pmu.pebs = boot_cpu_has(X86_FEATURE_PEBS); in intel_ds_init()
|
D | perf_event_intel_bts.c | 528 if (!boot_cpu_has(X86_FEATURE_DTES64) || !x86_pmu.bts) in bts_init()
|
D | perf_event_amd_ibs.c | 691 if (!boot_cpu_has(X86_FEATURE_IBS)) in __get_ibs_caps()
|
D | intel_cacheinfo.c | 269 if (boot_cpu_has(X86_FEATURE_AMD_DCM)) { in amd_cpuid4()
|
D | perf_event_intel.c | 2646 if (!boot_cpu_has(X86_FEATURE_RTM) && !boot_cpu_has(X86_FEATURE_HLE)) in hsw_hw_config() 3281 if (boot_cpu_has(X86_FEATURE_PDCM)) { in intel_pmu_init()
|
D | perf_event.c | 266 boot_cpu_has(X86_FEATURE_HYPERVISOR) ? KERN_INFO : KERN_ERR, in check_hw_exists()
|
/linux-4.4.14/drivers/thermal/ |
D | intel_powerclamp.c | 715 if (!boot_cpu_has(X86_FEATURE_NONSTOP_TSC) || in powerclamp_probe() 716 !boot_cpu_has(X86_FEATURE_CONSTANT_TSC) || in powerclamp_probe() 717 !boot_cpu_has(X86_FEATURE_MWAIT) || in powerclamp_probe() 718 !boot_cpu_has(X86_FEATURE_ARAT)) in powerclamp_probe()
|
/linux-4.4.14/drivers/lguest/x86/ |
D | core.c | 264 if (boot_cpu_has(X86_FEATURE_SEP)) in lguest_arch_run_guest() 282 if (boot_cpu_has(X86_FEATURE_SEP)) in lguest_arch_run_guest() 681 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC) && !check_tsc_unstable()) in lguest_arch_init_hypercalls()
|
/linux-4.4.14/lib/ |
D | atomic64_test.c | 186 boot_cpu_has(X86_FEATURE_CX8) ? "with" : "without", in test_atomics() 187 boot_cpu_has(X86_FEATURE_XMM) ? "with" : "without"); in test_atomics()
|
/linux-4.4.14/arch/x86/mm/ |
D | pat.c | 746 !(boot_cpu_has(X86_FEATURE_MTRR) || in phys_mem_access_prot_allowed() 747 boot_cpu_has(X86_FEATURE_K6_MTRR) || in phys_mem_access_prot_allowed() 748 boot_cpu_has(X86_FEATURE_CYRIX_ARR) || in phys_mem_access_prot_allowed() 749 boot_cpu_has(X86_FEATURE_CENTAUR_MCR)) && in phys_mem_access_prot_allowed()
|
/linux-4.4.14/arch/x86/platform/intel-mid/ |
D | intel-mid.c | 103 if (!boot_cpu_has(X86_FEATURE_ARAT)) in intel_mid_time_init()
|
/linux-4.4.14/arch/x86/kvm/ |
D | pmu_intel.c | 303 (boot_cpu_has(X86_FEATURE_HLE) || boot_cpu_has(X86_FEATURE_RTM)) && in intel_pmu_refresh()
|
D | svm.c | 887 if (boot_cpu_has(X86_FEATURE_NX)) in svm_hardware_setup() 890 if (boot_cpu_has(X86_FEATURE_FXSR_OPT)) in svm_hardware_setup() 893 if (boot_cpu_has(X86_FEATURE_TSCRATEMSR)) { in svm_hardware_setup() 910 if (!boot_cpu_has(X86_FEATURE_NPT)) in svm_hardware_setup() 1106 if (boot_cpu_has(X86_FEATURE_PAUSEFILTER)) { in init_vmcb() 2945 if (!boot_cpu_has(X86_FEATURE_DECODEASSISTS)) in dr_interception() 3149 if (!boot_cpu_has(X86_FEATURE_LBRV)) { in svm_set_msr() 4022 if (boot_cpu_has(X86_FEATURE_NRIPS)) in svm_set_supported_cpuid()
|
D | x86.c | 5502 else if (!boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) in tsc_khz_changed() 5626 if (!boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) { in kvm_timer_init() 5831 if (!boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) in kvm_arch_exit()
|
D | vmx.c | 1804 if (boot_cpu_has(X86_FEATURE_SMEP)) in update_transition_efer() 1932 if (boot_cpu_has(X86_FEATURE_MPX)) in vmx_save_host_state() 6182 if (boot_cpu_has(X86_FEATURE_NX)) in hardware_setup()
|
/linux-4.4.14/drivers/acpi/ |
D | acpi_pad.c | 48 if (!boot_cpu_has(X86_FEATURE_MWAIT)) in power_saving_mwait_init() 77 if (!boot_cpu_has(X86_FEATURE_NONSTOP_TSC)) in power_saving_mwait_init()
|
D | acpi_processor.c | 534 if (boot_cpu_has(X86_FEATURE_HWP)) { in acpi_early_processor_osc()
|
D | processor_perflib.c | 460 if(boot_cpu_has(X86_FEATURE_EST)) in acpi_processor_get_performance_info()
|
D | processor_idle.c | 243 if (boot_cpu_has(X86_FEATURE_NONSTOP_TSC)) in tsc_check_state()
|
/linux-4.4.14/arch/x86/include/asm/fpu/ |
D | internal.h | 253 if (boot_cpu_has(X86_FEATURE_XSAVES)) in copy_xregs_to_kernel_booting() 283 if (boot_cpu_has(X86_FEATURE_XSAVES)) in copy_kernel_to_xregs_booting()
|
/linux-4.4.14/drivers/cpufreq/ |
D | p4-clockmod.c | 263 if (!x86_match_cpu(cpufreq_p4_id) || !boot_cpu_has(X86_FEATURE_ACPI)) in cpufreq_p4_init()
|
D | acpi-cpufreq.c | 913 if (boot_cpu_has(X86_FEATURE_CPB) || boot_cpu_has(X86_FEATURE_IDA)) { in acpi_cpufreq_boost_init()
|
/linux-4.4.14/arch/x86/power/ |
D | cpu.c | 211 if (boot_cpu_has(X86_FEATURE_SEP)) in __restore_processor_state()
|
/linux-4.4.14/drivers/powercap/ |
D | intel_rapl.c | 917 if (!boot_cpu_has(X86_FEATURE_PTS) || !boot_cpu_has(X86_FEATURE_PLN)) in package_power_limit_irq_save() 944 if (!boot_cpu_has(X86_FEATURE_PTS) || !boot_cpu_has(X86_FEATURE_PLN)) in package_power_limit_irq_restore()
|
/linux-4.4.14/drivers/dma/ioat/ |
D | dca.c | 96 if (boot_cpu_has(X86_FEATURE_DCA)) in system_has_dca_enabled()
|
/linux-4.4.14/arch/x86/xen/ |
D | setup.c | 986 if (!boot_cpu_has(sysenter_feature)) in xen_enable_sysenter() 1006 if (boot_cpu_has(X86_FEATURE_SYSCALL32)) { in xen_enable_syscall()
|
/linux-4.4.14/arch/x86/crypto/sha-mb/ |
D | sha1_mb.c | 863 if (!boot_cpu_has(X86_FEATURE_AVX2) || in sha1_mb_mod_init() 864 !boot_cpu_has(X86_FEATURE_BMI2)) in sha1_mb_mod_init()
|
/linux-4.4.14/drivers/idle/ |
D | intel_idle.c | 965 if (boot_cpu_has(X86_FEATURE_ARAT)) /* Always Reliable APIC Timer */ in intel_idle_probe() 1131 !boot_cpu_has(X86_FEATURE_NONSTOP_TSC)) in intel_idle_cpuidle_driver_init()
|
/linux-4.4.14/arch/x86/kernel/fpu/ |
D | xstate.c | 694 if (!boot_cpu_has(X86_FEATURE_XSAVE)) in get_xsave_addr()
|
/linux-4.4.14/arch/x86/kernel/apic/ |
D | apic.c | 327 else if (boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) in __setup_APIC_LVTT() 691 if (boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) { in calibrate_APIC_clock()
|
D | vector.c | 858 if (boot_cpu_has(X86_FEATURE_EXTAPIC)) { in print_local_APIC()
|
/linux-4.4.14/drivers/gpu/drm/gma500/ |
D | mmu.c | 482 if (boot_cpu_has(X86_FEATURE_CLFLUSH)) { in psb_mmu_driver_init()
|
/linux-4.4.14/sound/pci/ |
D | intel8x0.c | 2978 result = result || boot_cpu_has(X86_FEATURE_HYPERVISOR); in snd_intel8x0_inside_vm()
|