Home
last modified time | relevance | path

Searched refs:tifn (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.10/arch/x86/kernel/
Dprocess.c466 static __always_inline void amd_set_core_ssb_state(unsigned long tifn) in amd_set_core_ssb_state() argument
472 msr |= ssbd_tif_to_amd_ls_cfg(tifn); in amd_set_core_ssb_state()
477 if (tifn & _TIF_SSBD) { in amd_set_core_ssb_state()
505 static __always_inline void amd_set_core_ssb_state(unsigned long tifn) in amd_set_core_ssb_state() argument
507 u64 msr = x86_amd_ls_cfg_base | ssbd_tif_to_amd_ls_cfg(tifn); in amd_set_core_ssb_state()
513 static __always_inline void amd_set_ssb_virt_state(unsigned long tifn) in amd_set_ssb_virt_state() argument
519 wrmsrl(MSR_AMD64_VIRT_SPEC_CTRL, ssbd_tif_to_spec_ctrl(tifn)); in amd_set_ssb_virt_state()
529 unsigned long tifn) in __speculation_ctrl_update() argument
531 unsigned long tif_diff = tifp ^ tifn; in __speculation_ctrl_update()
540 amd_set_ssb_virt_state(tifn); in __speculation_ctrl_update()
[all …]
/Linux-v5.10/arch/x86/include/asm/
Dspec-ctrl.h50 static inline u64 ssbd_tif_to_spec_ctrl(u64 tifn) in ssbd_tif_to_spec_ctrl() argument
53 return (tifn & _TIF_SSBD) >> (TIF_SSBD - SPEC_CTRL_SSBD_SHIFT); in ssbd_tif_to_spec_ctrl()
56 static inline u64 stibp_tif_to_spec_ctrl(u64 tifn) in stibp_tif_to_spec_ctrl() argument
59 return (tifn & _TIF_SPEC_IB) >> (TIF_SPEC_IB - SPEC_CTRL_STIBP_SHIFT); in stibp_tif_to_spec_ctrl()
74 static inline u64 ssbd_tif_to_amd_ls_cfg(u64 tifn) in ssbd_tif_to_amd_ls_cfg() argument
76 return (tifn & _TIF_SSBD) ? x86_amd_ls_cfg_ssbd_mask : 0ULL; in ssbd_tif_to_amd_ls_cfg()
Dcpu.h45 extern void switch_to_sld(unsigned long tifn);
50 static inline void switch_to_sld(unsigned long tifn) {} in switch_to_sld() argument
/Linux-v5.10/arch/x86/kernel/cpu/
Dintel.c1133 void switch_to_sld(unsigned long tifn) in switch_to_sld() argument
1135 sld_update_msr(!(tifn & _TIF_SLD)); in switch_to_sld()