/external/qemu/block/ |
qcow2.h | 87 int l2_size; member in struct:BDRVQcowState
|
qcow.c | 62 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));
|
qcow2-refcount.c | 751 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 = s->l2_size * sizeof(uint64_t) [all...] |
vmdk.c | 72 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 * sizeof(uint32_t) [all...] |