Home
last modified time | relevance | path

Searched refs:REFCOUNT_SHIFT (Results 1 – 2 of 2) sorted by relevance

/external/qemu/block/
Dqcow2-refcount.c125 refcount_table_index = cluster_index >> (s->cluster_bits - REFCOUNT_SHIFT); in get_refcount()
139 ((1 << (s->cluster_bits - REFCOUNT_SHIFT)) - 1); in get_refcount()
166 uint64_t block_a = offset_a >> (2 * s->cluster_bits - REFCOUNT_SHIFT); in in_same_refcount_block()
167 uint64_t block_b = offset_b >> (2 * s->cluster_bits - REFCOUNT_SHIFT); in in_same_refcount_block()
187 refcount_table_index = cluster_index >> (s->cluster_bits - REFCOUNT_SHIFT); in alloc_refcount_block()
254 ((1 << (s->cluster_bits - REFCOUNT_SHIFT)) - 1); in alloc_refcount_block()
307 uint64_t refcount_block_clusters = 1 << (s->cluster_bits - REFCOUNT_SHIFT); in alloc_refcount_block()
424 #define REFCOUNTS_PER_SECTOR (512 >> REFCOUNT_SHIFT)
444 size = (last_index - first_index) << REFCOUNT_SHIFT; in write_refcount_block_entries()
448 refcount_block_offset + (first_index << REFCOUNT_SHIFT), in write_refcount_block_entries()
[all …]
Dqcow2.h47 #define REFCOUNT_SHIFT 1 /* refcount size is 2 bytes */ macro