• Home
  • Raw
  • Download

Lines Matching refs:tifn

172 				    unsigned long tifp, unsigned long tifn)  in switch_to_bitmap()  argument
176 if (tifn & _TIF_IO_BITMAP) { in switch_to_bitmap()
253 static __always_inline void amd_set_core_ssb_state(unsigned long tifn) in amd_set_core_ssb_state() argument
259 msr |= ssbd_tif_to_amd_ls_cfg(tifn); in amd_set_core_ssb_state()
264 if (tifn & _TIF_SSBD) { in amd_set_core_ssb_state()
292 static __always_inline void amd_set_core_ssb_state(unsigned long tifn) in amd_set_core_ssb_state() argument
294 u64 msr = x86_amd_ls_cfg_base | ssbd_tif_to_amd_ls_cfg(tifn); in amd_set_core_ssb_state()
300 static __always_inline void amd_set_ssb_virt_state(unsigned long tifn) in amd_set_ssb_virt_state() argument
306 wrmsrl(MSR_AMD64_VIRT_SPEC_CTRL, ssbd_tif_to_spec_ctrl(tifn)); in amd_set_ssb_virt_state()
316 unsigned long tifn) in __speculation_ctrl_update() argument
318 unsigned long tif_diff = tifp ^ tifn; in __speculation_ctrl_update()
325 amd_set_ssb_virt_state(tifn); in __speculation_ctrl_update()
328 amd_set_core_ssb_state(tifn); in __speculation_ctrl_update()
332 msr |= ssbd_tif_to_spec_ctrl(tifn); in __speculation_ctrl_update()
339 msr |= stibp_tif_to_spec_ctrl(tifn); in __speculation_ctrl_update()
382 unsigned long tifp, tifn; in __switch_to_xtra() local
387 tifn = READ_ONCE(task_thread_info(next_p)->flags); in __switch_to_xtra()
389 switch_to_bitmap(prev, next, tifp, tifn); in __switch_to_xtra()
393 if ((tifp & _TIF_BLOCKSTEP || tifn & _TIF_BLOCKSTEP) && in __switch_to_xtra()
399 msk = tifn & _TIF_BLOCKSTEP; in __switch_to_xtra()
404 if ((tifp ^ tifn) & _TIF_NOTSC) in __switch_to_xtra()
407 if (likely(!((tifp | tifn) & _TIF_SPEC_FORCE_UPDATE))) { in __switch_to_xtra()
408 __speculation_ctrl_update(tifp, tifn); in __switch_to_xtra()
411 tifn = speculation_ctrl_update_tif(next_p); in __switch_to_xtra()
414 __speculation_ctrl_update(~tifn, tifn); in __switch_to_xtra()