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()
177 static u64 new_context(struct mm_struct *mm, unsigned int cpu) in new_context() argument
180 u64 asid = atomic64_read(&mm->context.id); in new_context()
222 cpumask_clear(mm_cpumask(mm)); in new_context()
226 void check_and_switch_context(struct mm_struct *mm, struct task_struct *tsk) in check_and_switch_context() argument
232 if (unlikely(mm->context.vmalloc_seq != init_mm.context.vmalloc_seq)) in check_and_switch_context()
233 __check_vmalloc_seq(mm); in check_and_switch_context()
242 asid = atomic64_read(&mm->context.id); in check_and_switch_context()
249 asid = atomic64_read(&mm->context.id); in check_and_switch_context()
251 asid = new_context(mm, cpu); in check_and_switch_context()
252 atomic64_set(&mm->context.id, asid); in check_and_switch_context()
261 cpumask_set_cpu(cpu, mm_cpumask(mm)); in check_and_switch_context()
265 cpu_switch_mm(mm->pgd, mm); in check_and_switch_context()