Home
last modified time | relevance | path

Searched refs:cpu_feature_enabled (Results 1 – 25 of 84) sorted by relevance

1234

/linux/arch/x86/include/asm/
H A Dpkeys.h10 #define arch_max_pkey() (cpu_feature_enabled(X86_FEATURE_OSPKE) ? 16 : 1)
17 return cpu_feature_enabled(X86_FEATURE_OSPKE); in arch_pkeys_enabled()
27 if (!cpu_feature_enabled(X86_FEATURE_OSPKE)) in execute_only_pkey()
38 if (!cpu_feature_enabled(X86_FEATURE_OSPKE)) in arch_override_mprotect_pkey()
H A Dvmware.h103 if (cpu_feature_enabled(X86_FEATURE_TDX_GUEST)) in vmware_hypercall1()
128 if (cpu_feature_enabled(X86_FEATURE_TDX_GUEST)) in vmware_hypercall3()
153 if (cpu_feature_enabled(X86_FEATURE_TDX_GUEST)) in vmware_hypercall4()
179 if (cpu_feature_enabled(X86_FEATURE_TDX_GUEST)) in vmware_hypercall5()
207 if (cpu_feature_enabled(X86_FEATURE_TDX_GUEST)) in vmware_hypercall6()
235 if (cpu_feature_enabled(X86_FEATURE_TDX_GUEST)) in vmware_hypercall7()
H A Dpkru.h37 if (cpu_feature_enabled(X86_FEATURE_OSPKE)) in read_pkru()
44 if (!cpu_feature_enabled(X86_FEATURE_OSPKE)) in write_pkru()
56 if (!cpu_feature_enabled(X86_FEATURE_OSPKE)) in pkru_write_default()
H A Dentry-common.h28 if (cpu_feature_enabled(X86_FEATURE_SMAP) || in arch_enter_from_user_mode()
29 cpu_feature_enabled(X86_FEATURE_XENPV)) in arch_enter_from_user_mode()
98 if (cpu_feature_enabled(X86_FEATURE_IBPB_EXIT_TO_USER) && in arch_exit_to_user_mode_prepare()
H A Dgsseg.h30 if (cpu_feature_enabled(X86_FEATURE_LKGS)) { in native_load_gs_index()
47 if (cpu_feature_enabled(X86_FEATURE_LKGS)) in lkgs_init()
H A Dtimex.h11 !cpu_feature_enabled(X86_FEATURE_TSC)) in random_get_entropy()
H A Dunaccepted_memory.h11 if (cpu_feature_enabled(X86_FEATURE_TDX_GUEST)) { in arch_accept_memory()
H A Dacenv.h26 if (!cpu_feature_enabled(X86_FEATURE_HYPERVISOR)) \
/linux/arch/x86/kernel/cpu/mtrr/
H A Dlegacy.c16 if (cpu_feature_enabled(X86_FEATURE_K6_MTRR)) in mtrr_set_if()
20 if (cpu_feature_enabled(X86_FEATURE_CENTAUR_MCR)) in mtrr_set_if()
24 if (cpu_feature_enabled(X86_FEATURE_CYRIX_ARR)) in mtrr_set_if()
/linux/arch/x86/kernel/
H A Dshstk.c167 if (!cpu_feature_enabled(X86_FEATURE_USER_SHSTK) || in_ia32_syscall()) in shstk_setup()
393 if (!cpu_feature_enabled(X86_FEATURE_USER_SHSTK) || in setup_signal_shadow_stack()
426 if (!cpu_feature_enabled(X86_FEATURE_USER_SHSTK) || in restore_signal_shadow_stack()
449 if (!cpu_feature_enabled(X86_FEATURE_USER_SHSTK) || in shstk_free()
487 if (!cpu_feature_enabled(X86_FEATURE_USER_SHSTK)) in wrss_control()
526 if (!cpu_feature_enabled(X86_FEATURE_USER_SHSTK)) in shstk_disable()
550 if (!cpu_feature_enabled(X86_FEATURE_USER_SHSTK)) in SYSCALL_DEFINE3()
H A Despfix_64.c110 if (cpu_feature_enabled(X86_FEATURE_FRED)) in init_espfix_bsp()
137 if (cpu_feature_enabled(X86_FEATURE_FRED)) in init_espfix_ap()
H A Dalternative.c191 if (!cpu_feature_enabled(X86_FEATURE_INDIRECT_THUNK_ITS)) in its_init_mod()
201 if (!cpu_feature_enabled(X86_FEATURE_INDIRECT_THUNK_ITS)) in its_fini_mod()
216 if (!cpu_feature_enabled(X86_FEATURE_INDIRECT_THUNK_ITS)) in its_free_mod()
851 if (!cpu_feature_enabled(X86_FEATURE_INDIRECT_THUNK_ITS)) in cpu_wants_indirect_its_thunk_at()
902 if (cpu_feature_enabled(X86_FEATURE_RETPOLINE) && in patch_retpoline()
903 !cpu_feature_enabled(X86_FEATURE_RETPOLINE_LFENCE)) { in patch_retpoline()
904 if (cpu_feature_enabled(X86_FEATURE_CALL_DEPTH)) in patch_retpoline()
939 if (cpu_feature_enabled(X86_FEATURE_RETPOLINE_LFENCE)) { in patch_retpoline()
1030 return cpu_feature_enabled(X86_FEATURE_RETHUNK); in cpu_wants_rethunk()
1035 if (!cpu_feature_enabled(X86_FEATURE_RETHUNK)) in cpu_wants_rethunk_at()
[all …]
/linux/arch/x86/kernel/fpu/
H A Dxstate.c181 if (!cpu_feature_enabled(X86_FEATURE_XCOMPACTED) || in xfeature_get_offset()
219 if (cpu_feature_enabled(X86_FEATURE_XFD)) in fpu__init_cpu_xstate()
346 if (cpu_feature_enabled(X86_FEATURE_XSAVES)) in os_xrstor_booting()
621 bool compacted = cpu_feature_enabled(X86_FEATURE_XCOMPACTED); in paranoid_xstate_size_valid()
622 bool xsaves = cpu_feature_enabled(X86_FEATURE_XSAVES); in paranoid_xstate_size_valid()
719 bool compacted = cpu_feature_enabled(X86_FEATURE_XCOMPACTED); in init_xstate_size()
872 if (!cpu_feature_enabled(X86_FEATURE_XFD)) in fpu__init_system_xstate()
875 if (!cpu_feature_enabled(X86_FEATURE_XSAVES)) in fpu__init_system_xstate()
904 if (cpu_feature_enabled(X86_FEATURE_XSAVEC) || in fpu__init_system_xstate()
905 cpu_feature_enabled(X86_FEATURE_XSAVES)) in fpu__init_system_xstate()
[all …]
H A Dcore.c422 if (cpu_feature_enabled(X86_FEATURE_XSAVE)) { in fpu_copy_guest_fpstate_to_uabi()
440 if (!cpu_feature_enabled(X86_FEATURE_XSAVE)) { in fpu_copy_uabi_to_guest_fpstate()
561 if (!cpu_feature_enabled(X86_FEATURE_FPU)) { in fpstate_init_user()
568 if (cpu_feature_enabled(X86_FEATURE_FXSR)) in fpstate_init_user()
680 if (!cpu_feature_enabled(X86_FEATURE_FPU)) in fpu_clone()
841 if (!cpu_feature_enabled(X86_FEATURE_FPU)) { in fpu__clear_user_states()
1010 if (cpu_feature_enabled(X86_FEATURE_AMX_TILE) && in fpu_idle_fpregs()
H A Dinit.c194 if (!cpu_feature_enabled(X86_FEATURE_FPU)) { in fpu__init_system_xstate_size_legacy()
196 } else if (cpu_feature_enabled(X86_FEATURE_FXSR)) { in fpu__init_system_xstate_size_legacy()
/linux/arch/x86/kernel/acpi/
H A Dcppc.c119 if (!cpu_feature_enabled(X86_FEATURE_APERFMPERF)) in init_freq_invariance_cppc()
149 if (cpu_feature_enabled(X86_FEATURE_CPPC)) { in amd_get_highest_perf()
264 if (cpu_feature_enabled(X86_FEATURE_ZEN4)) { in amd_get_boost_ratio_numerator()
275 if (cpu_feature_enabled(X86_FEATURE_AMD_HTR_CORES)) { in amd_get_boost_ratio_numerator()
/linux/drivers/iommu/intel/
H A Dsvm.c33 if (cpu_feature_enabled(X86_FEATURE_GBPAGES) && in intel_svm_check()
40 if (cpu_feature_enabled(X86_FEATURE_LA57) && in intel_svm_check()
175 sflags = cpu_feature_enabled(X86_FEATURE_LA57) ? PASID_FLAG_FL5LP : 0; in intel_svm_set_dev_pasid()
/linux/arch/x86/kernel/cpu/
H A Dcommon.c391 if (!cpu_feature_enabled(X86_FEATURE_UMIP)) in setup_umip()
414 if (!cpu_feature_enabled(X86_FEATURE_LASS)) in setup_lass()
565 if (pku_disabled || !cpu_feature_enabled(X86_FEATURE_PKU)) in setup_pku()
573 } else if (!cpu_feature_enabled(X86_FEATURE_OSPKE)) { in setup_pku()
609 if (cpu_feature_enabled(X86_FEATURE_IBT)) { in ibt_save()
622 if (cpu_feature_enabled(X86_FEATURE_IBT)) { in ibt_restore()
639 kernel_ibt = HAS_KERNEL_IBT && cpu_feature_enabled(X86_FEATURE_IBT); in setup_cet()
640 user_shstk = cpu_feature_enabled(X86_FEATURE_SHSTK) && in setup_cet()
665 if (!(cpu_feature_enabled(X86_FEATURE_IBT) || in cet_disable()
666 cpu_feature_enabled(X86_FEATURE_SHSTK))) in cet_disable()
[all …]
H A Daperfmperf.c479 if (!cpu_feature_enabled(X86_FEATURE_APERFMPERF)) in arch_scale_freq_tick()
513 if (!cpu_feature_enabled(X86_FEATURE_APERFMPERF)) in arch_freq_get_on_cpu()
539 if (!cpu_feature_enabled(X86_FEATURE_APERFMPERF)) in bp_init_aperfmperf()
550 if (cpu_feature_enabled(X86_FEATURE_APERFMPERF)) in ap_init_aperfmperf()
H A Dtopology_amd.c88 if (!cpu_feature_enabled(X86_FEATURE_XTOPOLOGY)) { in parse_8000_001e()
179 if (cpu_feature_enabled(X86_FEATURE_AMD_HTR_CORES)) in parse_topology_amd()
H A Dbhyve.c29 if (!cpu_feature_enabled(X86_FEATURE_HYPERVISOR)) in bhyve_detect()
/linux/drivers/cpufreq/
H A Damd-pstate.c161 if (cpu_feature_enabled(X86_FEATURE_ZEN2)) { in dmi_matched_7k62_bios_bug()
808 if (!cpu_feature_enabled(X86_FEATURE_CPB)) { in amd_pstate_init_boost_support()
845 if (cpu_feature_enabled(X86_FEATURE_AMD_WORKLOAD_CLASS) && in amd_pstate_init_prefcore()
894 if (cpu_feature_enabled(X86_FEATURE_AMD_FAST_CPPC)) in amd_pstate_get_transition_delay_us()
1037 if (cpu_feature_enabled(X86_FEATURE_CPPC)) in amd_pstate_cpu_init()
1263 current_pstate_driver->boost_enabled = cpu_feature_enabled(X86_FEATURE_CPB); in amd_pstate_register_driver()
1291 if (cpu_feature_enabled(X86_FEATURE_CPPC) || cppc_state == AMD_PSTATE_ACTIVE) in amd_pstate_change_mode_without_dvr_change()
1746 if (!cpu_feature_enabled(X86_FEATURE_CPPC)) { in amd_cppc_supported()
1747 if (cpu_feature_enabled(X86_FEATURE_ZEN2)) { in amd_cppc_supported()
1754 } else if (cpu_feature_enabled(X86_FEATURE_ZEN3) || in amd_cppc_supported()
[all …]
/linux/arch/x86/kernel/cpu/sgx/
H A Ddriver.c170 if (!cpu_feature_enabled(X86_FEATURE_SGX_LC)) { in sgx_drv_init()
189 if (cpu_feature_enabled(X86_FEATURE_OSXSAVE)) { in sgx_drv_init()
/linux/arch/x86/include/asm/fpu/
H A Dsched.h35 cpu_feature_enabled(X86_FEATURE_FPU) && in switch_fpu()
/linux/drivers/pps/generators/
H A Dpps_gen_tio.c205 if (!(cpu_feature_enabled(X86_FEATURE_TSC_KNOWN_FREQ) && in pps_gen_tio_probe()
206 cpu_feature_enabled(X86_FEATURE_ART))) { in pps_gen_tio_probe()

1234