Lines Matching refs:lclusterbits

95 static int get_compacted_la_distance(unsigned int lclusterbits,  in get_compacted_la_distance()  argument
99 const unsigned int lomask = (1 << lclusterbits) - 1; in get_compacted_la_distance()
106 lo = decode_compactedbits(lclusterbits, lomask, in get_compacted_la_distance()
125 const unsigned int lclusterbits = vi->z_logical_clusterbits; in unpack_compacted_index() local
126 const unsigned int lomask = (1 << lclusterbits) - 1; in unpack_compacted_index()
132 if (1 << amortizedshift == 4 && lclusterbits <= 14) in unpack_compacted_index()
134 else if (1 << amortizedshift == 2 && lclusterbits == 12) in unpack_compacted_index()
150 lo = decode_compactedbits(lclusterbits, lomask, in unpack_compacted_index()
154 m->clusterofs = 1 << lclusterbits; in unpack_compacted_index()
158 m->delta[1] = get_compacted_la_distance(lclusterbits, in unpack_compacted_index()
177 lo = decode_compactedbits(lclusterbits, lomask, in unpack_compacted_index()
193 lo = decode_compactedbits(lclusterbits, lomask, in unpack_compacted_index()
205 lo = decode_compactedbits(lclusterbits, lomask, in unpack_compacted_index()
298 const unsigned int lclusterbits = vi->z_logical_clusterbits; in z_erofs_extent_lookback() local
318 m->map->m_la = (lcn << lclusterbits) | m->clusterofs; in z_erofs_extent_lookback()
340 const unsigned int lclusterbits = vi->z_logical_clusterbits; in z_erofs_get_extent_compressedlen() local
354 map->m_plen = 1ULL << lclusterbits; in z_erofs_get_extent_compressedlen()
384 m->compressedblks = 1 << (lclusterbits - sb->s_blocksize_bits); in z_erofs_get_extent_compressedlen()
412 unsigned int lclusterbits = vi->z_logical_clusterbits; in z_erofs_get_extent_decompressedlen() local
413 u64 lcn = m->lcn, headlcn = map->m_la >> lclusterbits; in z_erofs_get_extent_decompressedlen()
418 if ((lcn << lclusterbits) >= inode->i_size) { in z_erofs_get_extent_decompressedlen()
429 m->clusterofs != 1 << lclusterbits); in z_erofs_get_extent_decompressedlen()
446 map->m_llen = (lcn << lclusterbits) + m->clusterofs - map->m_la; in z_erofs_get_extent_decompressedlen()
461 unsigned int lclusterbits, endoff; in z_erofs_do_map_blocks() local
465 lclusterbits = vi->z_logical_clusterbits; in z_erofs_do_map_blocks()
467 initial_lcn = ofs >> lclusterbits; in z_erofs_do_map_blocks()
468 endoff = ofs & ((1 << lclusterbits) - 1); in z_erofs_do_map_blocks()
478 end = (m.lcn + 1ULL) << lclusterbits; in z_erofs_do_map_blocks()
486 map->m_la = (m.lcn << lclusterbits) | m.clusterofs; in z_erofs_do_map_blocks()
504 end = (m.lcn << lclusterbits) | m.clusterofs; in z_erofs_do_map_blocks()