Home
last modified time | relevance | path

Searched refs:static_cpu_has (Results 1 - 25 of 77) sorted by relevance

1234

/kernel/linux/linux-5.10/arch/x86/include/asm/
H A 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()
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 Dcpufeature.h144 (__builtin_constant_p(bit) && DISABLED_MASK_BIT_SET(bit) ? 0 : static_cpu_has(bit))
170 #define static_cpu_has(bit) boot_cpu_has(bit) macro
177 * static_cpu_has() only in fast paths, where every cycle counts. Which
202 #define static_cpu_has(bit) \ macro
214 #define static_cpu_has_bug(bit) static_cpu_has((bit))
H A 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()
H A Dpgtable-3level_types.h23 #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()
/kernel/linux/linux-5.10/arch/x86/kernel/fpu/
H A Dcore.c182 if (!static_cpu_has(X86_FEATURE_FPU)) { in fpstate_init()
189 if (static_cpu_has(X86_FEATURE_XSAVES)) in fpstate_init()
191 if (static_cpu_has(X86_FEATURE_FXSR)) in fpstate_init()
205 if (!static_cpu_has(X86_FEATURE_FPU)) in fpu__copy()
332 else if (static_cpu_has(X86_FEATURE_FXSR)) in copy_init_fpstate_to_fpregs()
351 if (!static_cpu_has(X86_FEATURE_FPU)) { in fpu__clear()
388 if (!static_cpu_has(X86_FEATURE_FPU)) in switch_fpu_return()
/kernel/linux/linux-6.6/arch/um/include/asm/
H A Dcpufeature.h53 (__builtin_constant_p(bit) && DISABLED_MASK_BIT_SET(bit) ? 0 : static_cpu_has(bit))
71 * static_cpu_has() only in fast paths, where every cycle counts. Which
120 #define static_cpu_has(bit) \ macro
130 #define static_cpu_has_bug(bit) static_cpu_has((bit))
/kernel/linux/linux-5.10/drivers/gpu/drm/
H A 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()
/kernel/linux/linux-6.6/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.h140 (__builtin_constant_p(bit) && DISABLED_MASK_BIT_SET(bit) ? 0 : static_cpu_has(bit))
159 * static_cpu_has() only in fast paths, where every cycle counts. Which
189 #define static_cpu_has(bit) \ macro
200 #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))
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/arch/x86/lib/
H A 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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/arch/x86/events/intel/
H A 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()
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_LB in get_lbr_mispred()
[all...]
/kernel/linux/linux-5.10/arch/x86/include/asm/fpu/
H A 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()
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-6.6/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_LB in get_lbr_cycles()
[all...]
/kernel/linux/linux-5.10/arch/x86/mm/
H A 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()
/kernel/linux/linux-6.6/arch/x86/mm/
H A Dtlb.c162 if (static_cpu_has(X86_FEATURE_PCID)) { in build_cr3()
198 if (!static_cpu_has(X86_FEATURE_PTI)) { in clear_asid_other()
224 if (!static_cpu_has(X86_FEATURE_PCID)) { in choose_new_asid()
275 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()
/kernel/linux/linux-5.10/arch/x86/kernel/
H A 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()
H A Dprocess.c489 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()
764 * gets set after static_cpu_has() places have been converted via in amd_e400_idle()
/kernel/linux/linux-6.6/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()
858 * gets set after static_cpu_has() places have been converted via in amd_e400_idle()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
H A Di915_memcpy.c165 if (static_cpu_has(X86_FEATURE_XMM4_1) && in i915_memcpy_init_early()

Completed in 16 milliseconds

1234