Lines Matching refs:l1_size
1344 header.l1_size = be32_to_cpu(header.l1_size); in qcow2_do_open()
1573 header.l1_size, L1E_SIZE, in qcow2_do_open()
1578 s->l1_size = header.l1_size; in qcow2_do_open()
1591 if (s->l1_size < s->l1_vm_state_index) { in qcow2_do_open()
1597 if (s->l1_size > 0) { 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()
1610 for(i = 0;i < s->l1_size; i++) { in qcow2_do_open()
2961 .l1_size = cpu_to_be32(s->l1_size), in qcow2_update_header()
3722 .l1_size = cpu_to_be32(0), in qcow2_co_create()
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()
5344 preallocated = s->l1_size > 0 && s->l1_table[0] != 0; in qcow2_has_zero_init()