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

  /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;
qcow.c 48 uint8_t cluster_bits; member in struct:QCowHeader
58 int cluster_bits; member in struct:BDRVQcowState
112 if (header.size <= 1 || header.cluster_bits < 9)
119 s->cluster_bits = header.cluster_bits;
120 s->cluster_size = 1 << s->cluster_bits;
121 s->cluster_sectors = 1 << (s->cluster_bits - 9);
125 s->cluster_offset_mask = (1LL << (63 - s->cluster_bits)) - 1;
128 shift = s->cluster_bits + s->l2_bits;
263 l1_index = offset >> (s->l2_bits + s->cluster_bits);
    [all...]
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/kernel-headers/original/linux/
msdos_fs.h 233 unsigned short cluster_bits; /* log2(cluster_size) */ member in struct:msdos_sb_info

Completed in 176 milliseconds