/external/qemu/block/ |
qcow2-cluster.c | 85 memset(s->l2_cache, 0, s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t)); 164 if (bdrv_pread(s->hd, l2_offset, l2_table, s->l2_size * sizeof(uint64_t)) != 165 s->l2_size * sizeof(uint64_t)) 219 l2_offset = qcow2_alloc_clusters(bs, s->l2_size * sizeof(uint64_t)); 235 memset(l2_table, 0, s->l2_size * sizeof(uint64_t)); 239 l2_table, s->l2_size * sizeof(uint64_t)) != 240 s->l2_size * sizeof(uint64_t)) 245 l2_table, s->l2_size * sizeof(uint64_t)) != 246 s->l2_size * sizeof(uint64_t)) 446 l2_index = (offset >> s->cluster_bits) & (s->l2_size - 1) [all...] |
qcow2-refcount.c | 471 int l2_size, i, j, l1_modified, l2_modified, nb_csectors, refcount; local 493 l2_size = s->l2_size * sizeof(uint64_t); 494 l2_table = qemu_malloc(l2_size); 502 if (bdrv_pread(s->hd, l2_offset, l2_table, l2_size) != l2_size) 504 for(j = 0; j < s->l2_size; j++) { 536 l2_offset, l2_table, l2_size) != l2_size) 637 int i, l2_size, nb_csectors, refcount local [all...] |
vmdk.c | 72 unsigned int l2_size; member in struct:BDRVVmdkState 391 s->l2_size = 1 << 9; 396 s->l1_entry_sectors = s->l2_size * s->cluster_sectors; 404 s->l2_size = le32_to_cpu(header.num_gtes_per_gte); 405 s->l1_entry_sectors = s->l2_size * s->cluster_sectors; 445 s->l2_cache = qemu_malloc(s->l2_size * L2_CACHE_SIZE * sizeof(uint32_t)); 534 l2_table = s->l2_cache + (i * s->l2_size); 547 l2_table = s->l2_cache + (min_index * s->l2_size); 548 if (bdrv_pread(s->hd, (int64_t)l2_offset * 512, l2_table, s->l2_size * sizeof(uint32_t)) != 549 s->l2_size * sizeof(uint32_t) [all...] |
qcow.c | 62 int l2_size; member in struct:BDRVQcowState 126 s->l2_size = 1 << s->l2_bits; 145 s->l2_cache = qemu_malloc(s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t)); 308 memset(l2_table, 0, s->l2_size * sizeof(uint64_t)); 309 if (bdrv_pwrite(s->hd, l2_offset, l2_table, s->l2_size * sizeof(uint64_t)) != 310 s->l2_size * sizeof(uint64_t)) 313 if (bdrv_pread(s->hd, l2_offset, l2_table, s->l2_size * sizeof(uint64_t)) != 314 s->l2_size * sizeof(uint64_t)) 320 l2_index = (offset >> s->cluster_bits) & (s->l2_size - 1); 830 memset(s->l2_cache, 0, s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t)) [all...] |
qcow2.h | 83 int l2_size; member in struct:BDRVQcowState
|
qcow2.c | 194 s->l2_size = 1 << s->l2_bits; 223 s->l2_cache = qemu_malloc(s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t));
|