Lines Matching refs:io_req_size
148 static int cluster_read_copy(vnode_t vp, struct uio *uio, u_int32_t io_req_size, off_t filesize, int flags,
155 static int cluster_write_copy(vnode_t vp, struct uio *uio, u_int32_t io_req_size, off_t oldEOF, off_t newEOF,
1899 u_int32_t io_req_size;
1958 io_req_size = *write_length;
1980 while (io_req_size >= PAGE_SIZE && uio->uio_offset < newEOF && retval == 0) {
1986 io_size = io_req_size & ~PAGE_MASK;
2132 io_req_size -= io_size;
2135 (int)upl_offset, (int)uio->uio_offset, io_req_size, retval, 0);
2139 if (retval == 0 && iostate.io_error == 0 && io_req_size == 0) {
2175 if (io_req_size && retval == 0) {
2183 retval = cluster_write_copy(vp, uio, io_req_size, oldEOF, newEOF, (off_t)0, (off_t)0, flags, callback, callback_arg);
2188 (int)uio->uio_offset, io_req_size, retval, 4, 0);
2221 * -- the io_req_size will not exceed iov_len
2413 cluster_write_copy(vnode_t vp, struct uio *uio, u_int32_t io_req_size, off_t oldEOF, off_t newEOF, off_t headOff,
2449 (int)uio->uio_offset, io_req_size, (int)oldEOF, (int)newEOF, 0);
2451 io_resid = io_req_size;
2486 zero_off1 = uio->uio_offset + io_req_size;
3124 cluster_read_copy(vnode_t vp, struct uio *uio, u_int32_t io_req_size, off_t filesize, int flags, int (*callback)(buf_t, void *), void *callback_arg)
3178 (int)uio->uio_offset, io_req_size, (int)filesize, flags, 0);
3180 last_request_offset = uio->uio_offset + io_req_size;
3217 while (io_req_size && uio->uio_offset < filesize && retval == 0) {
3230 if ((off_t)(io_req_size) < max_size)
3231 io_size = io_req_size;
3285 io_req_size -= xsize;
3417 * compute size to transfer this round, if io_req_size is
3426 if (val_size > io_req_size)
3427 val_size = io_req_size;
3492 io_req_size -= (val_size - io_requested);
3546 if (io_req_size) {
3569 (int)uio->uio_offset, io_req_size, rap->cl_lastr, retval, 0);
3574 (int)uio->uio_offset, io_req_size, 0, retval, 0);
3604 u_int32_t io_req_size;
3656 io_req_size = *read_length;
3661 if ((off_t)io_req_size > max_io_size)
3662 io_req_size = max_io_size;
3687 while (io_req_size && retval == 0) {
3697 io_start = io_size = io_req_size;
3714 io_req_size -= xsize;
3719 if (io_req_size == 0 || misaligned) {
3900 io_req_size -= io_size;
3903 (int)upl, (int)uio->uio_offset, io_req_size, retval, 0);
3907 if (retval == 0 && iostate.io_error == 0 && io_req_size == 0 && uio->uio_offset < filesize) {
3944 if (io_req_size && retval == 0) {
3949 retval = cluster_read_copy(vp, uio, io_req_size, filesize, flags, callback, callback_arg);
3954 (int)uio->uio_offset, (int)uio_resid(uio), io_req_size, retval, 0);