Lines Matching refs:cluster_bits
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;
183 header.refcount_table_clusters << (s->cluster_bits - 3);
886 s->cluster_bits = get_bits_from_size(cluster_size);
887 if (s->cluster_bits < MIN_CLUSTER_BITS ||
888 s->cluster_bits > MAX_CLUSTER_BITS)
896 s->cluster_size = 1 << s->cluster_bits;
898 header.cluster_bits = cpu_to_be32(s->cluster_bits);
905 l2_bits = s->cluster_bits - 3;
906 shift = s->cluster_bits + l2_bits;
1230 return (int64_t)s->l1_vm_state_index << (s->cluster_bits + s->l2_bits);