Lines Matching refs:host_offset
587 unsigned int *bytes, uint64_t *host_offset, in qcow2_get_host_offset() argument
613 *host_offset = 0; in qcow2_get_host_offset()
677 *host_offset = l2_entry; in qcow2_get_host_offset()
686 *host_offset = host_cluster_offset + offset_in_cluster; in qcow2_get_host_offset()
696 if (has_data_file(bs) && *host_offset != offset) { in qcow2_get_host_offset()
829 int compressed_size, uint64_t *host_offset) in qcow2_alloc_compressed_cluster_offset() argument
883 *host_offset = cluster_offset & s->cluster_offset_mask; in qcow2_alloc_compressed_cluster_offset()
1496 uint64_t *host_offset, uint64_t *bytes, QCowL2Meta **m) in handle_copied() argument
1506 trace_qcow2_handle_copied(qemu_coroutine_self(), guest_offset, *host_offset, in handle_copied()
1509 assert(*host_offset == INV_OFFSET || offset_into_cluster(s, guest_offset) in handle_copied()
1510 == offset_into_cluster(s, *host_offset)); in handle_copied()
1545 if (*host_offset != INV_OFFSET && cluster_offset != *host_offset) { in handle_copied()
1579 *host_offset = cluster_offset + offset_into_cluster(s, guest_offset); in handle_copied()
1606 uint64_t *host_offset, uint64_t *nb_clusters) in do_alloc_cluster_offset() argument
1611 *host_offset, *nb_clusters); in do_alloc_cluster_offset()
1614 assert(*host_offset == INV_OFFSET || in do_alloc_cluster_offset()
1615 *host_offset == start_of_cluster(s, guest_offset)); in do_alloc_cluster_offset()
1616 *host_offset = start_of_cluster(s, guest_offset); in do_alloc_cluster_offset()
1622 if (*host_offset == INV_OFFSET) { in do_alloc_cluster_offset()
1628 *host_offset = cluster_offset; in do_alloc_cluster_offset()
1631 int64_t ret = qcow2_alloc_clusters_at(bs, *host_offset, *nb_clusters); in do_alloc_cluster_offset()
1663 uint64_t *host_offset, uint64_t *bytes, QCowL2Meta **m) in handle_alloc() argument
1673 trace_qcow2_handle_alloc(qemu_coroutine_self(), guest_offset, *host_offset, in handle_alloc()
1704 alloc_cluster_offset = *host_offset == INV_OFFSET ? INV_OFFSET : in handle_alloc()
1705 start_of_cluster(s, *host_offset); in handle_alloc()
1739 *host_offset = alloc_cluster_offset + offset_into_cluster(s, guest_offset); in handle_alloc()
1785 uint64_t *host_offset, in qcow2_alloc_host_offset() argument
1800 *host_offset = INV_OFFSET; in qcow2_alloc_host_offset()
1806 if (*host_offset == INV_OFFSET && cluster_offset != INV_OFFSET) { in qcow2_alloc_host_offset()
1807 *host_offset = cluster_offset; in qcow2_alloc_host_offset()
1889 assert(*host_offset != INV_OFFSET); in qcow2_alloc_host_offset()
1890 assert(offset_into_cluster(s, *host_offset) == in qcow2_alloc_host_offset()