Lines Matching refs:mm
38 #define cpu_context(cpu, mm) ((mm)->context.id[cpu]) argument
40 #define cpu_asid(cpu, mm) \ argument
41 (cpu_context((cpu), (mm)) & MMU_CONTEXT_ASID_MASK)
57 static inline void get_mmu_context(struct mm_struct *mm, unsigned int cpu) in get_mmu_context() argument
62 if (((cpu_context(cpu, mm) ^ asid) & MMU_CONTEXT_VERSION_MASK) == 0) in get_mmu_context()
90 cpu_context(cpu, mm) = asid_cache(cpu) = asid; in get_mmu_context()
98 struct mm_struct *mm) in init_new_context() argument
103 cpu_context(i, mm) = NO_CONTEXT; in init_new_context()
112 static inline void activate_context(struct mm_struct *mm, unsigned int cpu) in activate_context() argument
114 get_mmu_context(mm, cpu); in activate_context()
115 set_asid(cpu_asid(cpu, mm)); in activate_context()
134 #define deactivate_mm(tsk,mm) do { } while (0) argument
135 #define enter_lazy_tlb(mm,tsk) do { } while (0) argument
141 #define cpu_asid(cpu, mm) ({ (void)cpu; NO_CONTEXT; }) argument