Lines Matching refs:n_bytes
627 int64_t n_bytes; in vpc_co_preadv() local
640 n_bytes = MIN(bytes, s->block_size - (offset % s->block_size)); in vpc_co_preadv()
643 qemu_iovec_memset(qiov, bytes_done, 0, n_bytes); in vpc_co_preadv()
646 qemu_iovec_concat(&local_qiov, qiov, bytes_done, n_bytes); in vpc_co_preadv()
649 ret = bdrv_co_preadv(bs->file, image_offset, n_bytes, in vpc_co_preadv()
657 bytes -= n_bytes; in vpc_co_preadv()
658 offset += n_bytes; in vpc_co_preadv()
659 bytes_done += n_bytes; in vpc_co_preadv()
676 int64_t n_bytes; in vpc_co_pwritev() local
694 n_bytes = MIN(bytes, s->block_size - (offset % s->block_size)); in vpc_co_pwritev()
705 qemu_iovec_concat(&local_qiov, qiov, bytes_done, n_bytes); in vpc_co_pwritev()
708 ret = bdrv_co_pwritev(bs->file, image_offset, n_bytes, in vpc_co_pwritev()
715 bytes -= n_bytes; in vpc_co_pwritev()
716 offset += n_bytes; in vpc_co_pwritev()
717 bytes_done += n_bytes; in vpc_co_pwritev()