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