/kernel/linux/linux-5.10/arch/x86/include/asm/ |
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()
|
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()
|
D | cpufeature.h | 136 (__builtin_constant_p(bit) && DISABLED_MASK_BIT_SET(bit) ? 0 : static_cpu_has(bit)) 162 #define static_cpu_has(bit) boot_cpu_has(bit) macro 194 #define static_cpu_has(bit) \ macro 206 #define static_cpu_has_bug(bit) static_cpu_has((bit))
|
D | switch_to.h | 69 if (static_cpu_has(X86_FEATURE_XENPV)) in update_task_stack() 80 if (static_cpu_has(X86_FEATURE_XENPV)) in update_task_stack()
|
D | pgtable-3level_types.h | 23 #define SHARED_KERNEL_PMD (!static_cpu_has(X86_FEATURE_PTI))
|
D | debugreg.h | 99 if (static_cpu_has(X86_FEATURE_HYPERVISOR) && !hw_breakpoint_active()) in local_db_save()
|
/kernel/linux/linux-5.10/arch/x86/kernel/fpu/ |
D | core.c | 197 if (!static_cpu_has(X86_FEATURE_FPU)) { in fpstate_init() 204 if (static_cpu_has(X86_FEATURE_XSAVES)) in fpstate_init() 206 if (static_cpu_has(X86_FEATURE_FXSR)) in fpstate_init() 220 if (!static_cpu_has(X86_FEATURE_FPU)) in fpu__copy() 347 else if (static_cpu_has(X86_FEATURE_FXSR)) in copy_init_fpstate_to_fpregs() 366 if (!static_cpu_has(X86_FEATURE_FPU)) { in fpu__clear() 403 if (!static_cpu_has(X86_FEATURE_FPU)) in switch_fpu_return()
|
D | signal.c | 173 if (!static_cpu_has(X86_FEATURE_FPU)) { in copy_fpstate_to_sigframe() 305 if (!static_cpu_has(X86_FEATURE_FPU)) { in __fpu__restore_sig()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_cache.c | 85 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()
|
/kernel/linux/linux-5.10/arch/x86/include/asm/fpu/ |
D | internal.h | 64 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() 397 if (static_cpu_has(X86_FEATURE_XSAVES)) in copy_kernel_to_xregs_err() 538 if (static_cpu_has(X86_FEATURE_FPU) && !(prev->flags & PF_KTHREAD)) { in switch_fpu_prepare() 563 if (!static_cpu_has(X86_FEATURE_FPU)) in switch_fpu_finish()
|
/kernel/linux/linux-5.10/arch/x86/lib/ |
D | copy_mc.c | 70 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()
|
D | usercopy_32.c | 349 if (n > 64 && static_cpu_has(X86_FEATURE_XMM2)) in __copy_from_user_ll_nocache_nozero()
|
/kernel/linux/linux-5.10/arch/x86/events/intel/ |
D | lbr.c | 177 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() 706 if (!static_cpu_has(X86_FEATURE_ARCH_LBR)) in release_lbr_buffers() 725 if (!static_cpu_has(X86_FEATURE_ARCH_LBR)) in reserve_lbr_buffers() 916 if (!static_cpu_has(X86_FEATURE_ARCH_LBR) || !x86_pmu.lbr_br_type) in get_lbr_br_type() 924 if (static_cpu_has(X86_FEATURE_ARCH_LBR) && !x86_pmu.lbr_mispred) in get_lbr_mispred() [all …]
|
/kernel/linux/linux-5.10/arch/x86/mm/ |
D | tlb.c | 150 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()
|
D | extable.c | 134 if (static_cpu_has(X86_BUG_NULL_SEG)) in ex_handler_clear_fs()
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
D | process_64.c | 167 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()
|
D | process.c | 489 if (!static_cpu_has(X86_FEATURE_ZEN)) { in amd_set_core_ssb_state() 556 if (static_cpu_has(X86_FEATURE_VIRT_SSBD)) { in __speculation_ctrl_update() 559 } else if (static_cpu_has(X86_FEATURE_LS_CFG_SSBD)) { in __speculation_ctrl_update() 562 } else if (static_cpu_has(X86_FEATURE_SPEC_CTRL_SSBD) || in __speculation_ctrl_update() 563 static_cpu_has(X86_FEATURE_AMD_SSBD)) { in __speculation_ctrl_update()
|
D | time.c | 103 if (static_cpu_has(X86_FEATURE_WAITPKG)) in x86_late_time_init()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | i915_memcpy.c | 165 if (static_cpu_has(X86_FEATURE_XMM4_1) && in i915_memcpy_init_early()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/ |
D | i915_gem_domain.c | 569 !static_cpu_has(X86_FEATURE_CLFLUSH)) { in i915_gem_object_prepare_read() 620 !static_cpu_has(X86_FEATURE_CLFLUSH)) { in i915_gem_object_prepare_write()
|
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/ |
D | bugs.c | 206 if (static_cpu_has(X86_FEATURE_MSR_SPEC_CTRL)) { in x86_virt_spec_ctrl() 217 if (!static_cpu_has(X86_FEATURE_LS_CFG_SSBD) && in x86_virt_spec_ctrl() 218 !static_cpu_has(X86_FEATURE_VIRT_SSBD)) in x86_virt_spec_ctrl() 226 if (static_cpu_has(X86_FEATURE_SPEC_STORE_BYPASS_DISABLE)) in x86_virt_spec_ctrl() 1776 if (!static_cpu_has(X86_FEATURE_SPEC_CTRL_SSBD) && in __ssb_select_mitigation() 1777 !static_cpu_has(X86_FEATURE_AMD_SSBD)) { in __ssb_select_mitigation()
|
/kernel/linux/linux-5.10/arch/x86/entry/ |
D | common.c | 192 return static_cpu_has(X86_FEATURE_SEP) && in do_fast_syscall_32()
|
/kernel/linux/linux-5.10/arch/x86/kernel/apic/ |
D | apic_numachip.c | 33 if (static_cpu_has(X86_FEATURE_NODEID_MSR)) { in numachip1_get_apic_id()
|
/kernel/linux/linux-5.10/arch/x86/kvm/svm/ |
D | svm.c | 334 WARN_ON_ONCE(!static_cpu_has(X86_FEATURE_NRIPS)); in skip_emulated_instruction() 446 if (static_cpu_has(X86_FEATURE_TSCRATEMSR)) in svm_hardware_disable() 488 if (static_cpu_has(X86_FEATURE_TSCRATEMSR)) { in svm_hardware_enable() 1382 if (static_cpu_has(X86_FEATURE_TSCRATEMSR)) { in svm_vcpu_load() 1390 if (static_cpu_has(X86_FEATURE_RDTSCP)) in svm_vcpu_load() 1810 static_cpu_has(X86_FEATURE_DECODEASSISTS) ? in pf_interception() 1822 static_cpu_has(X86_FEATURE_DECODEASSISTS) ? in npf_interception() 2291 if (!static_cpu_has(X86_FEATURE_DECODEASSISTS)) in invlpg_interception() 2348 if (!static_cpu_has(X86_FEATURE_DECODEASSISTS)) in cr_interception() 3362 if (static_cpu_has(X86_FEATURE_FLUSHBYASID)) in svm_flush_tlb() [all …]
|
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/mtrr/ |
D | generic.c | 753 if (!static_cpu_has(X86_FEATURE_SELFSNOOP)) in prepare_set() 773 if (!static_cpu_has(X86_FEATURE_SELFSNOOP)) in prepare_set()
|