Lines Matching refs:nbytes
55 fdio_read(mdb_io_t *io, void *buf, size_t nbytes) in fdio_read() argument
60 return (read(fdp->fd_fd, buf, nbytes)); in fdio_read()
62 return (IOP_READ(io->io_next, buf, nbytes)); in fdio_read()
66 fdio_write(mdb_io_t *io, const void *buf, size_t nbytes) in fdio_write() argument
71 return (write(fdp->fd_fd, buf, nbytes)); in fdio_write()
73 return (IOP_WRITE(io->io_next, buf, nbytes)); in fdio_write()
188 fdio_bdev_read(mdb_io_t *io, void *buf, size_t nbytes) in fdio_bdev_read() argument
191 ssize_t resid = nbytes; in fdio_bdev_read()
197 return (IOP_READ(io->io_next, buf, nbytes)); in fdio_bdev_read()
218 if (resid == nbytes && nbytes != 0) in fdio_bdev_read()
222 return (nbytes - resid); in fdio_bdev_read()
232 fdio_bdev_write(mdb_io_t *io, const void *buf, size_t nbytes) in fdio_bdev_write() argument
235 ssize_t resid = nbytes; in fdio_bdev_write()
241 return (IOP_WRITE(io->io_next, buf, nbytes)); in fdio_bdev_write()
266 if (resid == nbytes && nbytes != 0) in fdio_bdev_write()
270 return (nbytes - resid); in fdio_bdev_write()