Lines Matching refs:strm
13 struct z_stream_s *strm; in zlib_inflate_blob() local
17 strm = kmalloc(sizeof(*strm), GFP_KERNEL); in zlib_inflate_blob()
18 if (strm == NULL) in zlib_inflate_blob()
20 strm->workspace = kmalloc(zlib_inflate_workspacesize(), GFP_KERNEL); in zlib_inflate_blob()
21 if (strm->workspace == NULL) in zlib_inflate_blob()
27 strm->next_in = zbuf; in zlib_inflate_blob()
28 strm->avail_in = len; in zlib_inflate_blob()
29 strm->next_out = gunzip_buf; in zlib_inflate_blob()
30 strm->avail_out = sz; in zlib_inflate_blob()
32 rc = zlib_inflateInit2(strm, -MAX_WBITS); in zlib_inflate_blob()
34 rc = zlib_inflate(strm, Z_FINISH); in zlib_inflate_blob()
37 rc = sz - strm->avail_out; in zlib_inflate_blob()
40 zlib_inflateEnd(strm); in zlib_inflate_blob()
44 kfree(strm->workspace); in zlib_inflate_blob()
46 kfree(strm); in zlib_inflate_blob()