Lines Matching refs:out_buf

54 	zstd_out_buffer out_buf;  member
436 workspace->out_buf.dst = folio_address(out_folio); in zstd_compress_folios()
437 workspace->out_buf.pos = 0; in zstd_compress_folios()
438 workspace->out_buf.size = min_t(size_t, max_out, PAGE_SIZE); in zstd_compress_folios()
443 ret2 = zstd_compress_stream(stream, &workspace->out_buf, in zstd_compress_folios()
460 tot_out + workspace->out_buf.pos) { in zstd_compress_folios()
466 if (workspace->out_buf.pos >= max_out) { in zstd_compress_folios()
467 tot_out += workspace->out_buf.pos; in zstd_compress_folios()
473 if (workspace->out_buf.pos == workspace->out_buf.size) { in zstd_compress_folios()
486 workspace->out_buf.dst = folio_address(out_folio); in zstd_compress_folios()
487 workspace->out_buf.pos = 0; in zstd_compress_folios()
488 workspace->out_buf.size = min_t(size_t, max_out, in zstd_compress_folios()
519 ret2 = zstd_end_stream(stream, &workspace->out_buf); in zstd_compress_folios()
532 tot_out += workspace->out_buf.pos; in zstd_compress_folios()
535 if (workspace->out_buf.pos >= max_out) { in zstd_compress_folios()
536 tot_out += workspace->out_buf.pos; in zstd_compress_folios()
553 workspace->out_buf.dst = folio_address(out_folio); in zstd_compress_folios()
554 workspace->out_buf.pos = 0; in zstd_compress_folios()
555 workspace->out_buf.size = min_t(size_t, max_out, PAGE_SIZE); in zstd_compress_folios()
603 workspace->out_buf.dst = workspace->buf; in zstd_decompress_bio()
604 workspace->out_buf.pos = 0; in zstd_decompress_bio()
605 workspace->out_buf.size = PAGE_SIZE; in zstd_decompress_bio()
610 ret2 = zstd_decompress_stream(stream, &workspace->out_buf, in zstd_decompress_bio()
623 total_out += workspace->out_buf.pos; in zstd_decompress_bio()
624 workspace->out_buf.pos = 0; in zstd_decompress_bio()
626 ret = btrfs_decompress_buf2page(workspace->out_buf.dst, in zstd_decompress_bio()
688 workspace->out_buf.dst = workspace->buf; in zstd_decompress()
689 workspace->out_buf.pos = 0; in zstd_decompress()
690 workspace->out_buf.size = sectorsize; in zstd_decompress()
696 ret = zstd_decompress_stream(stream, &workspace->out_buf, &workspace->in_buf); in zstd_decompress()
706 to_copy = workspace->out_buf.pos; in zstd_decompress()
707 memcpy_to_folio(dest_folio, dest_pgoff, workspace->out_buf.dst, to_copy); in zstd_decompress()