Lines Matching refs:loaded_mm
125 struct mm_struct *loaded_mm = this_cpu_read(cpu_tlbstate.loaded_mm); in leave_mm() local
135 if (loaded_mm == &init_mm) in leave_mm()
186 struct mm_struct *real_prev = this_cpu_read(cpu_tlbstate.loaded_mm); in switch_mm_irqs_off()
309 this_cpu_write(cpu_tlbstate.loaded_mm, LOADED_MM_SWITCHING); in switch_mm_irqs_off()
345 this_cpu_write(cpu_tlbstate.loaded_mm, next); in switch_mm_irqs_off()
368 if (this_cpu_read(cpu_tlbstate.loaded_mm) == &init_mm) in enter_lazy_tlb()
403 struct mm_struct *mm = this_cpu_read(cpu_tlbstate.loaded_mm); in initialize_tlbstate_and_flush()
451 struct mm_struct *loaded_mm = this_cpu_read(cpu_tlbstate.loaded_mm); in flush_tlb_func_common() local
453 u64 mm_tlb_gen = atomic64_read(&loaded_mm->context.tlb_gen); in flush_tlb_func_common()
459 if (unlikely(loaded_mm == &init_mm)) in flush_tlb_func_common()
463 loaded_mm->context.ctx_id); in flush_tlb_func_common()
567 if (f->mm && f->mm != this_cpu_read(cpu_tlbstate.loaded_mm)) in flush_tlb_func_remote()
650 if (mm == this_cpu_read(cpu_tlbstate.loaded_mm)) { in flush_tlb_mm_range()