| /linux/arch/x86/include/asm/ |
| A D | archrandom.h | 75 return static_cpu_has(X86_FEATURE_RDRAND) ? rdrand_long(v) : false; in arch_get_random_long() 80 return static_cpu_has(X86_FEATURE_RDRAND) ? rdrand_int(v) : false; in arch_get_random_int() 85 return static_cpu_has(X86_FEATURE_RDSEED) ? rdseed_long(v) : false; in arch_get_random_seed_long() 90 return static_cpu_has(X86_FEATURE_RDSEED) ? rdseed_int(v) : false; in arch_get_random_seed_int()
|
| A D | cpufeature.h | 139 (__builtin_constant_p(bit) && DISABLED_MASK_BIT_SET(bit) ? 0 : static_cpu_has(bit)) 165 #define static_cpu_has(bit) boot_cpu_has(bit) macro 202 #define static_cpu_has(bit) \ macro 214 #define static_cpu_has_bug(bit) static_cpu_has((bit))
|
| A D | sync_core.h | 64 if (static_cpu_has(X86_FEATURE_SERIALIZE)) { in sync_core() 99 if (static_cpu_has(X86_FEATURE_PTI)) in sync_core_before_usermode()
|
| A D | switch_to.h | 69 if (static_cpu_has(X86_FEATURE_XENPV)) in update_task_stack() 75 if (static_cpu_has(X86_FEATURE_XENPV)) in update_task_stack()
|
| A D | pgtable-3level_types.h | 23 #define SHARED_KERNEL_PMD (!static_cpu_has(X86_FEATURE_PTI))
|
| A D | debugreg.h | 99 if (static_cpu_has(X86_FEATURE_HYPERVISOR) && !hw_breakpoint_active()) in local_db_save()
|
| /linux/arch/um/include/asm/ |
| A D | cpufeature.h | 53 (__builtin_constant_p(bit) && DISABLED_MASK_BIT_SET(bit) ? 0 : static_cpu_has(bit)) 78 #define static_cpu_has(bit) boot_cpu_has(bit) macro 134 #define static_cpu_has(bit) \ macro 145 #define static_cpu_has_bug(bit) static_cpu_has((bit))
|
| /linux/drivers/gpu/drm/ |
| A D | drm_cache.c | 91 if (static_cpu_has(X86_FEATURE_CLFLUSH)) { in drm_clflush_pages() 132 if (static_cpu_has(X86_FEATURE_CLFLUSH)) { in drm_clflush_sg() 164 if (static_cpu_has(X86_FEATURE_CLFLUSH)) { in drm_clflush_virt_range() 341 if (static_cpu_has(X86_FEATURE_XMM4_1) && in drm_memcpy_init_early()
|
| /linux/arch/x86/events/intel/ |
| A D | lbr.c | 177 if (static_cpu_has(X86_FEATURE_ARCH_LBR)) in is_lbr_call_stack_bit_set() 212 if (!static_cpu_has(X86_FEATURE_ARCH_LBR)) in __intel_pmu_lbr_enable() 227 if (static_cpu_has(X86_FEATURE_ARCH_LBR)) in __intel_pmu_lbr_enable() 487 if (static_cpu_has(X86_FEATURE_ARCH_LBR)) in lbr_is_reset_in_cstate() 694 if (!static_cpu_has(X86_FEATURE_ARCH_LBR)) in release_lbr_buffers() 713 if (!static_cpu_has(X86_FEATURE_ARCH_LBR)) in reserve_lbr_buffers() 771 if (static_cpu_has(X86_FEATURE_ARCH_LBR)) in intel_pmu_lbr_disable_all() 932 if (static_cpu_has(X86_FEATURE_ARCH_LBR) && in get_lbr_cycles() 1107 if (static_cpu_has(X86_FEATURE_ARCH_LBR)) { in intel_pmu_setup_hw_lbr_filter() 1420 if (static_cpu_has(X86_FEATURE_ARCH_LBR) && in intel_pmu_lbr_filter() [all …]
|
| /linux/arch/x86/lib/ |
| A D | copy_mc.c | 66 if (static_cpu_has(X86_FEATURE_ERMS)) in copy_mc_to_kernel() 84 if (static_cpu_has(X86_FEATURE_ERMS)) { in copy_mc_to_user()
|
| A D | usercopy_32.c | 349 if (n > 64 && static_cpu_has(X86_FEATURE_XMM2)) in __copy_from_user_ll_nocache_nozero()
|
| /linux/arch/x86/mm/ |
| A D | tlb.c | 158 if (static_cpu_has(X86_FEATURE_PCID)) { in build_cr3() 192 if (!static_cpu_has(X86_FEATURE_PTI)) { in clear_asid_other() 218 if (!static_cpu_has(X86_FEATURE_PCID)) { in choose_new_asid() 269 if (!static_cpu_has(X86_FEATURE_PTI)) in invalidate_user_asid() 1107 if (!static_cpu_has(X86_FEATURE_PTI)) in flush_tlb_one_kernel() 1128 if (!static_cpu_has(X86_FEATURE_PTI)) in native_flush_tlb_one_user() 1153 if (static_cpu_has(X86_FEATURE_INVPCID)) { in native_flush_tlb_global()
|
| A D | extable.c | 96 if (static_cpu_has(X86_BUG_NULL_SEG)) in ex_handler_clear_fs()
|
| /linux/arch/x86/kernel/cpu/ |
| A D | bugs.c | 171 if (static_cpu_has(X86_FEATURE_MSR_SPEC_CTRL)) { in x86_virt_spec_ctrl() 181 if (static_cpu_has(X86_FEATURE_SPEC_CTRL_SSBD) || in x86_virt_spec_ctrl() 182 static_cpu_has(X86_FEATURE_AMD_SSBD)) in x86_virt_spec_ctrl() 199 if (!static_cpu_has(X86_FEATURE_LS_CFG_SSBD) && in x86_virt_spec_ctrl() 200 !static_cpu_has(X86_FEATURE_VIRT_SSBD)) in x86_virt_spec_ctrl() 208 if (static_cpu_has(X86_FEATURE_SPEC_STORE_BYPASS_DISABLE)) in x86_virt_spec_ctrl() 1191 if (static_cpu_has(X86_FEATURE_SPEC_CTRL_SSBD) || in __ssb_select_mitigation() 1192 static_cpu_has(X86_FEATURE_AMD_SSBD)) { in __ssb_select_mitigation() 1208 if (!static_cpu_has(X86_FEATURE_SPEC_CTRL_SSBD) && in __ssb_select_mitigation() 1209 !static_cpu_has(X86_FEATURE_AMD_SSBD)) { in __ssb_select_mitigation()
|
| /linux/arch/x86/kernel/ |
| A D | process.c | 516 if (!static_cpu_has(X86_FEATURE_ZEN)) { in amd_set_core_ssb_state() 583 if (static_cpu_has(X86_FEATURE_VIRT_SSBD)) { in __speculation_ctrl_update() 586 } else if (static_cpu_has(X86_FEATURE_LS_CFG_SSBD)) { in __speculation_ctrl_update() 589 } else if (static_cpu_has(X86_FEATURE_SPEC_CTRL_SSBD) || in __speculation_ctrl_update() 590 static_cpu_has(X86_FEATURE_AMD_SSBD)) { in __speculation_ctrl_update()
|
| A D | process_64.c | 168 if (!static_cpu_has(X86_FEATURE_XENPV)) { in __rdgsbase_inactive() 193 if (!static_cpu_has(X86_FEATURE_XENPV)) { in __wrgsbase_inactive() 253 if (static_cpu_has(X86_FEATURE_FSGSBASE)) { in save_fsgs() 369 if (static_cpu_has(X86_FEATURE_FSGSBASE)) { in x86_fsgsbase_load() 511 if (static_cpu_has(X86_BUG_NULL_SEG)) { in start_thread_common()
|
| A D | time.c | 103 if (static_cpu_has(X86_FEATURE_WAITPKG)) in x86_late_time_init()
|
| A D | traps.c | 572 if (static_cpu_has(X86_FEATURE_UMIP)) { in DEFINE_IDTENTRY_ERRORCODE() 1114 if (!static_cpu_has(X86_FEATURE_XMM)) { in DEFINE_IDTENTRY()
|
| /linux/drivers/gpu/drm/i915/ |
| A D | i915_memcpy.c | 165 if (static_cpu_has(X86_FEATURE_XMM4_1) && in i915_memcpy_init_early()
|
| /linux/drivers/gpu/drm/i915/gem/ |
| A D | i915_gem_domain.c | 631 !static_cpu_has(X86_FEATURE_CLFLUSH)) { in i915_gem_object_prepare_read() 682 !static_cpu_has(X86_FEATURE_CLFLUSH)) { in i915_gem_object_prepare_write()
|
| /linux/arch/x86/entry/ |
| A D | common.c | 230 return static_cpu_has(X86_FEATURE_SEP) && in do_fast_syscall_32()
|
| /linux/arch/x86/kernel/apic/ |
| A D | apic_numachip.c | 33 if (static_cpu_has(X86_FEATURE_NODEID_MSR)) { in numachip1_get_apic_id()
|
| /linux/arch/x86/kernel/cpu/mtrr/ |
| A D | generic.c | 752 if (!static_cpu_has(X86_FEATURE_SELFSNOOP)) in prepare_set() 772 if (!static_cpu_has(X86_FEATURE_SELFSNOOP)) in prepare_set()
|
| /linux/arch/x86/kvm/svm/ |
| A D | svm.c | 364 WARN_ON_ONCE(!static_cpu_has(X86_FEATURE_NRIPS)); in skip_emulated_instruction() 520 if (static_cpu_has(X86_FEATURE_TSCRATEMSR)) { in svm_hardware_enable() 1973 static_cpu_has(X86_FEATURE_DECODEASSISTS) ? in pf_interception() 1987 static_cpu_has(X86_FEATURE_DECODEASSISTS) ? in npf_interception() 2495 if (!static_cpu_has(X86_FEATURE_DECODEASSISTS)) in invlpg_interception() 2543 if (!static_cpu_has(X86_FEATURE_DECODEASSISTS)) in cr_interception() 3681 if (static_cpu_has(X86_FEATURE_FLUSHBYASID)) in svm_flush_tlb() 3898 if (!static_cpu_has(X86_FEATURE_V_SPEC_CTRL)) in svm_vcpu_run() 3918 if (!static_cpu_has(X86_FEATURE_V_SPEC_CTRL) && in svm_vcpu_run() 3925 if (!static_cpu_has(X86_FEATURE_V_SPEC_CTRL)) in svm_vcpu_run() [all …]
|
| /linux/drivers/gpu/drm/i915/gt/ |
| A D | intel_engine.h | 147 if (static_cpu_has(X86_FEATURE_CLFLUSH)) { in intel_write_status_page()
|