Lines Matching refs:mm
85 #define cpu_context(cpu, mm) ((mm)->context.asid[cpu]) argument
86 #define cpu_asid(cpu, mm) (cpu_context((cpu), (mm)) & ASID_MASK) argument
89 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb() argument
102 get_new_mmu_context(struct mm_struct *mm, unsigned long cpu) in get_new_mmu_context() argument
119 cpu_context(cpu, mm) = asid_cache(cpu) = asid; in get_new_mmu_context()
127 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context() argument
132 cpu_context(i, mm) = 0; in init_new_context()
134 atomic_set(&mm->context.fp_mode_switching, 0); in init_new_context()
168 static inline void destroy_context(struct mm_struct *mm) in destroy_context() argument
172 #define deactivate_mm(tsk, mm) do { } while (0) argument
206 drop_mmu_context(struct mm_struct *mm, unsigned cpu) in drop_mmu_context() argument
213 if (cpumask_test_cpu(cpu, mm_cpumask(mm))) { in drop_mmu_context()
214 get_new_mmu_context(mm, cpu); in drop_mmu_context()
215 write_c0_entryhi(cpu_asid(cpu, mm)); in drop_mmu_context()
218 cpu_context(cpu, mm) = 0; in drop_mmu_context()