Home
last modified time | relevance | path

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

/Linux-v4.19/arch/x86/kernel/
Dprocess.c258 unsigned long tifp, unsigned long tifn) in switch_to_bitmap() argument
260 if (tifn & _TIF_IO_BITMAP) { in switch_to_bitmap()
342 static __always_inline void amd_set_core_ssb_state(unsigned long tifn) in amd_set_core_ssb_state() argument
348 msr |= ssbd_tif_to_amd_ls_cfg(tifn); in amd_set_core_ssb_state()
353 if (tifn & _TIF_SSBD) { in amd_set_core_ssb_state()
381 static __always_inline void amd_set_core_ssb_state(unsigned long tifn) in amd_set_core_ssb_state() argument
383 u64 msr = x86_amd_ls_cfg_base | ssbd_tif_to_amd_ls_cfg(tifn); in amd_set_core_ssb_state()
389 static __always_inline void amd_set_ssb_virt_state(unsigned long tifn) in amd_set_ssb_virt_state() argument
395 wrmsrl(MSR_AMD64_VIRT_SPEC_CTRL, ssbd_tif_to_spec_ctrl(tifn)); in amd_set_ssb_virt_state()
398 static __always_inline void intel_set_ssb_state(unsigned long tifn) in intel_set_ssb_state() argument
[all …]
/Linux-v4.19/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()
62 static inline u64 ssbd_tif_to_amd_ls_cfg(u64 tifn) in ssbd_tif_to_amd_ls_cfg() argument
64 return (tifn & _TIF_SSBD) ? x86_amd_ls_cfg_ssbd_mask : 0ULL; in ssbd_tif_to_amd_ls_cfg()