Lines Matching refs:new_table
543 uint64_t *new_table; in qcow2_refcount_area() local
577 new_table = g_try_new0(uint64_t, table_size); in qcow2_refcount_area()
580 if (new_table == NULL) { in qcow2_refcount_area()
588 memcpy(new_table, s->refcount_table, in qcow2_refcount_area()
595 memcpy(new_table, s->refcount_table, table_size * REFTABLE_ENTRY_SIZE); in qcow2_refcount_area()
600 new_table[new_refblock_index] = new_refblock_offset; in qcow2_refcount_area()
606 if (!new_table[i]) { in qcow2_refcount_area()
621 if (new_table[i]) { in qcow2_refcount_area()
622 ret = qcow2_cache_get(bs, s->refcount_block_cache, new_table[i], in qcow2_refcount_area()
637 new_table[i] = block_offset; in qcow2_refcount_area()
685 cpu_to_be64s(&new_table[i]); in qcow2_refcount_area()
690 table_size * REFTABLE_ENTRY_SIZE, new_table, 0); in qcow2_refcount_area()
696 be64_to_cpus(&new_table[i]); in qcow2_refcount_area()
719 s->refcount_table = new_table; in qcow2_refcount_area()
732 g_free(new_table); in qcow2_refcount_area()