Lines Matching refs:mm
6 * -Refactored get_new_mmu_context( ) to only handle live-mm.
7 * retiring-mm handled in other hooks
18 #include <linux/sched/mm.h>
38 * The 32 bit @asid_cpu (and mm->asid) have 8 bits MMU PID and rest 24 bits
49 #define asid_mm(mm, cpu) mm->context.asid[cpu]
50 #define hw_pid(mm, cpu) (asid_mm(mm, cpu) & MM_CTXT_ASID_MASK)
59 static inline void get_new_mmu_context(struct mm_struct *mm)
68 * This is done by ensuring that the generation bits in both mm->ASID
76 if (!((asid_mm(mm, cpu) ^ asid_cpu(cpu)) & MM_CTXT_CYCLE_MASK))
94 asid_mm(mm, cpu) = asid_cpu(cpu);
97 mmu_setup_asid(mm, hw_pid(mm, cpu));
108 init_new_context(struct task_struct *tsk, struct mm_struct *mm)
113 asid_mm(mm, i) = MM_CTXT_NO_ASID;
119 static inline void destroy_context(struct mm_struct *mm)
125 asid_mm(mm, smp_processor_id()) = MM_CTXT_NO_ASID;
159 * it always returns a new ASID, because mm has an unallocated "initial"
165 * for retiring-mm. However destroy_context( ) still needs to do that because