Home | History | Annotate | Download | only in libkmod

Lines Matching defs:strm

88 static int xz_uncompress(lzma_stream *strm, struct kmod_file *file)
96 strm->avail_in = 0;
97 strm->next_out = out_buf;
98 strm->avail_out = sizeof(out_buf);
101 if (strm->avail_in == 0) {
107 strm->next_in = in_buf;
108 strm->avail_in = rdret;
112 ret = lzma_code(strm, action);
113 if (strm->avail_out == 0 || ret != LZMA_OK) {
114 size_t write_size = BUFSIZ - strm->avail_out;
123 strm->next_out = out_buf;
124 strm->avail_out = BUFSIZ;
145 lzma_stream strm = LZMA_STREAM_INIT;
149 lzret = lzma_stream_decoder(&strm, UINT64_MAX, LZMA_CONCATENATED);
157 ret = xz_uncompress(&strm, file);
158 lzma_end(&strm);