Home
last modified time | relevance | path

Searched refs:L1E_SIZE (Results 1 – 5 of 5) sorted by relevance

/openbmc/qemu/block/
H A Dqcow2-snapshot.c673 l1_table_offset = qcow2_alloc_clusters(bs, s->l1_size * L1E_SIZE); in qcow2_snapshot_create()
693 s->l1_size * L1E_SIZE, false); in qcow2_snapshot_create()
698 ret = bdrv_pwrite(bs->file, sn->l1_table_offset, s->l1_size * L1E_SIZE, in qcow2_snapshot_create()
782 L1E_SIZE, QCOW_MAX_L1_SIZE, in qcow2_snapshot_goto()
817 cur_l1_bytes = s->l1_size * L1E_SIZE; in qcow2_snapshot_goto()
818 sn_l1_bytes = sn->l1_size * L1E_SIZE; in qcow2_snapshot_goto()
931 L1E_SIZE, QCOW_MAX_L1_SIZE, in qcow2_snapshot_delete()
967 qcow2_free_clusters(bs, sn.l1_table_offset, sn.l1_size * L1E_SIZE, in qcow2_snapshot_delete()
1045 L1E_SIZE, QCOW_MAX_L1_SIZE, in qcow2_snapshot_load_tmp()
1050 new_l1_bytes = sn->l1_size * L1E_SIZE; in qcow2_snapshot_load_tmp()
H A Dqcow2-cluster.c53 s->l1_table_offset + new_l1_size * L1E_SIZE, in qcow2_shrink_l1_table()
54 (s->l1_size - new_l1_size) * L1E_SIZE, 0); in qcow2_shrink_l1_table()
82 (s->l1_size - new_l1_size) * L1E_SIZE); in qcow2_shrink_l1_table()
102 if (min_size > INT_MAX / L1E_SIZE) { in qcow2_grow_l1_table()
120 if (new_l1_size > QCOW_MAX_L1_SIZE / L1E_SIZE) { in qcow2_grow_l1_table()
129 new_l1_size2 = L1E_SIZE * new_l1_size; in qcow2_grow_l1_table()
137 memcpy(new_l1_table, s->l1_table, s->l1_size * L1E_SIZE); in qcow2_grow_l1_table()
186 qcow2_free_clusters(bs, old_l1_table_offset, old_l1_size * L1E_SIZE, in qcow2_grow_l1_table()
232 int bufsize = MAX(L1E_SIZE, in qcow2_write_l1_entry()
234 int nentries = bufsize / L1E_SIZE; in qcow2_write_l1_entry()
[all …]
H A Dqcow2-refcount.c1259 l1_size2 = l1_size * L1E_SIZE; in qcow2_update_snapshot_refcount()
1869 size_t l1_size_bytes = l1_size * L1E_SIZE; in check_refcounts_l1()
2251 if (sn->l1_size > QCOW_MAX_L1_SIZE / L1E_SIZE) { in calculate_refcounts()
2943 if (overlaps_with(s->l1_table_offset, s->l1_size * L1E_SIZE)) { in qcow2_check_metadata_overlap()
2965 s->snapshots[i].l1_size * L1E_SIZE)) { in qcow2_check_metadata_overlap()
2999 uint64_t l1_sz2 = l1_sz * L1E_SIZE; in qcow2_check_metadata_overlap()
3003 ret = qcow2_validate_table(bs, l1_ofs, l1_sz, L1E_SIZE, in qcow2_check_metadata_overlap()
H A Dqcow2.c1573 header.l1_size, L1E_SIZE, in qcow2_do_open()
1598 s->l1_table = qemu_try_blockalign(bs->file->bs, s->l1_size * L1E_SIZE); in qcow2_do_open()
1604 ret = bdrv_co_pread(bs->file, s->l1_table_offset, s->l1_size * L1E_SIZE, in qcow2_do_open()
3406 nl1e = ROUND_UP(nl1e, cluster_size / L1E_SIZE); in qcow2_calc_prealloc_size()
3407 meta_size += nl1e * L1E_SIZE; in qcow2_calc_prealloc_size()
4896 l1_clusters = DIV_ROUND_UP(s->l1_size, s->cluster_size / L1E_SIZE); in make_completely_empty()
4897 l1_size2 = (uint64_t)s->l1_size * L1E_SIZE; in make_completely_empty()
5022 l1_clusters = DIV_ROUND_UP(s->l1_size, s->cluster_size / L1E_SIZE); in qcow2_make_empty()
5153 if (l2_tables * L1E_SIZE > QCOW_MAX_L1_SIZE) { in qcow2_measure()
H A Dqcow2.h103 #define L1E_SIZE (sizeof(uint64_t)) macro