Home
last modified time | relevance | path

Searched refs:l2_entry (Results 1 – 10 of 10) sorted by relevance

/openbmc/qemu/block/
H A Dqcow2-cluster.c395 qcow2_get_subcluster_range_type(BlockDriverState *bs, uint64_t l2_entry, in qcow2_get_subcluster_range_type() argument
402 *type = qcow2_get_subcluster_type(bs, l2_entry, l2_bitmap, sc_from); in qcow2_get_subcluster_range_type()
459 uint64_t l2_entry = get_l2_entry(s, l2_slice, *l2_index + i); in count_contiguous_subclusters() local
461 int ret = qcow2_get_subcluster_range_type(bs, l2_entry, l2_bitmap, in count_contiguous_subclusters()
473 expected_offset = l2_entry & L2E_OFFSET_MASK; in count_contiguous_subclusters()
481 if (expected_offset != (l2_entry & L2E_OFFSET_MASK)) { in count_contiguous_subclusters()
592 uint64_t l1_index, l2_offset, *l2_slice, l2_entry, l2_bitmap; in qcow2_get_host_offset() local
647 l2_entry = get_l2_entry(s, l2_slice, l2_index); in qcow2_get_host_offset()
656 type = qcow2_get_subcluster_type(bs, l2_entry, l2_bitmap, sc_index); in qcow2_get_host_offset()
677 *host_offset = l2_entry; in qcow2_get_host_offset()
[all …]
H A Dqcow2.h713 qcow2_get_cluster_type(BlockDriverState *bs, uint64_t l2_entry) in qcow2_get_cluster_type() argument
717 if (l2_entry & QCOW_OFLAG_COMPRESSED) { in qcow2_get_cluster_type()
719 } else if ((l2_entry & QCOW_OFLAG_ZERO) && !has_subclusters(s)) { in qcow2_get_cluster_type()
720 if (l2_entry & L2E_OFFSET_MASK) { in qcow2_get_cluster_type()
724 } else if (!(l2_entry & L2E_OFFSET_MASK)) { in qcow2_get_cluster_type()
729 if (has_data_file(bs) && (l2_entry & QCOW_OFLAG_COPIED)) { in qcow2_get_cluster_type()
748 uint64_t l2_entry, in qcow2_get_subcluster_type() argument
753 QCow2ClusterType type = qcow2_get_cluster_type(bs, l2_entry); in qcow2_get_subcluster_type()
881 qcow2_free_any_cluster(BlockDriverState *bs, uint64_t l2_entry,
944 qcow2_parse_compressed_l2_entry(BlockDriverState *bs, uint64_t l2_entry,
H A Dqcow2-refcount.c1162 void qcow2_free_any_cluster(BlockDriverState *bs, uint64_t l2_entry, in qcow2_free_any_cluster() argument
1166 QCow2ClusterType ctype = qcow2_get_cluster_type(bs, l2_entry); in qcow2_free_any_cluster()
1173 bdrv_pdiscard(s->data_file, l2_entry & L2E_OFFSET_MASK, in qcow2_free_any_cluster()
1185 qcow2_parse_compressed_l2_entry(bs, l2_entry, &coffset, &csize); in qcow2_free_any_cluster()
1191 if (offset_into_cluster(s, l2_entry & L2E_OFFSET_MASK)) { in qcow2_free_any_cluster()
1194 l2_entry & L2E_OFFSET_MASK); in qcow2_free_any_cluster()
1196 qcow2_free_clusters(bs, l2_entry & L2E_OFFSET_MASK, in qcow2_free_any_cluster()
1669 uint64_t l2_entry, l2_bitmap; in check_refcounts_l2() local
1690 l2_entry = get_l2_entry(s, l2_table, i); in check_refcounts_l2()
1692 type = qcow2_get_cluster_type(bs, l2_entry); in check_refcounts_l2()
[all …]
H A Dqcow2.c79 uint64_t l2_entry,
4823 uint64_t l2_entry, in qcow2_co_preadv_compressed() argument
4835 qcow2_parse_compressed_l2_entry(bs, l2_entry, &coffset, &csize); in qcow2_co_preadv_compressed()
/openbmc/qemu/tests/qemu-iotests/
H A D214.out22 Repairing OFLAG_COPIED data cluster: l2_entry=8000000000c00000 refcount=3
23 Repairing OFLAG_COPIED data cluster: l2_entry=8000000000e00000 refcount=2
H A D039.out17 ERROR OFLAG_COPIED data cluster: l2_entry=8000000000050000 refcount=0
85 ERROR OFLAG_COPIED data cluster: l2_entry=8000000000050000 refcount=0
H A D217.out34 Repairing OFLAG_COPIED data cluster: l2_entry=50000 refcount=1
H A D112.out133 Repairing OFLAG_COPIED data cluster: l2_entry=8000000000050000 refcount=2
134 Repairing OFLAG_COPIED data cluster: l2_entry=8000000000050000 refcount=2
H A D060.out82 Repairing OFLAG_COPIED data cluster: l2_entry=8000000000040000 refcount=2
/openbmc/qemu/tests/image-fuzzer/qcow2/
H A Dfuzz.py344 def l2_entry(current): function