Lines Matching refs:mm
20 struct mm_struct *mm)
24 spin_lock_init(&mm->context.lock);
25 INIT_LIST_HEAD(&mm->context.gmap_list);
26 cpumask_clear(&mm->context.cpu_attach_mask);
27 atomic_set(&mm->context.flush_count, 0);
28 atomic_set(&mm->context.protected_count, 0);
29 mm->context.gmap_asce = 0;
30 mm->context.flush_mm = 0;
32 mm->context.alloc_pgste = page_table_allocate_pgste ||
34 (current->mm && current->mm->context.alloc_pgste);
35 mm->context.has_pgste = 0;
36 mm->context.uses_skeys = 0;
37 mm->context.uses_cmm = 0;
38 mm->context.allow_gmap_hpage_1m = 0;
40 switch (mm->context.asce_limit) {
46 VM_BUG_ON(mm->context.asce_limit);
48 mm->context.asce_limit = _REGION2_SIZE;
66 mm->context.asce = __pa(mm->pgd) | _ASCE_TABLE_LENGTH |
68 crst_table_init((unsigned long *) mm->pgd, init_entry);
103 struct mm_struct *mm = tsk->mm;
105 if (mm) {
107 while (atomic_read(&mm->context.flush_count))
109 cpumask_set_cpu(smp_processor_id(), mm_cpumask(mm));
110 __tlb_flush_mm_lazy(mm);