Lines Matching refs:uio
57 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) in uiomove_fromphys() argument
68 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, in uiomove_fromphys()
70 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, in uiomove_fromphys()
72 KASSERT(uio->uio_resid >= 0, in uiomove_fromphys()
73 ("%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()
94 switch (uio->uio_segflg) { in uiomove_fromphys()
97 switch (uio->uio_rw) { in uiomove_fromphys()
111 switch (uio->uio_rw) { in uiomove_fromphys()
126 uio->uio_resid -= cnt; in uiomove_fromphys()
127 uio->uio_offset += cnt; in uiomove_fromphys()