• Home
  • Raw
  • Download

Lines Matching full:mm

8 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)  in enter_lazy_tlb()  argument
32 static inline void get_mmu_context(struct mm_struct *mm) in get_mmu_context() argument
36 if (mm->context != NO_CONTEXT) in get_mmu_context()
49 mm->context = ctx; in get_mmu_context()
50 context_mm[ctx] = mm; in get_mmu_context()
56 #define init_new_context(tsk, mm) (((mm)->context = NO_CONTEXT), 0) argument
61 static inline void destroy_context(struct mm_struct *mm) in destroy_context() argument
63 if (mm->context != NO_CONTEXT) { in destroy_context()
64 clear_bit(mm->context, context_map); in destroy_context()
65 mm->context = NO_CONTEXT; in destroy_context()
78 get_mmu_context(tsk->mm); in switch_mm()
79 set_context(tsk->mm->context, next->pgd); in switch_mm()
83 * After we have set current->mm to a new value, this activates
84 * the context for the new mm so we see the new mappings.
87 struct mm_struct *mm) in activate_mm() argument
89 get_mmu_context(mm); in activate_mm()
90 set_context(mm->context, mm->pgd); in activate_mm()
93 #define deactivate_mm(tsk, mm) do { } while (0) argument
100 struct mm_struct *mm; in load_ksp_mmu() local
119 mm = &init_mm; in load_ksp_mmu()
121 pr_info("load_ksp_mmu: non-kernel mm found: 0x%p\n", task->mm); in load_ksp_mmu()
122 mm = task->mm; in load_ksp_mmu()
125 if (!mm) in load_ksp_mmu()
128 pgd = pgd_offset(mm, mmuar); in load_ksp_mmu()
150 asid = mm->context & 0xff; in load_ksp_mmu()
166 pr_info("ksp load failed: mm=0x%p ksp=0x08%lx\n", mm, mmuar); in load_ksp_mmu()
175 extern unsigned long get_free_context(struct mm_struct *mm);
180 struct mm_struct *mm) in init_new_context() argument
182 mm->context = SUN3_INVALID_CONTEXT; in init_new_context()
188 static inline void get_mmu_context(struct mm_struct *mm) in get_mmu_context() argument
190 if (mm->context == SUN3_INVALID_CONTEXT) in get_mmu_context()
191 mm->context = get_free_context(mm); in get_mmu_context()
195 static inline void destroy_context(struct mm_struct *mm) in destroy_context() argument
197 if (mm->context != SUN3_INVALID_CONTEXT) in destroy_context()
198 clear_context(mm->context); in destroy_context()
201 static inline void activate_context(struct mm_struct *mm) in activate_context() argument
203 get_mmu_context(mm); in activate_context()
204 sun3_put_context(mm->context); in activate_context()
210 activate_context(tsk->mm); in switch_mm()
213 #define deactivate_mm(tsk, mm) do { } while (0) argument
228 struct mm_struct *mm) in init_new_context() argument
230 mm->context = virt_to_phys(mm->pgd); in init_new_context()
234 #define destroy_context(mm) do { } while(0) argument
236 static inline void switch_mm_0230(struct mm_struct *mm) in switch_mm_0230() argument
239 0x80000000 | _PAGE_TABLE, mm->context in switch_mm_0230()
269 static inline void switch_mm_0460(struct mm_struct *mm) in switch_mm_0460() argument
277 asm volatile ("movec %0,%%urp" : : "r" (mm->context)); in switch_mm_0460()
303 #define deactivate_mm(tsk,mm) do { } while (0) argument
320 static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context() argument
330 #define destroy_context(mm) do { } while (0) argument
331 #define deactivate_mm(tsk,mm) do { } while (0) argument