Home
last modified time | relevance | path

Searched refs:cur_bytes (Results 1 – 5 of 5) sorted by relevance

/openbmc/qemu/block/
H A Dcrypto.c488 uint64_t cur_bytes; /* number of bytes in current iteration */ in block_crypto_co_preadv() local
514 cur_bytes = MIN(bytes, BLOCK_CRYPTO_MAX_IO_SIZE); in block_crypto_co_preadv()
517 qemu_iovec_add(&hd_qiov, cipher_data, cur_bytes); in block_crypto_co_preadv()
520 cur_bytes, &hd_qiov, 0); in block_crypto_co_preadv()
526 cipher_data, cur_bytes, NULL) < 0) { in block_crypto_co_preadv()
531 qemu_iovec_from_buf(qiov, bytes_done, cipher_data, cur_bytes); in block_crypto_co_preadv()
533 bytes -= cur_bytes; in block_crypto_co_preadv()
534 bytes_done += cur_bytes; in block_crypto_co_preadv()
550 uint64_t cur_bytes; /* number of bytes in current iteration */ in block_crypto_co_pwritev() local
578 cur_bytes in block_crypto_co_pwritev()
[all...]
H A Dcopy-before-write.c271 int64_t cur_bytes; in cbw_co_preadv_snapshot() local
273 req = cbw_snapshot_read_lock(bs, offset, bytes, &cur_bytes, &file); in cbw_co_preadv_snapshot()
278 ret = bdrv_co_preadv_part(file, offset, cur_bytes, in cbw_co_preadv_snapshot()
285 bytes -= cur_bytes; in cbw_co_preadv_snapshot()
286 offset += cur_bytes; in cbw_co_preadv_snapshot()
287 qiov_offset += cur_bytes; in cbw_co_preadv_snapshot()
302 int64_t cur_bytes; in cbw_co_snapshot_block_status() local
305 req = cbw_snapshot_read_lock(bs, offset, bytes, &cur_bytes, &child); in cbw_co_snapshot_block_status()
310 ret = bdrv_co_block_status(child->bs, offset, cur_bytes, pnum, map, file); in cbw_co_snapshot_block_status()
H A Dqcow2.c2479 unsigned int cur_bytes; /* number of bytes in current iteration */ in merge_cow()
2486 cur_bytes = MIN(bytes, INT_MAX); in merge_cow()
2488 cur_bytes = MIN(cur_bytes, in merge_cow()
2493 ret = qcow2_get_host_offset(bs, offset, &cur_bytes, in merge_cow()
2505 qemu_iovec_memset(qiov, qiov_offset, 0, cur_bytes); in merge_cow()
2507 if (!aio && cur_bytes != bytes) {
2511 host_offset, offset, cur_bytes,
2518 bytes -= cur_bytes; in is_zero_cow()
2519 offset += cur_bytes; in is_zero_cow()
2395 unsigned int cur_bytes; /* number of bytes in current iteration */ qcow2_co_preadv_part() local
2686 unsigned int cur_bytes; /* number of sectors in current iteration */ qcow2_co_pwritev_part() local
3267 unsigned int cur_bytes; preallocate_co() local
4157 unsigned int cur_bytes; /* number of bytes in current iteration */ qcow2_co_copy_range_from() local
4240 unsigned int cur_bytes; /* number of sectors in current iteration */ qcow2_co_copy_range_to() local
5423 unsigned int cur_bytes = MIN(INT_MAX, bytes); qcow2_has_compressed_clusters() local
[all...]
H A Dqcow2-cluster.c1396 * 0 if there was no dependency. *cur_bytes indicates the number of
1402 * must start over anyway, so consider *cur_bytes undefined.
1406 uint64_t *cur_bytes, QCowL2Meta **m) in handle_dependencies() argument
1410 uint64_t bytes = *cur_bytes; in handle_dependencies()
1451 *cur_bytes = 0; in handle_dependencies()
1467 *cur_bytes = bytes; in handle_dependencies()
1791 uint64_t cur_bytes; in qcow2_alloc_host_offset() local
1801 cur_bytes = 0; in qcow2_alloc_host_offset()
1810 assert(remaining >= cur_bytes); in qcow2_alloc_host_offset()
1812 start += cur_bytes; in qcow2_alloc_host_offset()
[all...]
H A Dtrace-events74 qcow2_writev_done_part(void *co, int cur_bytes) "co %p cur_bytes %d"