/linux-6.6.21/arch/x86/kernel/cpu/ |
D | amd.c | 94 cpu_has(cpu, X86_FEATURE_OSVW)) { in cpu_has_amd_erratum() 298 if (!cpu_has(c, X86_FEATURE_XMM)) { in init_amd_k7() 346 if (cpu_has(c, X86_FEATURE_MP)) in init_amd_k7() 439 } else if (cpu_has(c, X86_FEATURE_NODEID_MSR)) { in amd_get_topology() 558 if (cpu_has(c, X86_FEATURE_CONSTANT_TSC)) { in bsp_init_amd() 585 if (cpu_has(c, X86_FEATURE_MWAITX)) in bsp_init_amd() 643 if (cpu_has(c, X86_FEATURE_SME) || cpu_has(c, X86_FEATURE_SEV)) { in early_detect_mem_encrypt() 760 !cpu_has(c, X86_FEATURE_TOPOEXT)) { in early_init_amd() 771 if (cpu_has(c, X86_FEATURE_TOPOEXT)) in early_init_amd() 774 if (!cpu_has(c, X86_FEATURE_HYPERVISOR) && !cpu_has(c, X86_FEATURE_IBPB_BRTYPE)) { in early_init_amd() [all …]
|
D | feat_ctl.c | 125 enable_vmx = cpu_has(c, X86_FEATURE_VMX) && in init_ia32_feat_ctl() 128 if (cpu_has(c, X86_FEATURE_SGX) && IS_ENABLED(CONFIG_X86_SGX)) { in init_ia32_feat_ctl() 135 enable_sgx_driver = cpu_has(c, X86_FEATURE_SGX_LC); in init_ia32_feat_ctl() 171 if (!cpu_has(c, X86_FEATURE_VMX)) in init_ia32_feat_ctl() 198 if (!cpu_has(c, X86_FEATURE_VMX) && enable_sgx_kvm) { in init_ia32_feat_ctl()
|
D | common.c | 329 if (!cpu_has(c, X86_FEATURE_PN) || !disable_x86_serial_nr) in squash_the_stupid_serial_number() 363 if (cpu_has(c, X86_FEATURE_SMEP)) in setup_smep() 374 if (cpu_has(c, X86_FEATURE_SMAP)) in setup_smap() 385 if (!cpu_has(c, X86_FEATURE_UMIP)) in setup_umip() 653 if (!cpu_has(c, df->feature)) in filter_cpuid_features() 890 if (!cpu_has(c, X86_FEATURE_HT)) in detect_ht_early() 893 if (cpu_has(c, X86_FEATURE_CMP_LEGACY)) in detect_ht_early() 896 if (cpu_has(c, X86_FEATURE_XTOPOLOGY)) in detect_ht_early() 999 if (cpu_has(c, X86_FEATURE_SPEC_CTRL)) { in init_speculation_control() 1005 if (cpu_has(c, X86_FEATURE_INTEL_STIBP)) in init_speculation_control() [all …]
|
D | hygon.c | 54 if (cpu_has(c, X86_FEATURE_TOPOEXT)) in hygon_get_topology_early() 98 } else if (cpu_has(c, X86_FEATURE_NODEID_MSR)) { in hygon_get_topology() 208 if (cpu_has(c, X86_FEATURE_CONSTANT_TSC)) { in bsp_init_hygon() 216 if (cpu_has(c, X86_FEATURE_MWAITX)) in bsp_init_hygon() 327 if (cpu_has(c, X86_FEATURE_XMM2)) { in init_hygon()
|
D | intel.c | 173 if (cpu_has(c, X86_FEATURE_HYPERVISOR)) in bad_spectre_microcode() 288 if (c->x86 >= 6 && !cpu_has(c, X86_FEATURE_IA64)) in early_init_intel() 292 if ((cpu_has(c, X86_FEATURE_SPEC_CTRL) || in early_init_intel() 293 cpu_has(c, X86_FEATURE_INTEL_STIBP) || in early_init_intel() 294 cpu_has(c, X86_FEATURE_IBRS) || cpu_has(c, X86_FEATURE_IBPB) || in early_init_intel() 295 cpu_has(c, X86_FEATURE_STIBP)) && bad_spectre_microcode(c)) { in early_init_intel() 427 if (cpu_has(c, X86_FEATURE_TME)) in early_init_intel() 633 if (!cpu_has(c, X86_FEATURE_XTOPOLOGY)) { in init_intel() 653 if (cpu_has(c, X86_FEATURE_XMM2)) in init_intel() 1307 if (!cpu_has(c, X86_FEATURE_CORE_CAPABILITIES)) in split_lock_setup()
|
D | perfctr-watchdog.c | 55 if (cpu_has(&boot_cpu_data, X86_FEATURE_ARCH_PERFMON)) in nmi_perfctr_msr_to_bit() 88 if (cpu_has(&boot_cpu_data, X86_FEATURE_ARCH_PERFMON)) in nmi_evntsel_msr_to_bit()
|
D | proc.c | 88 if (cpu_has(c, X86_FEATURE_TSC)) { in show_cpuinfo() 103 if (cpu_has(c, i) && x86_cap_flags[i] != NULL) in show_cpuinfo() 107 if (cpu_has(c, X86_FEATURE_VMX) && c->vmx_capability[0]) { in show_cpuinfo()
|
D | rdrand.c | 30 if (!cpu_has(c, X86_FEATURE_RDRAND)) in x86_init_rdrand()
|
D | match.c | 54 if (m->feature != X86_FEATURE_ANY && !cpu_has(c, m->feature)) in x86_match_cpu()
|
/linux-6.6.21/drivers/thermal/intel/ |
D | therm_throt.c | 477 if (cpu_has(c, X86_FEATURE_PLN) && int_pln_enable) { in thermal_throttle_add_dev() 485 if (cpu_has(c, X86_FEATURE_PTS)) { in thermal_throttle_add_dev() 504 if (cpu_has(c, X86_FEATURE_PLN) && int_pln_enable) { in thermal_throttle_add_dev() 695 if (!cpu_has(c, X86_FEATURE_ACPI) || !cpu_has(c, X86_FEATURE_ACC)) in intel_thermal_supported() 754 if (cpu_has(c, X86_FEATURE_TM2)) { in intel_init_thermal() 771 if (cpu_has(c, X86_FEATURE_PLN) && !int_pln_enable) in intel_init_thermal() 775 else if (cpu_has(c, X86_FEATURE_PLN) && int_pln_enable) in intel_init_thermal() 783 if (cpu_has(c, X86_FEATURE_PTS)) { in intel_init_thermal() 785 if (cpu_has(c, X86_FEATURE_PLN) && !int_pln_enable) in intel_init_thermal() 790 else if (cpu_has(c, X86_FEATURE_PLN) && int_pln_enable) in intel_init_thermal() [all …]
|
D | x86_pkg_temp_thermal.c | 473 if (!cpu_has(c, X86_FEATURE_DTHERM) || !cpu_has(c, X86_FEATURE_PTS)) in pkg_thermal_cpu_online()
|
/linux-6.6.21/arch/x86/include/asm/ |
D | acpi.h | 117 if (cpu_has(c, X86_FEATURE_EST)) in arch_acpi_set_proc_cap_bits() 120 if (cpu_has(c, X86_FEATURE_ACPI)) in arch_acpi_set_proc_cap_bits() 123 if (cpu_has(c, X86_FEATURE_HWP)) in arch_acpi_set_proc_cap_bits() 130 if (!cpu_has(c, X86_FEATURE_MWAIT) || in arch_acpi_set_proc_cap_bits()
|
D | cpufeature.h | 122 #define cpu_has(c, bit) \ macro 142 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) 196 #define cpu_has_bug(c, bit) cpu_has(c, (bit))
|
/linux-6.6.21/arch/um/include/asm/ |
D | cpufeature.h | 36 #define cpu_has(c, bit) \ macro 55 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) 127 #define cpu_has_bug(c, bit) cpu_has(c, (bit))
|
/linux-6.6.21/arch/x86/kernel/cpu/mtrr/ |
D | if.c | 415 if ((!cpu_has(c, X86_FEATURE_MTRR)) && in mtrr_if_init() 416 (!cpu_has(c, X86_FEATURE_K6_MTRR)) && in mtrr_if_init() 417 (!cpu_has(c, X86_FEATURE_CYRIX_ARR)) && in mtrr_if_init() 418 (!cpu_has(c, X86_FEATURE_CENTAUR_MCR))) in mtrr_if_init()
|
/linux-6.6.21/arch/x86/kernel/cpu/mce/ |
D | p5.c | 54 if (!cpu_has(c, X86_FEATURE_MCE)) in intel_p5_mcheck_init()
|
/linux-6.6.21/arch/loongarch/crypto/ |
D | crc32-loongarch.c | 275 if (!cpu_has(CPU_FEATURE_CRC32)) in crc32_mod_init() 291 if (!cpu_has(CPU_FEATURE_CRC32)) in crc32_mod_exit()
|
/linux-6.6.21/arch/loongarch/include/asm/ |
D | cpu-features.h | 16 #define cpu_has(feat) (cpu_data[0].options & BIT_ULL(feat)) macro
|
/linux-6.6.21/arch/um/kernel/ |
D | um_arch.c | 83 seq_printf(m, "fpu\t\t: %s\n", cpu_has(&boot_cpu_data, X86_FEATURE_FPU) ? "yes" : "no"); in show_cpuinfo() 86 if (cpu_has(&boot_cpu_data, i) && (x86_cap_flags[i] != NULL)) in show_cpuinfo()
|
/linux-6.6.21/arch/x86/kernel/cpu/resctrl/ |
D | core.c | 921 if (!cpu_has(c, X86_FEATURE_CQM_LLC)) { in resctrl_cpu_detect() 931 if (cpu_has(c, X86_FEATURE_CQM_OCCUP_LLC) || in resctrl_cpu_detect() 932 cpu_has(c, X86_FEATURE_CQM_MBM_TOTAL) || in resctrl_cpu_detect() 933 cpu_has(c, X86_FEATURE_CQM_MBM_LOCAL)) { in resctrl_cpu_detect()
|
/linux-6.6.21/drivers/cpufreq/ |
D | speedstep-centrino.c | 353 !cpu_has(cpu, X86_FEATURE_EST)) in centrino_cpu_init() 356 if (cpu_has(cpu, X86_FEATURE_CONSTANT_TSC)) in centrino_cpu_init()
|
D | p4-clockmod.c | 121 if (cpu_has(c, X86_FEATURE_EST)) in cpufreq_p4_get_frequency()
|
D | acpi-cpufreq.c | 191 return cpu_has(cpu, X86_FEATURE_EST); in check_est_cpu() 198 return cpu_has(cpu, X86_FEATURE_HW_PSTATE); in check_amd_hwpstate_cpu() 708 if (cpu_has(c, X86_FEATURE_CONSTANT_TSC)) in acpi_cpufreq_cpu_init()
|
D | longrun.c | 171 if (cpu_has(c, X86_FEATURE_LRTI)) { in longrun_determine_freqs()
|
/linux-6.6.21/arch/x86/kernel/ |
D | msr.c | 218 if (!cpu_has(c, X86_FEATURE_MSR)) in msr_open()
|