Searched refs:avail_out (Results 1 - 25 of 25) sorted by relevance

/linux-4.1.27/crypto/
H A Dzlib.c150 pr_debug("avail_in %u, avail_out %u\n", req->avail_in, req->avail_out); zlib_compress_update()
154 stream->avail_out = req->avail_out; zlib_compress_update()
170 ret = req->avail_out - stream->avail_out; zlib_compress_update()
171 pr_debug("avail_in %lu, avail_out %lu (consumed %lu, produced %u)\n", zlib_compress_update()
172 stream->avail_in, stream->avail_out, zlib_compress_update()
177 req->avail_out = stream->avail_out; zlib_compress_update()
188 pr_debug("avail_in %u, avail_out %u\n", req->avail_in, req->avail_out); zlib_compress_final()
192 stream->avail_out = req->avail_out; zlib_compress_final()
200 ret = req->avail_out - stream->avail_out; zlib_compress_final()
201 pr_debug("avail_in %lu, avail_out %lu (consumed %lu, produced %u)\n", zlib_compress_final()
202 stream->avail_in, stream->avail_out, zlib_compress_final()
207 req->avail_out = stream->avail_out; zlib_compress_final()
264 pr_debug("avail_in %u, avail_out %u\n", req->avail_in, req->avail_out); zlib_decompress_update()
268 stream->avail_out = req->avail_out; zlib_decompress_update()
285 ret = req->avail_out - stream->avail_out; zlib_decompress_update()
286 pr_debug("avail_in %lu, avail_out %lu (consumed %lu, produced %u)\n", zlib_decompress_update()
287 stream->avail_in, stream->avail_out, zlib_decompress_update()
292 req->avail_out = stream->avail_out; zlib_decompress_update()
303 pr_debug("avail_in %u, avail_out %u\n", req->avail_in, req->avail_out); zlib_decompress_final()
307 stream->avail_out = req->avail_out; zlib_decompress_final()
316 if (ret == Z_OK && !stream->avail_in && stream->avail_out) { zlib_decompress_final()
333 ret = req->avail_out - stream->avail_out; zlib_decompress_final()
334 pr_debug("avail_in %lu, avail_out %lu (consumed %lu, produced %u)\n", zlib_decompress_final()
335 stream->avail_in, stream->avail_out, zlib_decompress_final()
340 req->avail_out = stream->avail_out; zlib_decompress_final()
H A Ddeflate.c143 stream->avail_out = *dlen; deflate_compress()
173 stream->avail_out = *dlen; deflate_decompress()
181 if (ret == Z_OK && !stream->avail_in && stream->avail_out) { deflate_decompress()
H A Dtestmgr.c1298 req.avail_out = ctemplate[i].outlen / 2; test_pcomp()
1322 req.avail_out += COMP_BUF_SIZE - ctemplate[i].outlen / 2; test_pcomp()
1332 if (COMP_BUF_SIZE - req.avail_out != ctemplate[i].outlen) { test_pcomp()
1335 COMP_BUF_SIZE - req.avail_out, test_pcomp()
1379 req.avail_out = dtemplate[i].outlen / 2; test_pcomp()
1403 req.avail_out += COMP_BUF_SIZE - dtemplate[i].outlen / 2; test_pcomp()
1414 if (COMP_BUF_SIZE - req.avail_out != dtemplate[i].outlen) { test_pcomp()
1417 algo, COMP_BUF_SIZE - req.avail_out, test_pcomp()
/linux-4.1.27/tools/perf/util/
H A Dlzma.c54 strm.avail_out = sizeof(buf_out); lzma_decompress_to_file()
72 if (strm.avail_out == 0 || ret == LZMA_STREAM_END) { lzma_decompress_to_file()
73 ssize_t write_size = sizeof(buf_out) - strm.avail_out; lzma_decompress_to_file()
81 strm.avail_out = sizeof(buf_out); lzma_decompress_to_file()
H A Dzlib.c48 zs.avail_out = CHUNK_SIZE; gzip_decompress_to_file()
62 len = CHUNK_SIZE - zs.avail_out; gzip_decompress_to_file()
/linux-4.1.27/fs/jffs2/
H A Dcompr_zlib.c26 avail_out = *dstlen - 12 and flush == Z_FINISH.
28 avail_in == 0 and avail_out set to the remaining 12
96 def_strm.avail_out = *dstlen - (def_strm.total_out + STREAM_END_SPACE); jffs2_zlib_compress()
98 (*sourcelen-def_strm.total_in), def_strm.avail_out); jffs2_zlib_compress()
99 jffs2_dbg(1, "calling deflate with avail_in %ld, avail_out %ld\n", jffs2_zlib_compress()
100 def_strm.avail_in, def_strm.avail_out); jffs2_zlib_compress()
102 jffs2_dbg(1, "deflate returned with avail_in %ld, avail_out %ld, total_in %ld, total_out %ld\n", jffs2_zlib_compress()
103 def_strm.avail_in, def_strm.avail_out, jffs2_zlib_compress()
112 def_strm.avail_out += STREAM_END_SPACE; jffs2_zlib_compress()
155 inf_strm.avail_out = destlen; jffs2_zlib_decompress()
/linux-4.1.27/lib/zlib_inflate/
H A Dinfutil.c30 strm->avail_out = sz; zlib_inflate_blob()
37 rc = sz - strm->avail_out; zlib_inflate_blob()
H A Dinffast.c63 strm->avail_out >= 258
64 start >= strm->avail_out
83 requires strm->avail_out >= 258 for each loop to avoid checking for
86 - @start: inflate()'s starting value for strm->avail_out
121 beg = out - (start - strm->avail_out); inflate_fast()
122 end = out + (strm->avail_out - 257); inflate_fast()
342 strm->avail_out = (unsigned)(out < end ? inflate_fast()
H A Dinflate.c109 copy = out - strm->avail_out; zlib_updatewindow()
169 left = strm->avail_out; \
180 strm->avail_out = left; \
300 Progress is defined as a change in either strm->avail_in or strm->avail_out.
717 if (state->wsize || (state->mode < CHECK && out != strm->avail_out)) zlib_inflate()
721 out -= strm->avail_out; zlib_inflate()
733 strm->avail_out != 0 && strm->avail_in == 0) zlib_inflate()
761 uInt saved_ao = z->avail_out; zlib_inflateIncomp()
767 z->avail_out = 0; zlib_inflateIncomp()
773 z->avail_out = saved_ao; zlib_inflateIncomp()
/linux-4.1.27/fs/logfs/
H A Dcompr.c31 stream.avail_out = outlen; logfs_compress()
65 stream.avail_out = outlen; logfs_uncompress()
/linux-4.1.27/fs/squashfs/
H A Dzlib_wrapper.c72 stream->avail_out = PAGE_CACHE_SIZE; zlib_uncompress()
85 if (stream->avail_out == 0) { zlib_uncompress()
88 stream->avail_out = PAGE_CACHE_SIZE; zlib_uncompress()
/linux-4.1.27/arch/xtensa/boot/lib/
H A Dzmem.c70 s.avail_out = dstlen; gunzip()
/linux-4.1.27/fs/isofs/
H A Dcompress.c55 .avail_out = 0, }; zisofs_uncompress_block()
120 if (!stream.avail_out) { zisofs_uncompress_block()
124 stream.avail_out = PAGE_CACHE_SIZE - poffset; zisofs_uncompress_block()
128 stream.avail_out = PAGE_CACHE_SIZE; zisofs_uncompress_block()
146 while (stream.avail_out && stream.avail_in) { zisofs_uncompress_block()
162 " avail_out = %ld\n", zisofs_uncompress_block()
165 stream.avail_out); zisofs_uncompress_block()
172 if (!stream.avail_out) { zisofs_uncompress_block()
/linux-4.1.27/fs/btrfs/
H A Dzlib.c120 workspace->strm.avail_out = PAGE_CACHE_SIZE; zlib_compress_pages()
144 if (workspace->strm.avail_out == 0) { zlib_compress_pages()
159 workspace->strm.avail_out = PAGE_CACHE_SIZE; zlib_compress_pages()
237 workspace->strm.avail_out = PAGE_CACHE_SIZE; zlib_decompress_biovec()
277 workspace->strm.avail_out = PAGE_CACHE_SIZE; zlib_decompress_biovec()
328 workspace->strm.avail_out = PAGE_CACHE_SIZE; zlib_decompress()
383 workspace->strm.avail_out = PAGE_CACHE_SIZE; zlib_decompress()
/linux-4.1.27/drivers/net/ppp/
H A Dppp_deflate.c220 state->strm.avail_out = oavail = osize - olen; z_compress()
236 if (state->strm.avail_out == 0) { z_compress()
239 state->strm.avail_out = oavail = 1000000; z_compress()
244 olen += oavail - state->strm.avail_out; z_compress()
448 * Set up to call inflate. We set avail_out to 1 initially so we can z_decompress()
455 state->strm.avail_out = 1; z_decompress()
470 if (state->strm.avail_out != 0) z_decompress()
473 state->strm.avail_out = osize - PPP_HDRLEN; z_decompress()
478 ++state->strm.avail_out; z_decompress()
488 state->strm.avail_out = 1; z_decompress()
505 olen = osize + overflow - state->strm.avail_out; z_decompress()
/linux-4.1.27/fs/cramfs/
H A Duncompress.c38 stream.avail_out = dstlen; cramfs_uncompress_block()
/linux-4.1.27/include/linux/
H A Dzlib.h90 uLong avail_out; /* remaining free space at next_out */ member in struct:z_stream_s
107 dropped to zero. It must update next_out and avail_out when avail_out
232 - Provide more output starting at next_out and update next_out and avail_out
240 more output, and updating avail_in or avail_out accordingly; avail_out
243 (avail_out == 0), or after each call of deflate(). If deflate returns Z_OK
244 and with zero avail_out, it must be called again after making room in the
260 If deflate returns with avail_out == 0, this function must be called again
262 avail_out), until the flush is complete (deflate returns with non-zero
263 avail_out).
268 called again with Z_FINISH and more output space (updated avail_out) but no
274 is to be done in a single step. In this case, avail_out must be at least
291 (for example avail_in or avail_out was zero).
333 avail_in may be modified, but next_out and avail_out are unchanged.)
352 - Provide more output starting at next_out and update next_out and avail_out
361 example when the output buffer is full (avail_out == 0), or after each
362 call of inflate(). If inflate returns Z_OK and with zero avail_out, it
391 output is flushed; avail_out must be large enough to hold all the
552 and avail_out are unchanged.)
/linux-4.1.27/lib/zlib_deflate/
H A Ddeflate.c310 if (len > strm->avail_out) len = strm->avail_out; flush_pending()
319 strm->avail_out -= len; flush_pending()
345 if (strm->avail_out == 0) return Z_BUF_ERROR; zlib_deflate()
376 if (strm->avail_out == 0) { zlib_deflate()
377 /* Since avail_out is 0, deflate will be called again with zlib_deflate()
413 if (strm->avail_out == 0) { zlib_deflate()
417 /* If flush != Z_NO_FLUSH && avail_out == 0, the next call zlib_deflate()
442 if (strm->avail_out == 0) { zlib_deflate()
448 Assert(strm->avail_out > 0, "bug2"); zlib_deflate()
457 /* If avail_out is zero, the application will call deflate again zlib_deflate()
841 if (s->strm->avail_out == 0) return (eof) ? finish_started : need_more; \
1103 if (s->strm->avail_out == 0) return need_more; deflate_slow()
/linux-4.1.27/lib/
H A Ddecompress_inflate.c121 strm->avail_out = out_len; __gunzip()
153 strm->avail_out = out_len; __gunzip()
/linux-4.1.27/include/crypto/
H A Dcompress.h30 unsigned int avail_out; /* bytes available at next_out */ member in struct:comp_request
/linux-4.1.27/fs/pstore/
H A Dplatform.c148 stream.avail_out = outlen; pstore_compress()
181 stream.avail_out = outlen; pstore_decompress()
/linux-4.1.27/arch/powerpc/boot/
H A Dgunzip_util.c111 state->s.avail_out = dstlen; gunzip_partial()
/linux-4.1.27/arch/powerpc/kernel/
H A Dnvram_64.c347 stream.avail_out = outlen; nvram_compress()
/linux-4.1.27/fs/
H A Dbinfmt_flat.c272 strm.avail_out = len; decompress_exec()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_main.c6573 bp->strm->avail_out = FW_BUF_SIZE; bnx2x_gunzip()
6584 bp->gunzip_outlen = (FW_BUF_SIZE - bp->strm->avail_out); bnx2x_gunzip()

Completed in 466 milliseconds