Searched refs:l2_size (Results 1 - 6 of 6) sorted by relevance

/external/qemu/block/
H A Dqcow2-refcount.c751 int l2_size, i, j, l1_modified, l2_modified, nb_csectors, refcount; local
777 l2_size = s->l2_size * sizeof(uint64_t);
778 l2_table = qemu_malloc(l2_size);
786 if (bdrv_pread(bs->file, l2_offset, l2_table, l2_size) != l2_size)
788 for(j = 0; j < s->l2_size; j++) {
830 l2_offset, l2_table, l2_size) < 0)
940 int i, l2_size, nb_csectors, refcount; local
943 l2_size
[all...]
H A Dvmdk.c72 unsigned int l2_size; member in struct:BDRVVmdkState
378 s->l2_size = 1 << 9;
383 s->l1_entry_sectors = s->l2_size * s->cluster_sectors;
391 s->l2_size = le32_to_cpu(header.num_gtes_per_gte);
392 s->l1_entry_sectors = s->l2_size * s->cluster_sectors;
427 s->l2_cache = qemu_malloc(s->l2_size * L2_CACHE_SIZE * sizeof(uint32_t));
514 l2_table = s->l2_cache + (i * s->l2_size);
527 l2_table = s->l2_cache + (min_index * s->l2_size);
528 if (bdrv_pread(bs->file, (int64_t)l2_offset * 512, l2_table, s->l2_size * sizeof(uint32_t)) !=
529 s->l2_size * sizeo
[all...]
H A Dqcow2-cluster.c97 memset(s->l2_cache, 0, s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t));
181 s->l2_size * sizeof(uint64_t));
242 l2_offset = qcow2_alloc_clusters(bs, s->l2_size * sizeof(uint64_t));
254 memset(l2_table, 0, s->l2_size * sizeof(uint64_t));
259 s->l2_size * sizeof(uint64_t));
267 s->l2_size * sizeof(uint64_t));
495 l2_index = (offset >> s->cluster_bits) & (s->l2_size - 1);
563 qcow2_free_clusters(bs, l2_offset, s->l2_size * sizeof(uint64_t));
573 l2_index = (offset >> s->cluster_bits) & (s->l2_size - 1);
767 nb_clusters = MIN(nb_clusters, s->l2_size
[all...]
H A Dqcow.c62 int l2_size; member in struct:BDRVQcowState
123 s->l2_size = 1 << s->l2_bits;
142 s->l2_cache = qemu_malloc(s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t));
305 memset(l2_table, 0, s->l2_size * sizeof(uint64_t));
307 s->l2_size * sizeof(uint64_t)) < 0)
310 if (bdrv_pread(bs->file, l2_offset, l2_table, s->l2_size * sizeof(uint64_t)) !=
311 s->l2_size * sizeof(uint64_t))
317 l2_index = (offset >> s->cluster_bits) & (s->l2_size - 1);
846 memset(s->l2_cache, 0, s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t));
H A Dqcow2.h87 int l2_size; member in struct:BDRVQcowState
H A Dqcow2.c176 s->l2_size = 1 << s->l2_bits;
207 s->l2_cache = qemu_malloc(s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t));

Completed in 35 milliseconds