Lines Matching refs:mm
55 void cpu_do_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm);
57 static inline void cpu_switch_mm(pgd_t *pgd, struct mm_struct *mm) in cpu_switch_mm() argument
60 cpu_do_switch_mm(virt_to_phys(pgd),mm); in cpu_switch_mm()
103 struct mm_struct *mm = current->active_mm; in cpu_uninstall_idmap() local
109 if (mm != &init_mm && !system_uses_ttbr0_pan()) in cpu_uninstall_idmap()
110 cpu_switch_mm(mm->pgd, mm); in cpu_uninstall_idmap()
201 void check_and_switch_context(struct mm_struct *mm);
203 #define init_new_context(tsk, mm) init_new_context(tsk, mm) argument
205 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context() argument
207 atomic64_set(&mm->context.id, 0); in init_new_context()
208 refcount_set(&mm->context.pinned, 0); in init_new_context()
214 struct mm_struct *mm) in update_saved_ttbr0() argument
221 if (mm == &init_mm) in update_saved_ttbr0()
224 ttbr = phys_to_ttbr(virt_to_phys(mm->pgd)) | ASID(mm) << 48; in update_saved_ttbr0()
230 struct mm_struct *mm) in update_saved_ttbr0() argument
237 enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb() argument
292 unsigned long arm64_mm_context_get(struct mm_struct *mm);
293 void arm64_mm_context_put(struct mm_struct *mm);
296 static inline unsigned long mm_untag_mask(struct mm_struct *mm) in mm_untag_mask() argument