Lines Matching refs:mm
47 vma = find_vma(current->mm, start); in __verify_write()
62 if (handle_mm_fault(current->mm, vma, start, 1) <= 0) in __verify_write()
97 struct mm_struct *mm; in do_page_fault() local
108 mm = tsk->mm; in do_page_fault()
114 if (in_interrupt() || !mm) in do_page_fault()
117 down_read(&mm->mmap_sem); in do_page_fault()
119 vma = find_vma(mm, address); in do_page_fault()
147 switch (handle_mm_fault(mm, vma, address, writeaccess)) { in do_page_fault()
160 up_read(&mm->mmap_sem); in do_page_fault()
168 up_read(&mm->mmap_sem); in do_page_fault()
221 up_read(&mm->mmap_sem); in do_page_fault()
228 up_read(&mm->mmap_sem); in do_page_fault()
263 else if (!current->mm) in __do_page_fault()
266 dir = pgd_offset(current->mm, address); in __do_page_fault()
379 if (vma->vm_mm != current->mm) { in flush_tlb_page()
390 void flush_tlb_range(struct mm_struct *mm, unsigned long start, in flush_tlb_range() argument
393 if (mm->context != NO_CONTEXT) { in flush_tlb_range()
400 mm->context = NO_CONTEXT; in flush_tlb_range()
401 if (mm == current->mm) in flush_tlb_range()
402 activate_context(mm); in flush_tlb_range()
404 unsigned long asid = mm->context&MMU_CONTEXT_ASID_MASK; in flush_tlb_range()
410 if (mm != current->mm) { in flush_tlb_range()
425 void flush_tlb_mm(struct mm_struct *mm) in flush_tlb_mm() argument
429 if (mm->context != NO_CONTEXT) { in flush_tlb_mm()
433 mm->context = NO_CONTEXT; in flush_tlb_mm()
434 if (mm == current->mm) in flush_tlb_mm()
435 activate_context(mm); in flush_tlb_mm()