Searched refs:l1_table (Results 1 – 7 of 7) sorted by relevance
/external/qemu/block/ |
D | qcow2-snapshot.c | 240 uint64_t *l1_table = NULL; in qcow2_snapshot_create() local 279 l1_table = qemu_malloc(s->l1_size * sizeof(uint64_t)); in qcow2_snapshot_create() 281 l1_table = NULL; in qcow2_snapshot_create() 285 l1_table[i] = cpu_to_be64(s->l1_table[i]); in qcow2_snapshot_create() 288 l1_table, s->l1_size * sizeof(uint64_t)) < 0) in qcow2_snapshot_create() 290 qemu_free(l1_table); in qcow2_snapshot_create() 291 l1_table = NULL; in qcow2_snapshot_create() 309 qemu_free(l1_table); in qcow2_snapshot_create() 335 s->l1_table, l1_size2) != l1_size2) in qcow2_snapshot_goto() 338 s->l1_table, l1_size2) < 0) in qcow2_snapshot_goto() [all …]
|
D | qcow2-refcount.c | 749 uint64_t *l1_table, *l2_table, l2_offset, offset, l1_size2, l1_allocated; in qcow2_update_snapshot_refcount() local 757 l1_table = NULL; in qcow2_update_snapshot_refcount() 761 l1_table = qemu_mallocz(align_offset(l1_size2, 512)); in qcow2_update_snapshot_refcount() 763 l1_table = NULL; in qcow2_update_snapshot_refcount() 767 l1_table, l1_size2) != l1_size2) in qcow2_update_snapshot_refcount() 770 be64_to_cpus(&l1_table[i]); in qcow2_update_snapshot_refcount() 773 l1_table = s->l1_table; in qcow2_update_snapshot_refcount() 781 l2_offset = l1_table[i]; in qcow2_update_snapshot_refcount() 845 l1_table[i] = l2_offset; in qcow2_update_snapshot_refcount() 852 cpu_to_be64s(&l1_table[i]); in qcow2_update_snapshot_refcount() [all …]
|
D | qcow2-cluster.c | 54 memcpy(new_l1_table, s->l1_table, s->l1_size * sizeof(uint64_t)); in qcow2_grow_l1_table() 81 qemu_free(s->l1_table); in qcow2_grow_l1_table() 84 s->l1_table = new_l1_table; in qcow2_grow_l1_table() 206 buf[i] = cpu_to_be64(s->l1_table[l1_start_index + i]); in write_l1_entry() 238 old_l2_offset = s->l1_table[l1_index]; in l2_allocate() 273 s->l1_table[l1_index] = l2_offset | QCOW_OFLAG_COPIED; in l2_allocate() 288 s->l1_table[l1_index] = old_l2_offset; in l2_allocate() 478 l2_offset = s->l1_table[l1_index]; in qcow2_get_cluster_offset() 550 l2_offset = s->l1_table[l1_index]; in get_cluster_table() 568 l2_offset = s->l1_table[l1_index] & ~QCOW_OFLAG_COPIED; in get_cluster_table()
|
D | qcow.c | 66 uint64_t *l1_table; member 132 s->l1_table = qemu_malloc(s->l1_size * sizeof(uint64_t)); in qcow_open() 133 if (!s->l1_table) in qcow_open() 135 if (bdrv_pread(bs->file, s->l1_table_offset, s->l1_table, s->l1_size * sizeof(uint64_t)) != in qcow_open() 139 be64_to_cpus(&s->l1_table[i]); in qcow_open() 165 qemu_free(s->l1_table); in qcow_open() 264 l2_offset = s->l1_table[l1_index]; in get_cluster_offset() 274 s->l1_table[l1_index] = l2_offset; in get_cluster_offset() 736 qemu_free(s->l1_table); in qcow_close() 838 memset(s->l1_table, 0, l1_length); in qcow_make_empty() [all …]
|
D | vmdk.c | 67 uint32_t *l1_table; member 411 s->l1_table = qemu_malloc(l1_size); in vmdk_open() 412 if (bdrv_pread(bs->file, s->l1_table_offset, s->l1_table, l1_size) != l1_size) in vmdk_open() 415 le32_to_cpus(&s->l1_table[i]); in vmdk_open() 431 qemu_free(s->l1_table); in vmdk_open() 503 l2_offset = s->l1_table[l1_index]; in get_cluster_offset() 822 qemu_free(s->l1_table); in vmdk_close()
|
D | qcow2.c | 197 s->l1_table = qemu_mallocz( in qcow_open() 199 if (bdrv_pread(bs->file, s->l1_table_offset, s->l1_table, s->l1_size * sizeof(uint64_t)) != in qcow_open() 203 be64_to_cpus(&s->l1_table[i]); in qcow_open() 247 qemu_free(s->l1_table); in qcow_open() 664 qemu_free(s->l1_table); in qcow_close() 1098 memset(s->l1_table, 0, l1_length); in qcow_make_empty() 1099 if (bdrv_pwrite(bs->file, s->l1_table_offset, s->l1_table, l1_length) < 0) in qcow_make_empty()
|
D | qcow2.h | 94 uint64_t *l1_table; member
|