Lines Matching refs:strm
196 z_stream strm; in decompress_exec() local
201 memset(&strm, 0, sizeof(strm)); in decompress_exec()
202 strm.workspace = kmalloc(zlib_inflate_workspacesize(), GFP_KERNEL); in decompress_exec()
203 if (!strm.workspace) in decompress_exec()
215 strm.next_in = buf; in decompress_exec()
216 strm.avail_in = ret; in decompress_exec()
217 strm.total_in = 0; in decompress_exec()
270 strm.next_in += ret; in decompress_exec()
271 strm.avail_in -= ret; in decompress_exec()
273 strm.next_out = dst; in decompress_exec()
274 strm.avail_out = len; in decompress_exec()
275 strm.total_out = 0; in decompress_exec()
277 if (zlib_inflateInit2(&strm, -MAX_WBITS) != Z_OK) { in decompress_exec()
282 while ((ret = zlib_inflate(&strm, Z_NO_FLUSH)) == Z_OK) { in decompress_exec()
288 strm.next_in = buf; in decompress_exec()
289 strm.avail_in = ret; in decompress_exec()
290 strm.total_in = 0; in decompress_exec()
295 ret, strm.msg); in decompress_exec()
301 zlib_inflateEnd(&strm); in decompress_exec()
305 kfree(strm.workspace); in decompress_exec()