Lines Matching refs:mm
34 #define cpu_context(cpu, mm) ((mm)->context[cpu]) argument
35 #define cpu_asid(cpu, mm) (cpu_context((cpu), (mm)) & ASID_MASK) argument
55 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk, unsigned cpu) in enter_lazy_tlb() argument
67 get_new_mmu_context(struct mm_struct *mm, unsigned long cpu) in get_new_mmu_context() argument
77 cpu_context(cpu, mm) = asid_cache(cpu) = asid; in get_new_mmu_context()
85 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context() argument
90 cpu_context(i, mm) = 0; in init_new_context()
122 static inline void destroy_context(struct mm_struct *mm) in destroy_context() argument
156 drop_mmu_context(struct mm_struct *mm, unsigned cpu) in drop_mmu_context() argument
162 if (test_bit(cpu, &mm->cpu_vm_mask)) { in drop_mmu_context()
163 get_new_mmu_context(mm, cpu); in drop_mmu_context()
164 write_c0_entryhi(cpu_asid(cpu, mm)); in drop_mmu_context()
167 cpu_context(cpu, mm) = 0; in drop_mmu_context()