Searched refs:l2_bitmap (Results 1 – 4 of 4) sorted by relevance
| /openbmc/qemu/block/ |
| H A D | qcow2-cluster.c | 396 uint64_t l2_bitmap, unsigned sc_from, 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() 412 val = l2_bitmap | QCOW_OFLAG_SUB_ALLOC_RANGE(0, sc_from); in qcow2_get_subcluster_range_type() 417 val = (l2_bitmap | QCOW_OFLAG_SUB_ZERO_RANGE(0, sc_from)) >> 32; in qcow2_get_subcluster_range_type() 422 val = ((l2_bitmap >> 32) | l2_bitmap) in qcow2_get_subcluster_range_type() 460 uint64_t l2_bitmap = get_l2_bitmap(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() 592 uint64_t l1_index, l2_offset, *l2_slice, l2_entry, l2_bitmap; in qcow2_get_host_offset() local 648 l2_bitmap = get_l2_bitmap(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() [all …]
|
| H A D | qcow2.h | 749 uint64_t l2_bitmap, in qcow2_get_subcluster_type() argument 761 if ((l2_bitmap >> 32) & l2_bitmap) { in qcow2_get_subcluster_type() 763 } else if (l2_bitmap & QCOW_OFLAG_SUB_ZERO(sc_index)) { in qcow2_get_subcluster_type() 765 } else if (l2_bitmap & QCOW_OFLAG_SUB_ALLOC(sc_index)) { in qcow2_get_subcluster_type() 771 if (l2_bitmap & QCOW_L2_BITMAP_ALL_ALLOC) { in qcow2_get_subcluster_type() 773 } else if (l2_bitmap & QCOW_OFLAG_SUB_ZERO(sc_index)) { in qcow2_get_subcluster_type()
|
| H A D | qcow2-refcount.c | 1615 uint64_t l2_bitmap = get_l2_bitmap(s, l2_table, l2_index); in fix_l2_entry_by_zero() local 1618 l2_bitmap |= l2_bitmap << 32; in fix_l2_entry_by_zero() 1619 l2_bitmap &= QCOW_L2_BITMAP_ALL_ZEROES; in fix_l2_entry_by_zero() 1621 set_l2_bitmap(s, l2_table, l2_index, l2_bitmap); in fix_l2_entry_by_zero() 1669 uint64_t l2_entry, l2_bitmap; in check_refcounts_l2() local 1691 l2_bitmap = get_l2_bitmap(s, l2_table, i); in check_refcounts_l2() 1721 if (l2_bitmap) { in check_refcounts_l2() 1756 if ((l2_bitmap >> 32) & l2_bitmap) { in check_refcounts_l2() 1769 contains_data = (l2_bitmap & QCOW_L2_BITMAP_ALL_ALLOC); in check_refcounts_l2() 1835 assert(!l2_bitmap); in check_refcounts_l2() [all …]
|
| /openbmc/qemu/scripts/ |
| H A D | qcow2-to-stdout.py | 176 l2_bitmap = bytearray(l1_entries * l2_entries_per_table // 8) 187 bitmap_set(l2_bitmap, idx) 201 bitmap_set(l2_bitmap, idx) 350 if bitmap_is_set(l2_bitmap, l2_idx): 360 for idx in bitmap_iterator(l2_bitmap, total_data_clusters):
|