Home | History | Annotate | Download | only in uvm

Lines Matching refs:npages

315 	int i, error, npages;
369 npages = (ubc_winsize - slot_offset) >> PAGE_SHIFT;
371 npages = (round_page(umap->offset + umap->writeoff +
383 UVMHIST_LOG(ubchist, "getpages uobj %#jx offset %#jx npages %jd",
384 (uintptr_t)uobj, umap->offset + slot_offset, npages, 0);
387 &npages, 0, access_type, umap->advice, flags | PGO_NOBLOCKALLOC |
389 UVMHIST_LOG(ubchist, "getpages error %jd npages %jd", error, npages, 0,
414 eva = ufi->orig_rvaddr + (npages << PAGE_SHIFT);
573 int npages = (*lenp + (offset & (PAGE_SIZE - 1)) +
580 KASSERT(npages <= *npagesp);
593 &npages, 0, VM_PROT_READ | VM_PROT_WRITE, advice, gpflags);
602 for (i = 0; i < npages; i++) {
614 uvm_page_unbusy(pgs, npages);
629 *npagesp = npages;
643 ubc_release(void *va, int flags, struct vm_page **pgs, int npages)
661 KASSERT(npages == (round_page(endoff) -
669 for (u_int i = 0; i < npages; i++) {
692 uvm_page_unbusy(pgs, npages);
746 int error, npages;
777 npages = __arraycount(pgs);
779 &npages);
791 ubc_release(win, flags, pgs, npages);
810 int npages;
827 npages = __arraycount(pgs);
829 pgs, &npages);
831 ubc_release(win, flags, pgs, npages);
846 int advice, int flags, struct vm_page **pgs, int *npages)
876 *npages = (*lenp + pgoff + PAGE_SIZE - 1) >> PAGE_SHIFT;
877 KASSERT((*npages * PAGE_SIZE) <= ubc_winsize);
879 memset(pgs, 0, *npages * sizeof(pgs[0]));
883 npages, 0, access_type, advice, gpflags);
894 for (int i = 0; i < *npages; i++) {
906 uvm_page_unbusy(pgs, *npages);
932 int flags, struct vm_page **pgs, int npages)
935 for (int i = 0; i < npages; i++) {
985 int error, npages;
998 pgs, &npages);
1005 error = uvm_direct_process(pgs, npages, off, bytelen,
1017 (void) uvm_direct_process(pgs, npages, off,
1031 (void) uvm_direct_process(pgs + npages - 1, 1,
1039 ubc_direct_release(uobj, flags, pgs, npages);
1052 int error, npages;
1062 flags, pgs, &npages);
1068 error = uvm_direct_process(pgs, npages, off, bytelen,
1071 ubc_direct_release(uobj, flags, pgs, npages);