Lines Matching refs:refcount_table_size
93 unsigned i = s->refcount_table_size - 1; in update_max_refcount_table_index()
112 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()
116 if (s->refcount_table_size > 0) { in qcow2_refcount_init()
127 for(i = 0; i < s->refcount_table_size; i++) in qcow2_refcount_init()
257 if (refcount_table_index >= s->refcount_table_size) { in qcow2_get_refcount()
318 if (refcount_table_index < s->refcount_table_size) { in alloc_refcount_block()
439 if (refcount_table_index < s->refcount_table_size) { in alloc_refcount_block()
716 uint64_t old_table_size = s->refcount_table_size; in qcow2_refcount_area()
720 s->refcount_table_size = table_size; in qcow2_refcount_area()
1528 int64_t *refcount_table_size, in qcow2_inc_refcounts_imrt() argument
1563 if (k >= *refcount_table_size) { in qcow2_inc_refcounts_imrt()
1565 refcount_table_size, k + 1); in qcow2_inc_refcounts_imrt()
1665 int64_t *refcount_table_size, int64_t l2_offset, in check_refcounts_l2() argument
1732 bs, res, refcount_table, refcount_table_size, coffset, csize); in check_refcounts_l2()
1824 refcount_table_size, in check_refcounts_l2()
1864 void **refcount_table, int64_t *refcount_table_size, in check_refcounts_l1() argument
1879 ret = qcow2_inc_refcounts_imrt(bs, res, refcount_table, refcount_table_size, in check_refcounts_l1()
1919 refcount_table, refcount_table_size, in check_refcounts_l1()
1934 refcount_table_size, l2_offset, flags, in check_refcounts_l1()
2094 for(i = 0; i < s->refcount_table_size; i++) { in check_refblocks()
2274 s->refcount_table_size * in calculate_refcounts()
2766 s->refcount_table_size = on_disk_reftable_entries; in rebuild_refcount_structure()
2948 if ((chk & QCOW2_OL_REFCOUNT_TABLE) && s->refcount_table_size) { in qcow2_check_metadata_overlap()
2950 s->refcount_table_size * REFTABLE_ENTRY_SIZE)) { in qcow2_check_metadata_overlap()
2983 assert(last_entry < s->refcount_table_size); in qcow2_check_metadata_overlap()
2984 assert(last_entry + 1 == s->refcount_table_size || in qcow2_check_metadata_overlap()
3233 for (reftable_index = 0; reftable_index < s->refcount_table_size; in walk_over_reftable()
3239 status_cb(bs, (uint64_t)index * s->refcount_table_size + reftable_index, in walk_over_reftable()
3240 (uint64_t)total * s->refcount_table_size, cb_opaque); in walk_over_reftable()
3356 status_cb(bs, (uint64_t)(index + 1) * s->refcount_table_size, in walk_over_reftable()
3357 (uint64_t)total * s->refcount_table_size, cb_opaque); in walk_over_reftable()
3488 old_reftable_size = s->refcount_table_size; in qcow2_change_refcount_order()
3492 s->refcount_table_size = new_reftable_size; in qcow2_change_refcount_order()
3498 s->refcount_table_size = old_reftable_size; in qcow2_change_refcount_order()
3557 if (index < s->refcount_table_size) { in get_refblock_offset()
3631 g_malloc(s->refcount_table_size * REFTABLE_ENTRY_SIZE); in qcow2_shrink_reftable()
3634 for (i = 0; i < s->refcount_table_size; i++) { in qcow2_shrink_reftable()
3669 s->refcount_table_size * REFTABLE_ENTRY_SIZE, in qcow2_shrink_reftable()
3676 for (i = 0; i < s->refcount_table_size; i++) { in qcow2_shrink_reftable()