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)
219 if (pmds[i]) {
220 ptdesc = virt_to_ptdesc(pmds[i]);
228 static int preallocate_pmds(struct mm_struct *mm, pmd_t *pmds[], int count)
254 pmds[i] = pmd;
258 free_pmds(mm, pmds, count);
305 static void pgd_prepopulate_pmd(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmds[])
315 pmd_t *pmd = pmds[i];
327 pgd_t *k_pgd, pmd_t *pmds[])
342 pmd_t *pmd = pmds[i];
353 pgd_t *k_pgd, pmd_t *pmds[])
434 pmd_t *pmds[MAX_PREALLOCATED_PMDS];
443 if (sizeof(pmds) != 0 &&
444 preallocate_pmds(mm, pmds, PREALLOCATED_PMDS) != 0)
455 * Make sure that pre-populating the pmds is atomic with
462 if (sizeof(pmds) != 0)
463 pgd_prepopulate_pmd(mm, pgd, pmds);
476 if (sizeof(pmds) != 0)
477 free_pmds(mm, pmds, PREALLOCATED_PMDS);