Lines Matching refs:mm
36 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb() argument
81 static inline void get_mmu_context(struct mm_struct *mm) in get_mmu_context() argument
85 if (mm->context != NO_CONTEXT) in get_mmu_context()
96 mm->context = ctx; in get_mmu_context()
97 context_mm[ctx] = mm; in get_mmu_context()
103 # define init_new_context(tsk, mm) (((mm)->context = NO_CONTEXT), 0) argument
108 static inline void destroy_context(struct mm_struct *mm) in destroy_context() argument
110 if (mm->context != NO_CONTEXT) { in destroy_context()
111 clear_bit(mm->context, context_map); in destroy_context()
112 mm->context = NO_CONTEXT; in destroy_context()
130 struct mm_struct *mm) in activate_mm() argument
132 current->thread.pgdir = mm->pgd; in activate_mm()
133 get_mmu_context(mm); in activate_mm()
134 set_context(mm->context, mm->pgd); in activate_mm()