Lines Matching refs:mm
77 static inline void get_mmu_context(struct mm_struct *mm) in get_mmu_context() argument
81 if (mm->context != NO_CONTEXT) in get_mmu_context()
92 mm->context = ctx; in get_mmu_context()
93 context_mm[ctx] = mm; in get_mmu_context()
99 # define init_new_context(tsk, mm) (((mm)->context = NO_CONTEXT), 0) argument
105 static inline void destroy_context(struct mm_struct *mm) in destroy_context() argument
107 if (mm->context != NO_CONTEXT) { in destroy_context()
108 clear_bit(mm->context, context_map); in destroy_context()
109 mm->context = NO_CONTEXT; in destroy_context()
128 struct mm_struct *mm) in activate_mm() argument
130 current->thread.pgdir = mm->pgd; in activate_mm()
131 get_mmu_context(mm); in activate_mm()
132 set_context(mm->context, mm->pgd); in activate_mm()