Lines Matching refs:in_buf

53 	zstd_in_buffer in_buf;  member
423 workspace->in_buf.src = kmap_local_folio(in_folio, pg_off); in zstd_compress_folios()
424 workspace->in_buf.pos = 0; in zstd_compress_folios()
425 workspace->in_buf.size = cur_len; in zstd_compress_folios()
442 &workspace->in_buf); in zstd_compress_folios()
456 if (tot_in + workspace->in_buf.pos > 8192 && in zstd_compress_folios()
457 tot_in + workspace->in_buf.pos < in zstd_compress_folios()
491 if (workspace->in_buf.pos >= len) { in zstd_compress_folios()
492 tot_in += workspace->in_buf.pos; in zstd_compress_folios()
497 if (workspace->in_buf.pos == workspace->in_buf.size) { in zstd_compress_folios()
499 kunmap_local(workspace->in_buf.src); in zstd_compress_folios()
500 workspace->in_buf.src = NULL; in zstd_compress_folios()
509 workspace->in_buf.src = kmap_local_folio(in_folio, pg_off); in zstd_compress_folios()
510 workspace->in_buf.pos = 0; in zstd_compress_folios()
511 workspace->in_buf.size = cur_len; in zstd_compress_folios()
566 if (workspace->in_buf.src) { in zstd_compress_folios()
567 kunmap_local(workspace->in_buf.src); in zstd_compress_folios()
597 workspace->in_buf.src = kmap_local_folio(folios_in[folio_in_index], 0); in zstd_decompress_bio()
598 workspace->in_buf.pos = 0; in zstd_decompress_bio()
599 workspace->in_buf.size = min_t(size_t, srclen, PAGE_SIZE); in zstd_decompress_bio()
609 &workspace->in_buf); in zstd_decompress_bio()
629 if (workspace->in_buf.pos >= srclen) in zstd_decompress_bio()
636 if (workspace->in_buf.pos == workspace->in_buf.size) { in zstd_decompress_bio()
637 kunmap_local(workspace->in_buf.src); in zstd_decompress_bio()
640 workspace->in_buf.src = NULL; in zstd_decompress_bio()
645 workspace->in_buf.src = in zstd_decompress_bio()
647 workspace->in_buf.pos = 0; in zstd_decompress_bio()
648 workspace->in_buf.size = min_t(size_t, srclen, PAGE_SIZE); in zstd_decompress_bio()
653 if (workspace->in_buf.src) in zstd_decompress_bio()
654 kunmap_local(workspace->in_buf.src); in zstd_decompress_bio()
682 workspace->in_buf.src = data_in; in zstd_decompress()
683 workspace->in_buf.pos = 0; in zstd_decompress()
684 workspace->in_buf.size = srclen; in zstd_decompress()
694 ret = zstd_decompress_stream(stream, &workspace->out_buf, &workspace->in_buf); in zstd_decompress()