Home
last modified time | relevance | path

Searched refs:REFTABLE_ENTRY_SIZE (Results 1 – 3 of 3) sorted by relevance

/openbmc/qemu/block/
H A Dqcow2-refcount.c112 assert(s->refcount_table_size <= INT_MAX / REFTABLE_ENTRY_SIZE); in qcow2_refcount_init()
113 refcount_table_size2 = s->refcount_table_size * REFTABLE_ENTRY_SIZE; in qcow2_refcount_init()
443 refcount_table_index * REFTABLE_ENTRY_SIZE, in alloc_refcount_block()
570 table_size = ROUND_UP(table_size, s->cluster_size / REFTABLE_ENTRY_SIZE); in qcow2_refcount_area()
571 table_clusters = (table_size * REFTABLE_ENTRY_SIZE) / s->cluster_size; in qcow2_refcount_area()
589 (s->max_refcount_table_index + 1) * REFTABLE_ENTRY_SIZE); in qcow2_refcount_area()
595 memcpy(new_table, s->refcount_table, table_size * REFTABLE_ENTRY_SIZE); in qcow2_refcount_area()
690 table_size * REFTABLE_ENTRY_SIZE, new_table, 0); in qcow2_refcount_area()
726 old_table_size * REFTABLE_ENTRY_SIZE, in qcow2_refcount_area()
2275 REFTABLE_ENTRY_SIZE); in calculate_refcounts()
[all …]
H A Dqcow2.h106 #define REFTABLE_ENTRY_SIZE (sizeof(uint64_t)) macro
H A Dqcow2.c3349 int64_t blocks_per_table_cluster = cluster_size / REFTABLE_ENTRY_SIZE; in qcow2_refcount_metadata_size()
4943 new_reftable = g_try_new0(uint64_t, s->cluster_size / REFTABLE_ENTRY_SIZE); in make_completely_empty()
4950 s->refcount_table_size = s->cluster_size / REFTABLE_ENTRY_SIZE; in make_completely_empty()