Lines Matching refs:stream
48 bz_stream stream; in xc_try_bzip2_decode() local
56 stream.bzalloc = NULL; in xc_try_bzip2_decode()
57 stream.bzfree = NULL; in xc_try_bzip2_decode()
58 stream.opaque = NULL; in xc_try_bzip2_decode()
66 ret = BZ2_bzDecompressInit(&stream, 0, 0); in xc_try_bzip2_decode()
96 stream.next_in = dom->kernel_blob; in xc_try_bzip2_decode()
97 stream.avail_in = dom->kernel_size; in xc_try_bzip2_decode()
99 stream.next_out = out_buf; in xc_try_bzip2_decode()
100 stream.avail_out = dom->kernel_size; in xc_try_bzip2_decode()
104 ret = BZ2_bzDecompress(&stream); in xc_try_bzip2_decode()
118 if ( stream.avail_out == 0 ) in xc_try_bzip2_decode()
144 stream.next_out = out_buf + outsize; in xc_try_bzip2_decode()
145 stream.avail_out = (outsize * 2) - outsize; in xc_try_bzip2_decode()
148 else if ( stream.avail_in == 0 ) in xc_try_bzip2_decode()
163 total = (((uint64_t)stream.total_out_hi32) << 32) | stream.total_out_lo32; in xc_try_bzip2_decode()
179 BZ2_bzDecompressEnd(&stream); in xc_try_bzip2_decode()
203 lzma_stream *stream, const char *what) in _xc_try_lzma_decode() argument
231 stream->next_in = dom->kernel_blob; in _xc_try_lzma_decode()
232 stream->avail_in = dom->kernel_size; in _xc_try_lzma_decode()
234 stream->next_out = out_buf; in _xc_try_lzma_decode()
235 stream->avail_out = dom->kernel_size; in _xc_try_lzma_decode()
239 ret = lzma_code(stream, action); in _xc_try_lzma_decode()
285 if ( stream->avail_out == 0 ) in _xc_try_lzma_decode()
311 stream->next_out = out_buf + outsize; in _xc_try_lzma_decode()
312 stream->avail_out = (outsize * 2) - outsize; in _xc_try_lzma_decode()
317 if ( xc_dom_register_external(dom, out_buf, stream->total_out) ) in _xc_try_lzma_decode()
325 __FUNCTION__, what, *size, (size_t)stream->total_out); in _xc_try_lzma_decode()
328 *size = stream->total_out; in _xc_try_lzma_decode()
331 lzma_end(stream); in _xc_try_lzma_decode()
342 lzma_stream stream = LZMA_STREAM_INIT; in xc_try_xz_decode() local
344 if ( lzma_stream_decoder(&stream, LZMA_BLOCK_SIZE, 0) != LZMA_OK ) in xc_try_xz_decode()
350 return _xc_try_lzma_decode(dom, blob, size, &stream, "XZ"); in xc_try_xz_decode()
356 lzma_stream stream = LZMA_STREAM_INIT; in xc_try_lzma_decode() local
358 if ( lzma_alone_decoder(&stream, LZMA_BLOCK_SIZE) != LZMA_OK ) in xc_try_lzma_decode()
364 return _xc_try_lzma_decode(dom, blob, size, &stream, "LZMA"); in xc_try_lzma_decode()