Lines Matching refs:mm
87 struct mm_struct *mm; in steal_context_smp() local
95 mm = context_mm[id]; in steal_context_smp()
100 if (mm->context.active) { in steal_context_smp()
106 pr_hardcont(" | steal %d from 0x%p", id, mm); in steal_context_smp()
109 mm->context.id = MMU_NO_CONTEXT; in steal_context_smp()
116 for_each_cpu(cpu, mm_cpumask(mm)) { in steal_context_smp()
141 struct mm_struct *mm; in steal_all_contexts() local
147 mm = context_mm[id]; in steal_all_contexts()
149 pr_hardcont(" | steal %d from 0x%p", id, mm); in steal_all_contexts()
152 mm->context.id = MMU_NO_CONTEXT; in steal_all_contexts()
157 mm->context.active = 0; in steal_all_contexts()
178 struct mm_struct *mm; in steal_context_up() local
182 mm = context_mm[id]; in steal_context_up()
184 pr_hardcont(" | steal %d from 0x%p", id, mm); in steal_context_up()
187 local_flush_tlb_mm(mm); in steal_context_up()
190 mm->context.id = MMU_NO_CONTEXT; in steal_context_up()
329 int init_new_context(struct task_struct *t, struct mm_struct *mm) in init_new_context() argument
331 pr_hard("initing context for mm @%p\n", mm); in init_new_context()
333 mm->context.id = MMU_NO_CONTEXT; in init_new_context()
334 mm->context.active = 0; in init_new_context()
337 if (slice_mm_new_context(mm)) in init_new_context()
338 slice_set_user_psize(mm, mmu_virtual_psize); in init_new_context()
347 void destroy_context(struct mm_struct *mm) in destroy_context() argument
352 if (mm->context.id == MMU_NO_CONTEXT) in destroy_context()
355 WARN_ON(mm->context.active != 0); in destroy_context()
358 id = mm->context.id; in destroy_context()
361 mm->context.id = MMU_NO_CONTEXT; in destroy_context()
363 mm->context.active = 0; in destroy_context()