Lines Matching defs:l1_size
33 uint32_t l1_size;
87 sn->l1_size = be32_to_cpu(h.l1_size);
150 h.l1_size = cpu_to_be32(sn->l1_size);
265 ret = qcow2_update_snapshot_refcount(bs, s->l1_table_offset, s->l1_size, 1);
270 l1_table_offset = qcow2_alloc_clusters(bs, s->l1_size * sizeof(uint64_t));
276 sn->l1_size = s->l1_size;
278 if (s->l1_size != 0) {
279 l1_table = qemu_malloc(s->l1_size * sizeof(uint64_t));
284 for(i = 0; i < s->l1_size; i++) {
288 l1_table, s->l1_size * sizeof(uint64_t)) < 0)
325 if (qcow2_update_snapshot_refcount(bs, s->l1_table_offset, s->l1_size, -1) < 0)
328 if (qcow2_grow_l1_table(bs, sn->l1_size) < 0)
331 s->l1_size = sn->l1_size;
332 l1_size2 = s->l1_size * sizeof(uint64_t);
340 for(i = 0;i < s->l1_size; i++) {
344 if (qcow2_update_snapshot_refcount(bs, s->l1_table_offset, s->l1_size, 1) < 0)
366 ret = qcow2_update_snapshot_refcount(bs, sn->l1_table_offset, sn->l1_size, -1);
370 ret = qcow2_update_snapshot_refcount(bs, s->l1_table_offset, s->l1_size, 0);
373 qcow2_free_clusters(bs, sn->l1_table_offset, sn->l1_size * sizeof(uint64_t));