Home
last modified time | relevance | path

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

/external/qemu/block/
Dqcow2-refcount.c66 s->refcount_table = qemu_malloc(refcount_table_size2); in qcow2_refcount_init()
70 s->refcount_table, refcount_table_size2); in qcow2_refcount_init()
74 be64_to_cpus(&s->refcount_table[i]); in qcow2_refcount_init()
85 qemu_free(s->refcount_table); in qcow2_refcount_close()
128 refcount_block_offset = s->refcount_table[refcount_table_index]; in get_refcount()
192 s->refcount_table[refcount_table_index]; in alloc_refcount_block()
289 s->refcount_table[refcount_table_index] = new_block; in alloc_refcount_block()
344 memcpy(new_table, s->refcount_table, in alloc_refcount_block()
400 qemu_free(s->refcount_table); in alloc_refcount_block()
401 s->refcount_table = new_table; in alloc_refcount_block()
[all …]
Dqcow2.h103 uint64_t *refcount_table; member
126 uint64_t *refcount_table; member
Dqcow2.c937 s->refcount_table = qemu_mallocz(reftable_clusters * s->cluster_size); in qcow_create2()
946 s->refcount_table[i] = cpu_to_be64(offset); in qcow_create2()
1009 ret = qemu_write_full(fd, s->refcount_table, in qcow_create2()
1026 qemu_free(s->refcount_table); in qcow_create2()