Lines Matching refs:mm
5 #include <linux/mm.h>
27 /* Global TLB flush for the mm */
42 * Flush TLB entries for a specific mm on all CPUs (in case gmap is used
45 static inline void __tlb_flush_mm(struct mm_struct *mm)
50 * If the machine has IDTE we prefer to do a per mm flush
51 * on all cpus instead of doing a local flush if the mm
55 atomic_inc(&mm->context.flush_count);
57 cpumask_copy(mm_cpumask(mm), &mm->context.cpu_attach_mask);
59 gmap_asce = READ_ONCE(mm->context.gmap_asce);
63 __tlb_flush_idte(mm->context.asce);
68 atomic_dec(&mm->context.flush_count);
80 static inline void __tlb_flush_mm_lazy(struct mm_struct * mm)
82 spin_lock(&mm->context.lock);
83 if (mm->context.flush_mm) {
84 mm->context.flush_mm = 0;
85 __tlb_flush_mm(mm);
87 spin_unlock(&mm->context.lock);
92 * flush_tlb() - flushes the current mm struct TLBs
94 * flush_tlb_mm(mm) - flushes the specified mm context TLB's
104 * ptep_get_and_clear do not flush the TLBs directly if the mm has
112 static inline void flush_tlb_mm(struct mm_struct *mm)
114 __tlb_flush_mm_lazy(mm);