Lines Matching defs:pmds
174 * and initialize the kernel pmds here.
213 static void free_pmds(struct mm_struct *mm, pmd_t *pmds[], int count)
218 if (pmds[i]) {
219 pgtable_pmd_page_dtor(virt_to_page(pmds[i]));
220 free_page((unsigned long)pmds[i]);
225 static int preallocate_pmds(struct mm_struct *mm, pmd_t *pmds[], int count)
245 pmds[i] = pmd;
249 free_pmds(mm, pmds, count);
296 static void pgd_prepopulate_pmd(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmds[])
309 pmd_t *pmd = pmds[i];
321 pgd_t *k_pgd, pmd_t *pmds[])
336 pmd_t *pmd = pmds[i];
347 pgd_t *k_pgd, pmd_t *pmds[])
428 pmd_t *pmds[MAX_PREALLOCATED_PMDS];
437 if (preallocate_pmds(mm, pmds, PREALLOCATED_PMDS) != 0)
447 * Make sure that pre-populating the pmds is atomic with
454 pgd_prepopulate_pmd(mm, pgd, pmds);
464 free_pmds(mm, pmds, PREALLOCATED_PMDS);