Lines Matching refs:mm
54 void a15_erratum_get_cpumask(int this_cpu, struct mm_struct *mm, in a15_erratum_get_cpumask() argument
62 context_id = mm->context.id.counter; in a15_erratum_get_cpumask()
192 static u64 new_context(struct mm_struct *mm, unsigned int cpu) in new_context() argument
195 u64 asid = atomic64_read(&mm->context.id); in new_context()
236 cpumask_clear(mm_cpumask(mm)); in new_context()
240 void check_and_switch_context(struct mm_struct *mm, struct task_struct *tsk) in check_and_switch_context() argument
246 if (unlikely(mm->context.vmalloc_seq != init_mm.context.vmalloc_seq)) in check_and_switch_context()
247 __check_vmalloc_seq(mm); in check_and_switch_context()
256 asid = atomic64_read(&mm->context.id); in check_and_switch_context()
263 asid = atomic64_read(&mm->context.id); in check_and_switch_context()
265 asid = new_context(mm, cpu); in check_and_switch_context()
266 atomic64_set(&mm->context.id, asid); in check_and_switch_context()
275 cpumask_set_cpu(cpu, mm_cpumask(mm)); in check_and_switch_context()
279 cpu_switch_mm(mm->pgd, mm); in check_and_switch_context()