Lines Matching refs:mm
34 #define cpu_context(cpu, mm) ((mm)->context.asid[cpu])
36 #define cpu_asid(cpu, mm) (cpu_context((cpu), (mm)) & cpu_asid_mask(&cpu_data[cpu]))
38 static inline int asid_valid(struct mm_struct *mm, unsigned int cpu)
40 if ((cpu_context(cpu, mm) ^ asid_cache(cpu)) & asid_version_mask(cpu))
46 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
52 get_new_mmu_context(struct mm_struct *mm, unsigned long cpu)
59 cpu_context(cpu, mm) = asid_cache(cpu) = asid;
67 init_new_context(struct task_struct *tsk, struct mm_struct *mm)
72 cpu_context(i, mm) = 0;
116 static inline void destroy_context(struct mm_struct *mm)
121 #define deactivate_mm(task, mm) do { } while (0)
124 * If mm is currently active, we can't really drop it.
128 drop_mmu_context(struct mm_struct *mm, unsigned int cpu)
137 if (asid == cpu_asid(cpu, mm)) {
138 if (!current->mm || (current->mm == mm)) {
139 get_new_mmu_context(mm, cpu);
140 write_csr_asid(cpu_asid(cpu, mm));
146 cpu_context(cpu, mm) = 0;
147 cpumask_clear_cpu(cpu, mm_cpumask(mm));