Lines Matching refs:uio
521 targwrite(struct cdev *dev, struct uio *uio, int ioflag) in targwrite() argument
532 ("write - uio_resid %zd\n", uio->uio_resid)); in targwrite()
533 while (uio->uio_resid >= sizeof(user_ccb) && error == 0) { in targwrite()
536 error = uiomove((caddr_t)&user_ccb, sizeof(user_ccb), uio); in targwrite()
606 if (write_len == 0 && uio->uio_resid != 0) in targwrite()
797 targread(struct cdev *dev, struct uio *uio, int ioflag) in targread() argument
841 if (uio->uio_resid < sizeof(user_ccb)) in targread()
852 error = uiomove((caddr_t)&user_ccb, sizeof(user_ccb), uio); in targread()
863 if (uio->uio_resid < sizeof(user_ccb)) in targread()
875 error = uiomove((caddr_t)&user_ccb, sizeof(user_ccb), uio); in targread()
889 if (read_len == 0 && uio->uio_resid != 0) in targread()