Home
last modified time | relevance | path

Searched refs:nb_csectors (Results 1 – 2 of 2) sorted by relevance

/external/qemu/block/
Dqcow2-cluster.c603 int nb_csectors; in qcow2_alloc_compressed_cluster_offset() local
622 nb_csectors = ((cluster_offset + compressed_size - 1) >> 9) - in qcow2_alloc_compressed_cluster_offset()
626 ((uint64_t)nb_csectors << s->csize_shift); in qcow2_alloc_compressed_cluster_offset()
903 int ret, csize, nb_csectors, sector_offset; in qcow2_decompress_cluster() local
908 nb_csectors = ((cluster_offset >> s->csize_shift) & s->csize_mask) + 1; in qcow2_decompress_cluster()
910 csize = nb_csectors * 512 - sector_offset; in qcow2_decompress_cluster()
912 ret = bdrv_read(bs->file, coffset >> 9, s->cluster_data, nb_csectors); in qcow2_decompress_cluster()
Dqcow2-refcount.c705 int nb_csectors; in qcow2_free_any_clusters() local
706 nb_csectors = ((cluster_offset >> s->csize_shift) & in qcow2_free_any_clusters()
710 nb_csectors * 512); in qcow2_free_any_clusters()
751 int l2_size, i, j, l1_modified, l2_modified, nb_csectors, refcount; in qcow2_update_snapshot_refcount() local
794 nb_csectors = ((offset >> s->csize_shift) & in qcow2_update_snapshot_refcount()
800 nb_csectors * 512, addend); in qcow2_update_snapshot_refcount()
940 int i, l2_size, nb_csectors, refcount; in check_refcounts_l2() local
964 nb_csectors = ((offset >> s->csize_shift) & in check_refcounts_l2()
968 offset & ~511, nb_csectors * 512); in check_refcounts_l2()