Lines Matching refs:refcount_bits
1493 s->refcount_bits = 1 << s->refcount_order; in qcow2_do_open()
1494 s->refcount_max = UINT64_C(1) << (s->refcount_bits - 1); in qcow2_do_open()
3482 uint64_t refcount_bits; in qcow2_opt_get_refcount_bits_del() local
3484 refcount_bits = qemu_opt_get_number_del(opts, BLOCK_OPT_REFCOUNT_BITS, 16); in qcow2_opt_get_refcount_bits_del()
3485 if (refcount_bits > 64 || !is_power_of_2(refcount_bits)) { in qcow2_opt_get_refcount_bits_del()
3491 if (version < 3 && refcount_bits != 16) { in qcow2_opt_get_refcount_bits_del()
3498 return refcount_bits; in qcow2_opt_get_refcount_bits_del()
3615 qcow2_opts->refcount_bits = 16; in qcow2_co_create()
3617 if (qcow2_opts->refcount_bits > 64 || in qcow2_co_create()
3618 !is_power_of_2(qcow2_opts->refcount_bits)) in qcow2_co_create()
3625 if (version < 3 && qcow2_opts->refcount_bits != 16) { in qcow2_co_create()
3632 refcount_order = ctz32(qcow2_opts->refcount_bits); in qcow2_co_create()
5082 uint64_t refcount_bits; in qcow2_measure() local
5108 refcount_bits = qcow2_opt_get_refcount_bits_del(opts, version, &local_err); in qcow2_measure()
5221 ctz32(refcount_bits), extended_l2); in qcow2_measure()
5276 .refcount_bits = s->refcount_bits, in qcow2_get_specific_info()
5295 .refcount_bits = s->refcount_bits, in qcow2_get_specific_info()
5701 int refcount_bits = s->refcount_bits; in qcow2_amend_options() local
5748 refcount_bits = qemu_opt_get_number(opts, BLOCK_OPT_REFCOUNT_BITS, in qcow2_amend_options()
5749 refcount_bits); in qcow2_amend_options()
5751 if (refcount_bits <= 0 || refcount_bits > 64 || in qcow2_amend_options()
5752 !is_power_of_2(refcount_bits)) in qcow2_amend_options()
5786 + (s->refcount_bits != refcount_bits) + in qcow2_amend_options()
5827 if (s->refcount_bits != refcount_bits) { in qcow2_amend_options()
5828 int refcount_order = ctz32(refcount_bits); in qcow2_amend_options()
5830 if (new_version < 3 && refcount_bits != 16) { in qcow2_amend_options()