Lines Matching refs:mm
11 #include <linux/mm.h>
36 pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr, unsigned long sz)
42 return __find_linux_pte(mm->pgd, addr, NULL, NULL);
45 static int __hugepte_alloc(struct mm_struct *mm, hugepd_t *hpdp,
67 new = kmem_cache_alloc(cachep, pgtable_gfp_flags(mm, GFP_KERNEL));
110 pte_t *huge_pte_alloc(struct mm_struct *mm, struct vm_area_struct *vma,
123 pg = pgd_offset(mm, addr);
134 ptl = &mm->page_table_lock;
138 pu = pud_alloc(mm, p4, addr);
144 ptl = pud_lockptr(mm, pu);
148 pm = pmd_alloc(mm, pu, addr);
155 ptl = pmd_lockptr(mm, pm);
162 ptl = &mm->page_table_lock;
166 pu = pud_alloc(mm, p4, addr);
170 ptl = pud_lockptr(mm, pu);
174 pm = pmd_alloc(mm, pu, addr);
177 ptl = pmd_lockptr(mm, pm);
186 return pte_alloc_huge(mm, (pmd_t *)hpdp, addr);
190 if (hugepd_none(*hpdp) && __hugepte_alloc(mm, hpdp, addr,
281 if (atomic_read(&tlb->mm->mm_users) < 2 ||
282 mm_is_thread_local(tlb->mm)) {
358 mm_dec_nr_ptes(tlb->mm);
409 mm_dec_nr_pmds(tlb->mm);
452 mm_dec_nr_puds(tlb->mm);
485 pgd = pgd_offset(tlb->mm, addr);