Lines Matching defs:pgs
563 uvm_pagermapin(struct vm_page **pgs, int npages, int flags)
587 memcpy((void*)curkva, pgs[i]->uanon, PAGE_SIZE);
588 pgri->pgr_pgs[i] = pgs[i];
688 uvm_page_unbusy(struct vm_page **pgs, int npgs)
697 pg = pgs[i];
1350 struct vm_page **pgs;
1357 pgs = kmem_alloc(maxpages * sizeof(pgs), KM_SLEEP);
1361 memset(pgs, 0, npages * sizeof(struct vm_page *));
1363 pgs, &npages, 0, VM_PROT_READ | VM_PROT_WRITE,
1373 pg = pgs[i];
1390 uvm_page_unbusy(pgs, npages);
1393 kmem_free(pgs, maxpages * sizeof(pgs));
1403 struct vm_page **pgs;
1409 pgalloc = npages * sizeof(pgs);
1410 pgs = kmem_alloc(pgalloc, KM_SLEEP);
1425 memset(pgs, 0, pgalloc);
1427 pgs, &npages, 0, prot, 0, pagerflags);
1437 pg = pgs[i];
1450 uvm_page_unbusy(pgs, npages);
1460 uvm_page_unbusy(pgs, npages);
1465 kmem_free(pgs, pgalloc);