Home
last modified time | relevance | path

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

12

/Linux-v5.10/arch/x86/include/asm/
Darchrandom.h75 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()
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()
Dcpufeature.h135 (__builtin_constant_p(bit) && DISABLED_MASK_BIT_SET(bit) ? 0 : static_cpu_has(bit))
161 #define static_cpu_has(bit) boot_cpu_has(bit) macro
217 #define static_cpu_has(bit) \ macro
229 #define static_cpu_has_bug(bit) static_cpu_has((bit))
Dswitch_to.h69 if (static_cpu_has(X86_FEATURE_XENPV)) in update_task_stack()
80 if (static_cpu_has(X86_FEATURE_XENPV)) in update_task_stack()
Dpgtable-3level_types.h23 #define SHARED_KERNEL_PMD (!static_cpu_has(X86_FEATURE_PTI))
Ddebugreg.h99 if (static_cpu_has(X86_FEATURE_HYPERVISOR) && !hw_breakpoint_active()) in local_db_save()
/Linux-v5.10/arch/x86/kernel/fpu/
Dcore.c196 if (!static_cpu_has(X86_FEATURE_FPU)) { in fpstate_init()
203 if (static_cpu_has(X86_FEATURE_XSAVES)) in fpstate_init()
205 if (static_cpu_has(X86_FEATURE_FXSR)) in fpstate_init()
219 if (!static_cpu_has(X86_FEATURE_FPU)) in fpu__copy()
346 else if (static_cpu_has(X86_FEATURE_FXSR)) in copy_init_fpstate_to_fpregs()
365 if (!static_cpu_has(X86_FEATURE_FPU)) { in fpu__clear()
402 if (!static_cpu_has(X86_FEATURE_FPU)) in switch_fpu_return()
Dsignal.c173 if (!static_cpu_has(X86_FEATURE_FPU)) { in copy_fpstate_to_sigframe()
313 if (!static_cpu_has(X86_FEATURE_FPU)) in __fpu__restore_sig()
/Linux-v5.10/drivers/gpu/drm/
Ddrm_cache.c85 if (static_cpu_has(X86_FEATURE_CLFLUSH)) { in drm_clflush_pages()
126 if (static_cpu_has(X86_FEATURE_CLFLUSH)) { in drm_clflush_sg()
158 if (static_cpu_has(X86_FEATURE_CLFLUSH)) { in drm_clflush_virt_range()
/Linux-v5.10/arch/x86/include/asm/fpu/
Dinternal.h64 return static_cpu_has(X86_FEATURE_XSAVEOPT); in use_xsaveopt()
69 return static_cpu_has(X86_FEATURE_XSAVE); in use_xsave()
74 return static_cpu_has(X86_FEATURE_FXSR); in use_fxsr()
406 if (static_cpu_has(X86_FEATURE_XSAVES)) in copy_kernel_to_xregs_err()
545 if (static_cpu_has(X86_FEATURE_FPU) && !(current->flags & PF_KTHREAD)) { in switch_fpu_prepare()
569 if (!static_cpu_has(X86_FEATURE_FPU)) in switch_fpu_finish()
/Linux-v5.10/arch/x86/lib/
Dcopy_mc.c70 if (static_cpu_has(X86_FEATURE_ERMS)) in copy_mc_to_kernel()
88 if (static_cpu_has(X86_FEATURE_ERMS)) { in copy_mc_to_user()
Dusercopy_32.c349 if (n > 64 && static_cpu_has(X86_FEATURE_XMM2)) in __copy_from_user_ll_nocache_nozero()
/Linux-v5.10/arch/x86/events/intel/
Dlbr.c177 if (static_cpu_has(X86_FEATURE_ARCH_LBR)) in is_lbr_call_stack_bit_set()
206 if (!static_cpu_has(X86_FEATURE_ARCH_LBR) && !pmi && cpuc->lbr_sel) in __intel_pmu_lbr_enable()
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()
235 if (static_cpu_has(X86_FEATURE_ARCH_LBR)) { in __intel_pmu_lbr_disable()
499 if (static_cpu_has(X86_FEATURE_ARCH_LBR)) in lbr_is_reset_in_cstate()
700 if (static_cpu_has(X86_FEATURE_ARCH_LBR) && in intel_pmu_lbr_add()
712 if (!static_cpu_has(X86_FEATURE_ARCH_LBR)) in release_lbr_buffers()
900 if (!static_cpu_has(X86_FEATURE_ARCH_LBR) || !x86_pmu.lbr_br_type) in get_lbr_br_type()
908 if (static_cpu_has(X86_FEATURE_ARCH_LBR) && !x86_pmu.lbr_mispred) in get_lbr_mispred()
[all …]
/Linux-v5.10/arch/x86/mm/
Dtlb.c150 if (static_cpu_has(X86_FEATURE_PCID)) { in build_cr3()
184 if (!static_cpu_has(X86_FEATURE_PTI)) { in clear_asid_other()
210 if (!static_cpu_has(X86_FEATURE_PCID)) { in choose_new_asid()
261 if (!static_cpu_has(X86_FEATURE_PTI)) in invalidate_user_asid()
1004 if (!static_cpu_has(X86_FEATURE_PTI)) in flush_tlb_one_kernel()
1025 if (!static_cpu_has(X86_FEATURE_PTI)) in native_flush_tlb_one_user()
1050 if (static_cpu_has(X86_FEATURE_INVPCID)) { in native_flush_tlb_global()
Dextable.c134 if (static_cpu_has(X86_BUG_NULL_SEG)) in ex_handler_clear_fs()
/Linux-v5.10/arch/x86/kernel/cpu/
Dbugs.c162 if (static_cpu_has(X86_FEATURE_MSR_SPEC_CTRL)) { in x86_virt_spec_ctrl()
172 if (static_cpu_has(X86_FEATURE_SPEC_CTRL_SSBD) || in x86_virt_spec_ctrl()
173 static_cpu_has(X86_FEATURE_AMD_SSBD)) in x86_virt_spec_ctrl()
190 if (!static_cpu_has(X86_FEATURE_LS_CFG_SSBD) && in x86_virt_spec_ctrl()
191 !static_cpu_has(X86_FEATURE_VIRT_SSBD)) in x86_virt_spec_ctrl()
199 if (static_cpu_has(X86_FEATURE_SPEC_STORE_BYPASS_DISABLE)) in x86_virt_spec_ctrl()
1161 if (static_cpu_has(X86_FEATURE_SPEC_CTRL_SSBD) || in __ssb_select_mitigation()
1162 static_cpu_has(X86_FEATURE_AMD_SSBD)) { in __ssb_select_mitigation()
1178 if (!static_cpu_has(X86_FEATURE_SPEC_CTRL_SSBD) && in __ssb_select_mitigation()
1179 !static_cpu_has(X86_FEATURE_AMD_SSBD)) { in __ssb_select_mitigation()
/Linux-v5.10/arch/x86/kernel/
Dprocess_64.c167 if (!static_cpu_has(X86_FEATURE_XENPV)) { in __rdgsbase_inactive()
192 if (!static_cpu_has(X86_FEATURE_XENPV)) { in __wrgsbase_inactive()
252 if (static_cpu_has(X86_FEATURE_FSGSBASE)) { in save_fsgs()
345 if (static_cpu_has(X86_FEATURE_FSGSBASE)) { in x86_fsgsbase_load()
487 if (static_cpu_has(X86_BUG_NULL_SEG)) { in start_thread_common()
Dprocess.c471 if (!static_cpu_has(X86_FEATURE_ZEN)) { in amd_set_core_ssb_state()
538 if (static_cpu_has(X86_FEATURE_VIRT_SSBD)) { in __speculation_ctrl_update()
541 } else if (static_cpu_has(X86_FEATURE_LS_CFG_SSBD)) { in __speculation_ctrl_update()
544 } else if (static_cpu_has(X86_FEATURE_SPEC_CTRL_SSBD) || in __speculation_ctrl_update()
545 static_cpu_has(X86_FEATURE_AMD_SSBD)) { in __speculation_ctrl_update()
Dtime.c103 if (static_cpu_has(X86_FEATURE_WAITPKG)) in x86_late_time_init()
/Linux-v5.10/drivers/gpu/drm/i915/
Di915_memcpy.c165 if (static_cpu_has(X86_FEATURE_XMM4_1) && in i915_memcpy_init_early()
/Linux-v5.10/drivers/gpu/drm/i915/gem/
Di915_gem_domain.c614 !static_cpu_has(X86_FEATURE_CLFLUSH)) { in i915_gem_object_prepare_read()
665 !static_cpu_has(X86_FEATURE_CLFLUSH)) { in i915_gem_object_prepare_write()
/Linux-v5.10/arch/x86/entry/
Dcommon.c187 return static_cpu_has(X86_FEATURE_SEP) && in do_fast_syscall_32()
/Linux-v5.10/arch/x86/kernel/apic/
Dapic_numachip.c33 if (static_cpu_has(X86_FEATURE_NODEID_MSR)) { in numachip1_get_apic_id()
/Linux-v5.10/arch/x86/kvm/svm/
Dsvm.c340 WARN_ON_ONCE(!static_cpu_has(X86_FEATURE_NRIPS)); in skip_emulated_instruction()
447 if (static_cpu_has(X86_FEATURE_TSCRATEMSR)) in svm_hardware_disable()
489 if (static_cpu_has(X86_FEATURE_TSCRATEMSR)) { in svm_hardware_enable()
1381 if (static_cpu_has(X86_FEATURE_TSCRATEMSR)) { in svm_vcpu_load()
1389 if (static_cpu_has(X86_FEATURE_RDTSCP)) in svm_vcpu_load()
1806 static_cpu_has(X86_FEATURE_DECODEASSISTS) ? in pf_interception()
1818 static_cpu_has(X86_FEATURE_DECODEASSISTS) ? in npf_interception()
2287 if (!static_cpu_has(X86_FEATURE_DECODEASSISTS)) in invlpg_interception()
2344 if (!static_cpu_has(X86_FEATURE_DECODEASSISTS)) in cr_interception()
3359 if (static_cpu_has(X86_FEATURE_FLUSHBYASID)) in svm_flush_tlb()
[all …]
/Linux-v5.10/arch/x86/kernel/cpu/mtrr/
Dgeneric.c753 if (!static_cpu_has(X86_FEATURE_SELFSNOOP)) in prepare_set()
773 if (!static_cpu_has(X86_FEATURE_SELFSNOOP)) in prepare_set()

12