Lines Matching defs:pgl
530 * - next != NULL we have not reached the end of pgl
592 * - next != NULL we have not reached the end of pgl
623 * Remove the first segment of contiguous pages from pgl.
635 uvm_pmr_remove_1strange(struct pglist *pgl, paddr_t boundary,
642 KASSERT(!TAILQ_EMPTY(pgl));
649 start = TAILQ_FIRST(pgl);
706 TAILQ_REMOVE(pgl, iter, pageq);
725 * Remove the first segment of contiguous pages from a pgl
733 uvm_pmr_remove_1strange_reverse(struct pglist *pgl, paddr_t *pstart)
739 KASSERT(!TAILQ_EMPTY(pgl));
741 start = TAILQ_FIRST(pgl);
764 TAILQ_REMOVE(pgl, iter, pageq);
1283 struct pglist pgl;
1285 TAILQ_INIT(&pgl);
1286 if (uvm_pmr_getpages(1, 0, 0, 1, 0, 1, flags, &pgl) != 0)
1289 pg = TAILQ_FIRST(&pgl);
1346 uvm_pmr_freepageq(struct pglist *pgl)
1352 TAILQ_FOREACH(pg, pgl, pageq) {
1365 while (!TAILQ_EMPTY(pgl)) {
1366 pg = TAILQ_FIRST(pgl);
1373 plen = uvm_pmr_remove_1strange_reverse(pgl, &pstart);
1375 pstart = VM_PAGE_TO_PHYS(TAILQ_FIRST(pgl));
1376 plen = uvm_pmr_remove_1strange(pgl, 0, NULL, 0);
2192 struct pglist pgl;
2201 TAILQ_INIT(&pgl);
2206 &pgl, 0, 0, 1)) == 0) {
2212 TAILQ_FOREACH(pg, &pgl, pageq) {
2218 while (!TAILQ_EMPTY(&pgl))
2219 uvm_pmr_remove_1strange(&pgl, 0, NULL, 0);
2232 struct pglist pgl;
2239 TAILQ_INIT(&pgl);
2240 if (uvm_pmr_getpages(npages, 0, 0, 1, 0, npages, flags, &pgl))
2243 while ((pg = TAILQ_FIRST(&pgl)) != NULL) {
2244 TAILQ_REMOVE(&pgl, pg, pageq);
2295 struct pglist pgl;
2300 TAILQ_INIT(&pgl);
2302 TAILQ_INSERT_TAIL(&pgl, upci->upci_pages[i], pageq);
2304 uvm_pmr_freepageq(&pgl);