Lines Matching refs:cur_in

223 	u64 cur_in = start;  in lzo_compress_folios()  local
238 while (cur_in < start + len) { in lzo_compress_folios()
241 u32 sector_off = (cur_in - start) & sectorsize_mask; in lzo_compress_folios()
247 ret = btrfs_compress_filemap_get_folio(mapping, cur_in, &folio_in); in lzo_compress_folios()
253 in_len = min_t(u32, start + len - cur_in, sectorsize - sector_off); in lzo_compress_folios()
257 offset_in_page(cur_in), in_len, in lzo_compress_folios()
273 cur_in += in_len; in lzo_compress_folios()
279 if (cur_in - start > sectorsize * 2 && cur_in - start < cur_out) { in lzo_compress_folios()
285 if (PAGE_ALIGNED(cur_in)) { in lzo_compress_folios()
298 *total_in = cur_in - start; in lzo_compress_folios()
312 char *dest, u32 len, u32 *cur_in) in copy_compressed_segment() argument
314 u32 orig_in = *cur_in; in copy_compressed_segment()
316 while (*cur_in < orig_in + len) { in copy_compressed_segment()
318 u32 copy_len = min_t(u32, PAGE_SIZE - offset_in_page(*cur_in), in copy_compressed_segment()
319 orig_in + len - *cur_in); in copy_compressed_segment()
322 cur_folio = cb->compressed_folios[*cur_in / PAGE_SIZE]; in copy_compressed_segment()
324 memcpy_from_folio(dest + *cur_in - orig_in, cur_folio, in copy_compressed_segment()
325 offset_in_folio(cur_folio, *cur_in), copy_len); in copy_compressed_segment()
327 *cur_in += copy_len; in copy_compressed_segment()
341 u32 cur_in = 0; in lzo_decompress_bio() local
348 cur_in += LZO_LEN; in lzo_decompress_bio()
369 while (cur_in < len_in) { in lzo_decompress_bio()
380 ASSERT(cur_in / sectorsize == in lzo_decompress_bio()
381 (cur_in + LZO_LEN - 1) / sectorsize); in lzo_decompress_bio()
382 cur_folio = cb->compressed_folios[cur_in / PAGE_SIZE]; in lzo_decompress_bio()
385 seg_len = read_compress_length(kaddr + offset_in_page(cur_in)); in lzo_decompress_bio()
387 cur_in += LZO_LEN; in lzo_decompress_bio()
404 copy_compressed_segment(cb, workspace->cbuf, seg_len, &cur_in); in lzo_decompress_bio()
429 sector_bytes_left = sectorsize - (cur_in % sectorsize); in lzo_decompress_bio()
434 cur_in += sector_bytes_left; in lzo_decompress_bio()