/linux-6.12.1/arch/x86/kernel/cpu/ |
D | amd.c | 212 if (!cpu_has(c, X86_FEATURE_XMM)) { in init_amd_k7() 260 if (cpu_has(c, X86_FEATURE_MP)) in init_amd_k7() 354 if (cpu_has(c, X86_FEATURE_SEV_SNP)) { in bsp_determine_snp() 360 if (!cpu_has(c, X86_FEATURE_HYPERVISOR) && in bsp_determine_snp() 373 if (cpu_has(c, X86_FEATURE_CONSTANT_TSC)) { in bsp_init_amd() 400 if (cpu_has(c, X86_FEATURE_MWAITX)) in bsp_init_amd() 502 if (cpu_has(c, X86_FEATURE_SME) || cpu_has(c, X86_FEATURE_SEV)) { in early_detect_mem_encrypt() 605 if (!cpu_has(c, X86_FEATURE_HYPERVISOR) && !cpu_has(c, X86_FEATURE_IBPB_BRTYPE)) { in early_init_amd() 630 if (c->x86_model < 0x14 && cpu_has(c, X86_FEATURE_LAHF_LM)) { in init_amd_k8() 833 if (!cpu_has(c, X86_FEATURE_HYPERVISOR)) { in init_spectral_chicken() [all …]
|
D | feat_ctl.c | 127 enable_vmx = cpu_has(c, X86_FEATURE_VMX) && in init_ia32_feat_ctl() 130 if (cpu_has(c, X86_FEATURE_SGX) && IS_ENABLED(CONFIG_X86_SGX)) { in init_ia32_feat_ctl() 137 enable_sgx_driver = cpu_has(c, X86_FEATURE_SGX_LC); in init_ia32_feat_ctl() 173 if (!cpu_has(c, X86_FEATURE_VMX)) in init_ia32_feat_ctl() 200 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() 652 if (!cpu_has(c, df->feature)) in filter_cpuid_features() 940 if (cpu_has(c, X86_FEATURE_SPEC_CTRL)) { in init_speculation_control() 946 if (cpu_has(c, X86_FEATURE_INTEL_STIBP)) in init_speculation_control() 949 if (cpu_has(c, X86_FEATURE_SPEC_CTRL_SSBD) || in init_speculation_control() 950 cpu_has(c, X86_FEATURE_VIRT_SSBD)) in init_speculation_control() 953 if (cpu_has(c, X86_FEATURE_AMD_IBRS)) { in init_speculation_control() [all …]
|
D | hygon.c | 96 if (cpu_has(c, X86_FEATURE_CONSTANT_TSC)) { in bsp_init_hygon() 104 if (cpu_has(c, X86_FEATURE_MWAITX)) in bsp_init_hygon() 196 if (cpu_has(c, X86_FEATURE_SVM)) { in init_hygon() 204 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() 245 if (c->x86 >= 6 && !cpu_has(c, X86_FEATURE_IA64)) in early_init_intel() 249 if ((cpu_has(c, X86_FEATURE_SPEC_CTRL) || in early_init_intel() 250 cpu_has(c, X86_FEATURE_INTEL_STIBP) || in early_init_intel() 251 cpu_has(c, X86_FEATURE_IBRS) || cpu_has(c, X86_FEATURE_IBPB) || in early_init_intel() 252 cpu_has(c, X86_FEATURE_STIBP)) && bad_spectre_microcode(c)) { in early_init_intel() 362 if (cpu_has(c, X86_FEATURE_TME)) in early_init_intel() 570 if (cpu_has(c, X86_FEATURE_XMM2)) in init_intel() 1224 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 | 31 if (!cpu_has(c, X86_FEATURE_RDRAND)) in x86_init_rdrand()
|
D | match.c | 51 if (m->feature != X86_FEATURE_ANY && !cpu_has(c, m->feature)) in x86_match_cpu()
|
D | topology_amd.c | 156 if (cpu_has(c, X86_FEATURE_TOPOEXT) || c->x86_vendor != X86_VENDOR_AMD || in topoext_fixup()
|
/linux-6.12.1/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 | 465 if (!cpu_has(c, X86_FEATURE_DTHERM) || !cpu_has(c, X86_FEATURE_PTS)) in pkg_thermal_cpu_online()
|
/linux-6.12.1/arch/x86/include/asm/ |
D | acpi.h | 126 if (cpu_has(c, X86_FEATURE_EST)) in arch_acpi_set_proc_cap_bits() 129 if (cpu_has(c, X86_FEATURE_ACPI)) in arch_acpi_set_proc_cap_bits() 132 if (cpu_has(c, X86_FEATURE_HWP)) in arch_acpi_set_proc_cap_bits() 139 if (!cpu_has(c, X86_FEATURE_MWAIT) || in arch_acpi_set_proc_cap_bits()
|
D | cpufeature.h | 126 #define cpu_has(c, bit) \ macro 145 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) 202 #define cpu_has_bug(c, bit) cpu_has(c, (bit))
|
/linux-6.12.1/arch/um/include/asm/ |
D | cpufeature.h | 36 #define cpu_has(c, bit) \ macro 54 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) 126 #define cpu_has_bug(c, bit) cpu_has(c, (bit))
|
/linux-6.12.1/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.12.1/arch/x86/kernel/cpu/mce/ |
D | p5.c | 54 if (!cpu_has(c, X86_FEATURE_MCE)) in intel_p5_mcheck_init()
|
/linux-6.12.1/arch/loongarch/crypto/ |
D | crc32-loongarch.c | 271 if (!cpu_has(CPU_FEATURE_CRC32)) in crc32_mod_init() 287 if (!cpu_has(CPU_FEATURE_CRC32)) in crc32_mod_exit()
|
/linux-6.12.1/arch/loongarch/include/asm/ |
D | cpu-features.h | 16 #define cpu_has(feat) (cpu_data[0].options & BIT_ULL(feat)) macro
|
/linux-6.12.1/arch/um/kernel/ |
D | um_arch.c | 84 seq_printf(m, "fpu\t\t: %s\n", cpu_has(&boot_cpu_data, X86_FEATURE_FPU) ? "yes" : "no"); in show_cpuinfo() 87 if (cpu_has(&boot_cpu_data, i) && (x86_cap_flags[i] != NULL)) in show_cpuinfo()
|
/linux-6.12.1/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 | 189 return cpu_has(cpu, X86_FEATURE_EST); in check_est_cpu() 196 return cpu_has(cpu, X86_FEATURE_HW_PSTATE); in check_amd_hwpstate_cpu() 712 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.12.1/arch/x86/kernel/cpu/resctrl/ |
D | core.c | 1055 if (!cpu_has(c, X86_FEATURE_CQM_LLC)) { in resctrl_cpu_detect() 1065 if (cpu_has(c, X86_FEATURE_CQM_OCCUP_LLC) || in resctrl_cpu_detect() 1066 cpu_has(c, X86_FEATURE_CQM_MBM_TOTAL) || in resctrl_cpu_detect() 1067 cpu_has(c, X86_FEATURE_CQM_MBM_LOCAL)) { in resctrl_cpu_detect()
|