Searched refs:l2_table (Results 1 – 4 of 4) sorted by relevance
/external/qemu/block/ |
D | qcow2-cluster.c | 161 uint64_t **l2_table) in l2_load() argument 169 *l2_table = seek_l2_table(s, l2_offset); in l2_load() 170 if (*l2_table != NULL) { in l2_load() 177 *l2_table = s->l2_cache + (min_index << s->l2_bits); in l2_load() 180 ret = bdrv_pread(bs->file, l2_offset, *l2_table, in l2_load() 234 uint64_t *l2_table; in l2_allocate() local 250 l2_table = s->l2_cache + (min_index << s->l2_bits); in l2_allocate() 254 memset(l2_table, 0, s->l2_size * sizeof(uint64_t)); in l2_allocate() 258 ret = bdrv_pread(bs->file, old_l2_offset, l2_table, in l2_allocate() 266 ret = bdrv_pwrite_sync(bs->file, l2_offset, l2_table, in l2_allocate() [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 756 l2_table = NULL; in qcow2_update_snapshot_refcount() 778 l2_table = qemu_malloc(l2_size); in qcow2_update_snapshot_refcount() 786 if (bdrv_pread(bs->file, l2_offset, l2_table, l2_size) != l2_size) in qcow2_update_snapshot_refcount() 789 offset = be64_to_cpu(l2_table[j]); in qcow2_update_snapshot_refcount() 823 l2_table[j] = cpu_to_be64(offset); in qcow2_update_snapshot_refcount() 830 l2_offset, l2_table, l2_size) < 0) in qcow2_update_snapshot_refcount() 861 qemu_free(l2_table); in qcow2_update_snapshot_refcount() 868 qemu_free(l2_table); in qcow2_update_snapshot_refcount() 939 uint64_t *l2_table, offset; in check_refcounts_l2() local [all …]
|
D | qcow.c | 259 uint64_t l2_offset, *l2_table, cluster_offset, tmp; in get_cluster_offset() local 290 l2_table = s->l2_cache + (i << s->l2_bits); in get_cluster_offset() 303 l2_table = s->l2_cache + (min_index << s->l2_bits); in get_cluster_offset() 305 memset(l2_table, 0, s->l2_size * sizeof(uint64_t)); in get_cluster_offset() 306 if (bdrv_pwrite_sync(bs->file, l2_offset, l2_table, in get_cluster_offset() 310 if (bdrv_pread(bs->file, l2_offset, l2_table, s->l2_size * sizeof(uint64_t)) != in get_cluster_offset() 318 cluster_offset = be64_to_cpu(l2_table[l2_index]); in get_cluster_offset() 371 l2_table[l2_index] = tmp; in get_cluster_offset()
|
D | vmdk.c | 494 uint32_t min_count, *l2_table, tmp = 0; in get_cluster_offset() local 514 l2_table = s->l2_cache + (i * s->l2_size); in get_cluster_offset() 527 l2_table = s->l2_cache + (min_index * s->l2_size); in get_cluster_offset() 528 if (bdrv_pread(bs->file, (int64_t)l2_offset * 512, l2_table, s->l2_size * sizeof(uint32_t)) != in get_cluster_offset() 536 cluster_offset = le32_to_cpu(l2_table[l2_index]); in get_cluster_offset() 548 l2_table[l2_index] = tmp; in get_cluster_offset()
|