Lines Matching full:addend

40                            int64_t offset, int64_t length, uint64_t addend,
808 /* @addend is the absolute value of the addend; if @decrease is set, @addend
812 uint64_t addend, bool decrease, enum qcow2_discard_type type) in update_refcount() argument
822 " addend=%s%" PRIu64 "\n", offset, length, decrease ? "-" : "", in update_refcount()
823 addend); in update_refcount()
871 if (decrease ? (refcount - addend > refcount) in update_refcount()
872 : (refcount + addend < refcount || in update_refcount()
873 refcount + addend > s->refcount_max)) in update_refcount()
879 refcount -= addend; in update_refcount()
881 refcount += addend; in update_refcount()
927 dummy = update_refcount(bs, offset, cluster_offset - offset, addend, in update_refcount()
938 * @addend is the absolute value of the addend; if @decrease is set, @addend
945 uint64_t addend, bool decrease, in qcow2_update_cluster_refcount() argument
951 ret = update_refcount(bs, cluster_index << s->cluster_bits, 1, addend, in qcow2_update_cluster_refcount()
1245 int64_t l1_table_offset, int l1_size, int addend) in qcow2_update_snapshot_refcount() argument
1255 assert(addend >= -1 && addend <= 1); in qcow2_update_snapshot_refcount()
1323 if (addend != 0) { in qcow2_update_snapshot_refcount()
1331 abs(addend), addend < 0, in qcow2_update_snapshot_refcount()
1358 if (addend != 0) { in qcow2_update_snapshot_refcount()
1360 bs, cluster_index, abs(addend), addend < 0, in qcow2_update_snapshot_refcount()
1386 if (addend > 0) { in qcow2_update_snapshot_refcount()
1399 if (addend != 0) { in qcow2_update_snapshot_refcount()
1402 abs(addend), addend < 0, in qcow2_update_snapshot_refcount()
1431 /* Update L1 only if it isn't deleted anyway (addend = -1) */ in qcow2_update_snapshot_refcount()
1432 if (ret == 0 && addend >= 0 && l1_modified) { in qcow2_update_snapshot_refcount()