Lines Matching refs:pmds
213 static void free_pmds(struct mm_struct *mm, pmd_t *pmds[], int count) in free_pmds() argument
218 if (pmds[i]) { in free_pmds()
219 pgtable_pmd_page_dtor(virt_to_page(pmds[i])); in free_pmds()
220 free_page((unsigned long)pmds[i]); in free_pmds()
225 static int preallocate_pmds(struct mm_struct *mm, pmd_t *pmds[], int count) in preallocate_pmds() argument
245 pmds[i] = pmd; in preallocate_pmds()
249 free_pmds(mm, pmds, count); in preallocate_pmds()
296 static void pgd_prepopulate_pmd(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmds[]) in pgd_prepopulate_pmd() argument
309 pmd_t *pmd = pmds[i]; in pgd_prepopulate_pmd()
321 pgd_t *k_pgd, pmd_t *pmds[]) in pgd_prepopulate_user_pmd() argument
336 pmd_t *pmd = pmds[i]; in pgd_prepopulate_user_pmd()
347 pgd_t *k_pgd, pmd_t *pmds[]) in pgd_prepopulate_user_pmd() argument
428 pmd_t *pmds[MAX_PREALLOCATED_PMDS]; in pgd_alloc() local
437 if (preallocate_pmds(mm, pmds, PREALLOCATED_PMDS) != 0) in pgd_alloc()
454 pgd_prepopulate_pmd(mm, pgd, pmds); in pgd_alloc()
464 free_pmds(mm, pmds, PREALLOCATED_PMDS); in pgd_alloc()