HomeSort by relevance Sort by last modified time
    Searched refs:cluster_bits (Results 1 - 11 of 11) sorted by null

  /external/e2fsprogs/lib/ext2fs/
qcow2.h 46 __u32 cluster_bits; member in struct:ext2_qcow2_hdr
96 __u32 cluster_bits; member in struct:ext2_qcow2_image
gen_bitmap64.c 143 bitmap->cluster_bits = 0;
150 bitmap->cluster_bits = fs->cluster_ratio_bits;
317 new_bmap->cluster_bits = src->cluster_bits;
444 arg >>= bitmap->cluster_bits;
481 arg >>= bitmap->cluster_bits;
511 arg >>= bitmap->cluster_bits;
653 block >>= bmap->cluster_bits;
654 end += (1 << bmap->cluster_bits) - 1;
655 end >>= bmap->cluster_bits;
    [all...]
qcow2.c 172 img.cluster_bits = ext2fs_be32_to_cpu(hdr->cluster_bits);
173 img.cluster_size = 1 << img.cluster_bits;
176 img.l2_size = 1 << (img.cluster_bits - 3);
184 ret = ext2fs_get_memzero(1 << img.cluster_bits, &copy_buf);
228 off_out <<= img.cluster_bits;
bmap64.h 47 int cluster_bits; member in struct:ext2fs_struct_generic_bitmap
bitmaps.c 149 bmap->cluster_bits = 0;
161 return bmap->cluster_bits;
blkmap64_ba.c 333 if (bitmap->cluster_bits)
  /external/qemu/block/
qcow2-refcount.c 125 refcount_table_index = cluster_index >> (s->cluster_bits - REFCOUNT_SHIFT);
139 ((1 << (s->cluster_bits - REFCOUNT_SHIFT)) - 1);
150 unsigned int min_clusters = (min_size >> (s->cluster_bits - 3)) + 1;
152 MAX(1, s->refcount_table_size >> (s->cluster_bits - 3));
158 return refcount_table_clusters << (s->cluster_bits - 3);
166 uint64_t block_a = offset_a >> (2 * s->cluster_bits - REFCOUNT_SHIFT);
167 uint64_t block_b = offset_b >> (2 * s->cluster_bits - REFCOUNT_SHIFT);
187 refcount_table_index = cluster_index >> (s->cluster_bits - REFCOUNT_SHIFT);
244 refcount_table_index, cluster_index << s->cluster_bits, new_block);
247 if (in_same_refcount_block(s, new_block, cluster_index << s->cluster_bits)) {
    [all...]
qcow2.h 59 uint32_t cluster_bits; member in struct:QCowHeader
83 int cluster_bits; member in struct:BDRVQcowState
124 int cluster_bits; member in struct:QCowCreateState
150 return (size + (s->cluster_size - 1)) >> s->cluster_bits;
155 int shift = s->cluster_bits + s->l2_bits;
qcow2.c 153 be32_to_cpus(&header.cluster_bits);
164 if (header.cluster_bits < MIN_CLUSTER_BITS ||
165 header.cluster_bits > MAX_CLUSTER_BITS)
172 s->cluster_bits = header.cluster_bits;
173 s->cluster_size = 1 << s->cluster_bits;
174 s->cluster_sectors = 1 << (s->cluster_bits - 9);
175 s->l2_bits = s->cluster_bits - 3; /* L2 is always one cluster */
178 s->csize_shift = (62 - (s->cluster_bits - 8));
179 s->csize_mask = (1 << (s->cluster_bits - 8)) - 1
    [all...]
qcow2-cluster.c 454 l1_bits = s->l2_bits + s->cluster_bits;
495 l2_index = (offset >> s->cluster_bits) & (s->l2_size - 1);
543 l1_index = offset >> (s->l2_bits + s->cluster_bits);
573 l2_index = (offset >> s->cluster_bits) & (s->l2_size - 1);
712 (i << s->cluster_bits)) | QCOW_OFLAG_COPIED);
830 nb_clusters = (old_offset - offset) >> s->cluster_bits;
865 m->nb_available = MIN(nb_clusters << (s->cluster_bits - 9), n_end);
  /external/e2fsprogs/misc/
e2image.c 839 img->cluster_bits);
840 table_clusters >>= (img->cluster_bits + 6 - 1);
868 int cluster_bits = get_bits_from_size(fs->blocksize); local
876 total_size = ext2fs_blocks_count(sb) << cluster_bits;
878 image->l2_size = 1 << (cluster_bits - 3);
879 image->cluster_bits = cluster_bits;
885 header->cluster_bits = ext2fs_cpu_to_be32(cluster_bits);
893 l2_bits = cluster_bits - 3
    [all...]

Completed in 287 milliseconds