Home
last modified time | relevance | path

Searched refs:static_cpu_has (Results 1 – 25 of 37) sorted by relevance

12

/openbmc/linux/arch/um/include/asm/
H A Dcpufeature.h53 (__builtin_constant_p(bit) && DISABLED_MASK_BIT_SET(bit) ? 0 : static_cpu_has(bit))
120 #define static_cpu_has(bit) \ macro
130 #define static_cpu_has_bug(bit) static_cpu_has((bit))
/openbmc/linux/arch/x86/include/asm/
H A Dsync_core.h64 if (static_cpu_has(X86_FEATURE_SERIALIZE)) { in sync_core()
99 if (static_cpu_has(X86_FEATURE_PTI)) in sync_core_before_usermode()
H A Darchrandom.h50 return max_longs && static_cpu_has(X86_FEATURE_RDRAND) && rdrand_long(v) ? 1 : 0; in arch_get_random_longs()
55 return max_longs && static_cpu_has(X86_FEATURE_RDSEED) && rdseed_long(v) ? 1 : 0; in arch_get_random_seed_longs()
H A Dcpufeature.h144 (__builtin_constant_p(bit) && DISABLED_MASK_BIT_SET(bit) ? 0 : static_cpu_has(bit))
193 #define static_cpu_has(bit) \ macro
204 #define static_cpu_has_bug(bit) static_cpu_has((bit))
H A Dpgtable-3level_types.h30 #define SHARED_KERNEL_PMD (!static_cpu_has(X86_FEATURE_PTI))
H A Ddebugreg.h121 if (static_cpu_has(X86_FEATURE_HYPERVISOR) && !hw_breakpoint_active()) in local_db_save()
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_cache.c91 if (static_cpu_has(X86_FEATURE_CLFLUSH)) { in drm_clflush_pages()
131 if (static_cpu_has(X86_FEATURE_CLFLUSH)) { in drm_clflush_sg()
162 if (static_cpu_has(X86_FEATURE_CLFLUSH)) { in drm_clflush_virt_range()
338 if (static_cpu_has(X86_FEATURE_XMM4_1) && in drm_memcpy_init_early()
/openbmc/linux/arch/x86/lib/
H A Dcopy_mc.c66 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()
H A Dusercopy_32.c330 if (n > 64 && static_cpu_has(X86_FEATURE_XMM2)) in __copy_from_user_ll_nocache_nozero()
/openbmc/linux/arch/x86/events/intel/
H A Dlbr.c109 if (static_cpu_has(X86_FEATURE_ARCH_LBR)) in is_lbr_call_stack_bit_set()
138 if (!static_cpu_has(X86_FEATURE_ARCH_LBR) && !pmi && cpuc->lbr_sel) in __intel_pmu_lbr_enable()
144 if (!static_cpu_has(X86_FEATURE_ARCH_LBR)) in __intel_pmu_lbr_enable()
159 if (static_cpu_has(X86_FEATURE_ARCH_LBR)) in __intel_pmu_lbr_enable()
200 if (!static_cpu_has(X86_FEATURE_ARCH_LBR) && cpuc->lbr_select) in intel_pmu_lbr_reset()
418 if (static_cpu_has(X86_FEATURE_ARCH_LBR)) in lbr_is_reset_in_cstate()
625 if (!static_cpu_has(X86_FEATURE_ARCH_LBR)) in release_lbr_buffers()
644 if (!static_cpu_has(X86_FEATURE_ARCH_LBR)) in reserve_lbr_buffers()
702 if (static_cpu_has(X86_FEATURE_ARCH_LBR)) in intel_pmu_lbr_disable_all()
861 if (static_cpu_has(X86_FEATURE_ARCH_LBR) && in get_lbr_cycles()
[all …]
/openbmc/linux/arch/x86/mm/
H A Dtlb.c163 if (static_cpu_has(X86_FEATURE_PCID)) { in build_cr3()
199 if (!static_cpu_has(X86_FEATURE_PTI)) { in clear_asid_other()
225 if (!static_cpu_has(X86_FEATURE_PCID)) { in choose_new_asid()
276 if (!static_cpu_has(X86_FEATURE_PTI)) in invalidate_user_asid()
1128 if (!static_cpu_has(X86_FEATURE_PTI)) in flush_tlb_one_kernel()
1152 if (!static_cpu_has(X86_FEATURE_PTI)) in native_flush_tlb_one_user()
1181 if (static_cpu_has(X86_FEATURE_INVPCID)) { in native_flush_tlb_global()
H A Dextable.c204 if (static_cpu_has(X86_BUG_NULL_SEG)) in ex_handler_clear_fs()
/openbmc/linux/arch/x86/kernel/
H A Dprocess.c556 if (!static_cpu_has(X86_FEATURE_ZEN)) { in amd_set_core_ssb_state()
623 if (static_cpu_has(X86_FEATURE_VIRT_SSBD)) { in __speculation_ctrl_update()
626 } else if (static_cpu_has(X86_FEATURE_LS_CFG_SSBD)) { in __speculation_ctrl_update()
629 } else if (static_cpu_has(X86_FEATURE_SPEC_CTRL_SSBD) || in __speculation_ctrl_update()
630 static_cpu_has(X86_FEATURE_AMD_SSBD)) { in __speculation_ctrl_update()
H A Dtime.c85 if (static_cpu_has(X86_FEATURE_WAITPKG)) in x86_late_time_init()
H A Dprocess_64.c254 if (static_cpu_has(X86_FEATURE_FSGSBASE)) { in save_fsgs()
370 if (static_cpu_has(X86_FEATURE_FSGSBASE)) { in x86_fsgsbase_load()
512 if (static_cpu_has(X86_BUG_NULL_SEG)) { in start_thread_common()
H A Dtraps.c702 if (static_cpu_has(X86_FEATURE_UMIP)) { in DEFINE_IDTENTRY_ERRORCODE()
1218 if (!static_cpu_has(X86_FEATURE_XMM)) { in DEFINE_IDTENTRY()
H A Dldt.c64 if (static_cpu_has(X86_FEATURE_PTI)) { in load_mm_ldt()
/openbmc/linux/drivers/gpu/drm/i915/
H A Di915_memcpy.c165 if (static_cpu_has(X86_FEATURE_XMM4_1) && in i915_memcpy_init_early()
/openbmc/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_domain.c695 !static_cpu_has(X86_FEATURE_CLFLUSH)) { in i915_gem_object_prepare_read()
746 !static_cpu_has(X86_FEATURE_CLFLUSH)) { in i915_gem_object_prepare_write()
/openbmc/linux/arch/x86/kernel/apic/
H A Dapic_numachip.c33 if (static_cpu_has(X86_FEATURE_NODEID_MSR)) { in numachip1_get_apic_id()
/openbmc/linux/arch/x86/entry/
H A Dcommon.c325 return static_cpu_has(X86_FEATURE_SEP) && in do_fast_syscall_32()
/openbmc/linux/arch/x86/kernel/cpu/
H A Dbugs.c194 if (!static_cpu_has(X86_FEATURE_LS_CFG_SSBD) && in x86_virt_spec_ctrl()
195 !static_cpu_has(X86_FEATURE_VIRT_SSBD)) in x86_virt_spec_ctrl()
203 if (static_cpu_has(X86_FEATURE_SPEC_STORE_BYPASS_DISABLE)) in x86_virt_spec_ctrl()
2112 if (!static_cpu_has(X86_FEATURE_SPEC_CTRL_SSBD) && in __ssb_select_mitigation()
2113 !static_cpu_has(X86_FEATURE_AMD_SSBD)) { in __ssb_select_mitigation()
H A Dcacheinfo.c1085 if (!static_cpu_has(X86_FEATURE_SELFSNOOP)) in cache_disable()
1102 if (!static_cpu_has(X86_FEATURE_SELFSNOOP)) in cache_disable()
/openbmc/linux/arch/x86/kvm/svm/
H A Dsvm.c386 WARN_ON_ONCE(!static_cpu_has(X86_FEATURE_NRIPS)); in __svm_skip_emulated_instruction()
462 if (static_cpu_has(X86_FEATURE_NRIPS)) in svm_update_soft_interrupt_rip()
646 if (static_cpu_has(X86_FEATURE_TSCRATEMSR)) { in svm_hardware_enable()
2070 static_cpu_has(X86_FEATURE_DECODEASSISTS) ? in pf_interception()
2084 static_cpu_has(X86_FEATURE_DECODEASSISTS) ? in npf_interception()
2609 if (!static_cpu_has(X86_FEATURE_DECODEASSISTS)) in invlpg_interception()
2657 if (!static_cpu_has(X86_FEATURE_DECODEASSISTS)) in cr_interception()
3946 if (static_cpu_has(X86_FEATURE_FLUSHBYASID)) in svm_flush_tlb_asid()
4218 if (!static_cpu_has(X86_FEATURE_V_SPEC_CTRL)) in svm_vcpu_run()
4223 if (!static_cpu_has(X86_FEATURE_V_SPEC_CTRL)) in svm_vcpu_run()
[all …]
/openbmc/linux/arch/x86/kernel/fpu/
H A Dsignal.c198 if (!static_cpu_has(X86_FEATURE_FPU)) { in copy_fpstate_to_sigframe()

12