Lines Matching refs:out_buf

52 	zstd_out_buffer out_buf;  member
414 workspace->out_buf.dst = kmap(out_page); in zstd_compress_pages()
415 workspace->out_buf.pos = 0; in zstd_compress_pages()
416 workspace->out_buf.size = min_t(size_t, max_out, PAGE_SIZE); in zstd_compress_pages()
421 ret2 = zstd_compress_stream(stream, &workspace->out_buf, in zstd_compress_pages()
433 tot_out + workspace->out_buf.pos) { in zstd_compress_pages()
439 if (workspace->out_buf.pos >= max_out) { in zstd_compress_pages()
440 tot_out += workspace->out_buf.pos; in zstd_compress_pages()
446 if (workspace->out_buf.pos == workspace->out_buf.size) { in zstd_compress_pages()
461 workspace->out_buf.dst = kmap(out_page); in zstd_compress_pages()
462 workspace->out_buf.pos = 0; in zstd_compress_pages()
463 workspace->out_buf.size = min_t(size_t, max_out, in zstd_compress_pages()
490 ret2 = zstd_end_stream(stream, &workspace->out_buf); in zstd_compress_pages()
498 tot_out += workspace->out_buf.pos; in zstd_compress_pages()
501 if (workspace->out_buf.pos >= max_out) { in zstd_compress_pages()
502 tot_out += workspace->out_buf.pos; in zstd_compress_pages()
521 workspace->out_buf.dst = kmap(out_page); in zstd_compress_pages()
522 workspace->out_buf.pos = 0; in zstd_compress_pages()
523 workspace->out_buf.size = min_t(size_t, max_out, PAGE_SIZE); in zstd_compress_pages()
570 workspace->out_buf.dst = workspace->buf; in zstd_decompress_bio()
571 workspace->out_buf.pos = 0; in zstd_decompress_bio()
572 workspace->out_buf.size = PAGE_SIZE; in zstd_decompress_bio()
577 ret2 = zstd_decompress_stream(stream, &workspace->out_buf, in zstd_decompress_bio()
586 total_out += workspace->out_buf.pos; in zstd_decompress_bio()
587 workspace->out_buf.pos = 0; in zstd_decompress_bio()
589 ret = btrfs_decompress_buf2page(workspace->out_buf.dst, in zstd_decompress_bio()
647 workspace->out_buf.dst = workspace->buf; in zstd_decompress()
648 workspace->out_buf.pos = 0; in zstd_decompress()
649 workspace->out_buf.size = PAGE_SIZE; in zstd_decompress()
664 ret2 = zstd_decompress_stream(stream, &workspace->out_buf, in zstd_decompress()
674 total_out += workspace->out_buf.pos; in zstd_decompress()
675 workspace->out_buf.pos = 0; in zstd_decompress()
686 workspace->out_buf.size - buf_offset); in zstd_decompress()
689 workspace->out_buf.dst + buf_offset, bytes); in zstd_decompress()