Lines Matching refs:cur_pages
1379 long cur_pages = 0; in populate_pmd() local
1391 cur_pages = (pre_end - start) >> PAGE_SHIFT; in populate_pmd()
1392 cur_pages = min_t(unsigned int, num_pages, cur_pages); in populate_pmd()
1402 populate_pte(cpa, start, pre_end, cur_pages, pmd, pgprot); in populate_pmd()
1410 if (num_pages == cur_pages) in populate_pmd()
1411 return cur_pages; in populate_pmd()
1431 cur_pages += PMD_SIZE >> PAGE_SHIFT; in populate_pmd()
1443 populate_pte(cpa, start, end, num_pages - cur_pages, in populate_pmd()
1454 long cur_pages = 0; in populate_pud() local
1468 cur_pages = (pre_end - start) >> PAGE_SHIFT; in populate_pud()
1469 cur_pages = min_t(int, (int)cpa->numpages, cur_pages); in populate_pud()
1480 cur_pages = populate_pmd(cpa, start, pre_end, cur_pages, in populate_pud()
1482 if (cur_pages < 0) in populate_pud()
1483 return cur_pages; in populate_pud()
1489 if (cpa->numpages == cur_pages) in populate_pud()
1490 return cur_pages; in populate_pud()
1504 cur_pages += PUD_SIZE >> PAGE_SHIFT; in populate_pud()
1517 tmp = populate_pmd(cpa, start, end, cpa->numpages - cur_pages, in populate_pud()
1520 return cur_pages; in populate_pud()
1522 cur_pages += tmp; in populate_pud()
1524 return cur_pages; in populate_pud()