Lines Matching refs:lclusterbits

197 static int get_compacted_la_distance(unsigned int lclusterbits,  in get_compacted_la_distance()  argument
201 const unsigned int lomask = (1 << lclusterbits) - 1; in get_compacted_la_distance()
208 lo = decode_compactedbits(lclusterbits, lomask, in get_compacted_la_distance()
227 const unsigned int lclusterbits = vi->z_logical_clusterbits; in unpack_compacted_index() local
228 const unsigned int lomask = (1 << lclusterbits) - 1; in unpack_compacted_index()
236 else if (1 << amortizedshift == 2 && lclusterbits == 12) in unpack_compacted_index()
252 lo = decode_compactedbits(lclusterbits, lomask, in unpack_compacted_index()
256 m->clusterofs = 1 << lclusterbits; in unpack_compacted_index()
260 m->delta[1] = get_compacted_la_distance(lclusterbits, in unpack_compacted_index()
279 lo = decode_compactedbits(lclusterbits, lomask, in unpack_compacted_index()
295 lo = decode_compactedbits(lclusterbits, lomask, in unpack_compacted_index()
307 lo = decode_compactedbits(lclusterbits, lomask, in unpack_compacted_index()
335 const unsigned int lclusterbits = vi->z_logical_clusterbits; in compacted_load_cluster_from_disk() local
345 if (lclusterbits != 12) in compacted_load_cluster_from_disk()
405 const unsigned int lclusterbits = vi->z_logical_clusterbits; in z_erofs_extent_lookback() local
434 map->m_la = (lcn << lclusterbits) | m->clusterofs; in z_erofs_extent_lookback()
450 const unsigned int lclusterbits = vi->z_logical_clusterbits; in z_erofs_get_extent_compressedlen() local
459 map->m_plen = 1 << lclusterbits; in z_erofs_get_extent_compressedlen()
489 m->compressedblks = 1 << (lclusterbits - sbi.blkszbits); in z_erofs_get_extent_compressedlen()
517 unsigned int lclusterbits = vi->z_logical_clusterbits; in z_erofs_get_extent_decompressedlen() local
518 u64 lcn = m->lcn, headlcn = map->m_la >> lclusterbits; in z_erofs_get_extent_decompressedlen()
523 if ((lcn << lclusterbits) >= vi->i_size) { in z_erofs_get_extent_decompressedlen()
534 m->clusterofs != 1 << lclusterbits); in z_erofs_get_extent_decompressedlen()
551 map->m_llen = (lcn << lclusterbits) + m->clusterofs - map->m_la; in z_erofs_get_extent_decompressedlen()
567 unsigned int lclusterbits, endoff; in z_erofs_do_map_blocks() local
571 lclusterbits = vi->z_logical_clusterbits; in z_erofs_do_map_blocks()
573 initial_lcn = ofs >> lclusterbits; in z_erofs_do_map_blocks()
574 endoff = ofs & ((1 << lclusterbits) - 1); in z_erofs_do_map_blocks()
584 end = (m.lcn + 1ULL) << lclusterbits; in z_erofs_do_map_blocks()
590 map->m_la = (m.lcn << lclusterbits) | m.clusterofs; in z_erofs_do_map_blocks()
600 end = (m.lcn << lclusterbits) | m.clusterofs; in z_erofs_do_map_blocks()