Home
last modified time | relevance | path

Searched refs:l1_size2 (Results 1 – 3 of 3) sorted by relevance

/openbmc/qemu/block/
H A Dqcow2-refcount.c1248 uint64_t *l1_table, *l2_slice, l2_offset, entry, l1_size2, refcount; in qcow2_update_snapshot_refcount() local
1259 l1_size2 = l1_size * L1E_SIZE; in qcow2_update_snapshot_refcount()
1269 l1_table = g_try_malloc0(l1_size2); in qcow2_update_snapshot_refcount()
1270 if (l1_size2 && l1_table == NULL) { in qcow2_update_snapshot_refcount()
1276 ret = bdrv_pread(bs->file, l1_table_offset, l1_size2, l1_table, 0); in qcow2_update_snapshot_refcount()
1437 ret = bdrv_pwrite_sync(bs->file, l1_table_offset, l1_size2, l1_table, in qcow2_update_snapshot_refcount()
H A Dqcow2-cluster.c2501 int l1_size2; in qcow2_expand_zero_clusters() local
2514 l1_size2 = s->snapshots[i].l1_size * L1E_SIZE; in qcow2_expand_zero_clusters()
2515 new_l1_table = g_try_realloc(l1_table, l1_size2); in qcow2_expand_zero_clusters()
2524 ret = bdrv_pread(bs->file, s->snapshots[i].l1_table_offset, l1_size2, in qcow2_expand_zero_clusters()
H A Dqcow2.c4871 uint64_t rt_entry, l1_size2; in make_completely_empty() local
4897 l1_size2 = (uint64_t)s->l1_size * L1E_SIZE; in make_completely_empty()
4907 memset(s->l1_table, 0, l1_size2); in make_completely_empty()
4976 offset = qcow2_alloc_clusters(bs, 3 * s->cluster_size + l1_size2); in make_completely_empty()