Lines Matching refs:uio
56 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) in uiomove_fromphys() argument
67 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, in uiomove_fromphys()
69 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, in uiomove_fromphys()
71 KASSERT(uio->uio_resid >= 0, in uiomove_fromphys()
72 ("%s: uio %p resid underflow", __func__, uio)); in uiomove_fromphys()
77 while (n > 0 && uio->uio_resid) { in uiomove_fromphys()
78 KASSERT(uio->uio_iovcnt > 0, in uiomove_fromphys()
79 ("%s: uio %p iovcnt underflow", __func__, uio)); in uiomove_fromphys()
81 iov = uio->uio_iov; in uiomove_fromphys()
84 uio->uio_iov++; in uiomove_fromphys()
85 uio->uio_iovcnt--; in uiomove_fromphys()
92 if (uio->uio_segflg != UIO_NOCOPY) { in uiomove_fromphys()
97 switch (uio->uio_segflg) { in uiomove_fromphys()
100 switch (uio->uio_rw) { in uiomove_fromphys()
112 switch (uio->uio_rw) { in uiomove_fromphys()
131 uio->uio_resid -= cnt; in uiomove_fromphys()
132 uio->uio_offset += cnt; in uiomove_fromphys()