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()
3478 uint64_t refcount_bits; in qcow2_opt_get_refcount_bits_del() local
3480 refcount_bits = qemu_opt_get_number_del(opts, BLOCK_OPT_REFCOUNT_BITS, 16); in qcow2_opt_get_refcount_bits_del()
3481 if (refcount_bits > 64 || !is_power_of_2(refcount_bits)) { in qcow2_opt_get_refcount_bits_del()
3487 if (version < 3 && refcount_bits != 16) { in qcow2_opt_get_refcount_bits_del()
3494 return refcount_bits; in qcow2_opt_get_refcount_bits_del()
3611 qcow2_opts->refcount_bits = 16; in qcow2_co_create()
3613 if (qcow2_opts->refcount_bits > 64 || in qcow2_co_create()
3614 !is_power_of_2(qcow2_opts->refcount_bits)) in qcow2_co_create()
3621 if (version < 3 && qcow2_opts->refcount_bits != 16) { in qcow2_co_create()
3628 refcount_order = ctz32(qcow2_opts->refcount_bits); in qcow2_co_create()
5078 uint64_t refcount_bits; in qcow2_measure() local
5104 refcount_bits = qcow2_opt_get_refcount_bits_del(opts, version, &local_err); in qcow2_measure()
5217 ctz32(refcount_bits), extended_l2); in qcow2_measure()
5272 .refcount_bits = s->refcount_bits, in qcow2_get_specific_info()
5291 .refcount_bits = s->refcount_bits, in qcow2_get_specific_info()
5697 int refcount_bits = s->refcount_bits; in qcow2_amend_options() local
5744 refcount_bits = qemu_opt_get_number(opts, BLOCK_OPT_REFCOUNT_BITS, in qcow2_amend_options()
5745 refcount_bits); in qcow2_amend_options()
5747 if (refcount_bits <= 0 || refcount_bits > 64 || in qcow2_amend_options()
5748 !is_power_of_2(refcount_bits)) in qcow2_amend_options()
5782 + (s->refcount_bits != refcount_bits) + in qcow2_amend_options()
5823 if (s->refcount_bits != refcount_bits) { in qcow2_amend_options()
5824 int refcount_order = ctz32(refcount_bits); in qcow2_amend_options()
5826 if (new_version < 3 && refcount_bits != 16) { in qcow2_amend_options()