Lines Matching refs:mm
20 struct mm_struct *mm) in init_new_context() argument
24 spin_lock_init(&mm->context.lock); in init_new_context()
25 INIT_LIST_HEAD(&mm->context.pgtable_list); in init_new_context()
26 INIT_LIST_HEAD(&mm->context.gmap_list); in init_new_context()
27 cpumask_clear(&mm->context.cpu_attach_mask); in init_new_context()
28 atomic_set(&mm->context.flush_count, 0); in init_new_context()
29 atomic_set(&mm->context.is_protected, 0); in init_new_context()
30 mm->context.gmap_asce = 0; in init_new_context()
31 mm->context.flush_mm = 0; in init_new_context()
33 mm->context.alloc_pgste = page_table_allocate_pgste || in init_new_context()
35 (current->mm && current->mm->context.alloc_pgste); in init_new_context()
36 mm->context.has_pgste = 0; in init_new_context()
37 mm->context.uses_skeys = 0; in init_new_context()
38 mm->context.uses_cmm = 0; in init_new_context()
39 mm->context.allow_gmap_hpage_1m = 0; in init_new_context()
41 switch (mm->context.asce_limit) { in init_new_context()
47 VM_BUG_ON(mm->context.asce_limit); in init_new_context()
49 mm->context.asce_limit = _REGION2_SIZE; in init_new_context()
67 mm->context.asce = __pa(mm->pgd) | _ASCE_TABLE_LENGTH | in init_new_context()
69 crst_table_init((unsigned long *) mm->pgd, init_entry); in init_new_context()
104 struct mm_struct *mm = tsk->mm; in finish_arch_post_lock_switch() local
106 if (mm) { in finish_arch_post_lock_switch()
108 while (atomic_read(&mm->context.flush_count)) in finish_arch_post_lock_switch()
110 cpumask_set_cpu(smp_processor_id(), mm_cpumask(mm)); in finish_arch_post_lock_switch()
111 __tlb_flush_mm_lazy(mm); in finish_arch_post_lock_switch()