Lines Matching refs:uio
54 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) in uiomove_fromphys() argument
65 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, in uiomove_fromphys()
67 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, in uiomove_fromphys()
69 KASSERT(uio->uio_resid >= 0, in uiomove_fromphys()
70 ("%s: uio %p resid underflow", __func__, uio)); in uiomove_fromphys()
75 while (n > 0 && uio->uio_resid) { in uiomove_fromphys()
76 KASSERT(uio->uio_iovcnt > 0, in uiomove_fromphys()
77 ("%s: uio %p iovcnt underflow", __func__, uio)); in uiomove_fromphys()
79 iov = uio->uio_iov; in uiomove_fromphys()
82 uio->uio_iov++; in uiomove_fromphys()
83 uio->uio_iovcnt--; in uiomove_fromphys()
90 if (uio->uio_segflg != UIO_NOCOPY) { in uiomove_fromphys()
95 switch (uio->uio_segflg) { in uiomove_fromphys()
98 switch (uio->uio_rw) { in uiomove_fromphys()
110 switch (uio->uio_rw) { in uiomove_fromphys()
129 uio->uio_resid -= cnt; in uiomove_fromphys()
130 uio->uio_offset += cnt; in uiomove_fromphys()