Lines Matching refs:bytes_remaining
1332 int64_t bytes_remaining = bytes; in bdrv_aligned_preadv() local
1399 while (bytes_remaining) { in bdrv_aligned_preadv()
1403 num = MIN(bytes_remaining, MIN(max_bytes, max_transfer)); in bdrv_aligned_preadv()
1406 ret = bdrv_driver_preadv(bs, offset + bytes - bytes_remaining, in bdrv_aligned_preadv()
1408 qiov_offset + bytes - bytes_remaining, in bdrv_aligned_preadv()
1412 num = bytes_remaining; in bdrv_aligned_preadv()
1413 ret = qemu_iovec_memset(qiov, qiov_offset + bytes - bytes_remaining, in bdrv_aligned_preadv()
1414 0, bytes_remaining); in bdrv_aligned_preadv()
1419 bytes_remaining -= num; in bdrv_aligned_preadv()
2068 int64_t bytes_remaining = bytes; in bdrv_aligned_pwritev() local
2114 while (bytes_remaining) { in bdrv_aligned_pwritev()
2115 int num = MIN(bytes_remaining, max_transfer); in bdrv_aligned_pwritev()
2119 if (num < bytes_remaining && (flags & BDRV_REQ_FUA) && in bdrv_aligned_pwritev()
2126 ret = bdrv_driver_pwritev(bs, offset + bytes - bytes_remaining, in bdrv_aligned_pwritev()
2128 qiov_offset + bytes - bytes_remaining, in bdrv_aligned_pwritev()
2133 bytes_remaining -= num; in bdrv_aligned_pwritev()