Searched refs:l2_size (Results 1 – 6 of 6) sorted by relevance
/external/qemu/block/ |
D | qcow2-refcount.c | 751 int l2_size, i, j, l1_modified, l2_modified, nb_csectors, refcount; in qcow2_update_snapshot_refcount() local 777 l2_size = s->l2_size * sizeof(uint64_t); 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() 788 for(j = 0; j < s->l2_size; j++) { in qcow2_update_snapshot_refcount() 830 l2_offset, l2_table, l2_size) < 0) in qcow2_update_snapshot_refcount() 940 int i, l2_size, nb_csectors, refcount; in check_refcounts_l2() local 943 l2_size = s->l2_size * sizeof(uint64_t); in check_refcounts_l2() 944 l2_table = qemu_malloc(l2_size); in check_refcounts_l2() 946 if (bdrv_pread(bs->file, l2_offset, l2_table, l2_size) != l2_size) in check_refcounts_l2() [all …]
|
D | vmdk.c | 72 unsigned int l2_size; member 378 s->l2_size = 1 << 9; in vmdk_open() 383 s->l1_entry_sectors = s->l2_size * s->cluster_sectors; in vmdk_open() 391 s->l2_size = le32_to_cpu(header.num_gtes_per_gte); in vmdk_open() 392 s->l1_entry_sectors = s->l2_size * s->cluster_sectors; in vmdk_open() 427 s->l2_cache = qemu_malloc(s->l2_size * L2_CACHE_SIZE * sizeof(uint32_t)); in vmdk_open() 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() 529 … s->l2_size * sizeof(uint32_t)) in get_cluster_offset() [all …]
|
D | qcow2-cluster.c | 97 memset(s->l2_cache, 0, s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t)); in qcow2_l2_cache_reset() 181 s->l2_size * sizeof(uint64_t)); in l2_load() 242 l2_offset = qcow2_alloc_clusters(bs, s->l2_size * sizeof(uint64_t)); in l2_allocate() 254 memset(l2_table, 0, s->l2_size * sizeof(uint64_t)); in l2_allocate() 259 s->l2_size * sizeof(uint64_t)); in l2_allocate() 267 s->l2_size * sizeof(uint64_t)); in l2_allocate() 495 l2_index = (offset >> s->cluster_bits) & (s->l2_size - 1); in qcow2_get_cluster_offset() 563 qcow2_free_clusters(bs, l2_offset, s->l2_size * sizeof(uint64_t)); in get_cluster_table() 573 l2_index = (offset >> s->cluster_bits) & (s->l2_size - 1); in get_cluster_table() 767 nb_clusters = MIN(nb_clusters, s->l2_size - l2_index); in qcow2_alloc_cluster_offset()
|
D | qcow.c | 62 int l2_size; member 123 s->l2_size = 1 << s->l2_bits; in qcow_open() 142 s->l2_cache = qemu_malloc(s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t)); in qcow_open() 305 memset(l2_table, 0, s->l2_size * sizeof(uint64_t)); in get_cluster_offset() 307 s->l2_size * sizeof(uint64_t)) < 0) in get_cluster_offset() 310 if (bdrv_pread(bs->file, l2_offset, l2_table, s->l2_size * sizeof(uint64_t)) != in get_cluster_offset() 311 s->l2_size * sizeof(uint64_t)) in get_cluster_offset() 317 l2_index = (offset >> s->cluster_bits) & (s->l2_size - 1); in get_cluster_offset() 846 memset(s->l2_cache, 0, s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t)); in qcow_make_empty()
|
D | qcow2.h | 87 int l2_size; member
|
D | qcow2.c | 176 s->l2_size = 1 << s->l2_bits; in qcow_open() 207 s->l2_cache = qemu_malloc(s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t)); in qcow_open()
|