Lines Matching refs:strm
4859 bp->strm = kmalloc(sizeof(*bp->strm), GFP_KERNEL); in bnx2x_gunzip_init()
4860 if (bp->strm == NULL) in bnx2x_gunzip_init()
4863 bp->strm->workspace = kmalloc(zlib_inflate_workspacesize(), in bnx2x_gunzip_init()
4865 if (bp->strm->workspace == NULL) in bnx2x_gunzip_init()
4871 kfree(bp->strm); in bnx2x_gunzip_init()
4872 bp->strm = NULL; in bnx2x_gunzip_init()
4887 kfree(bp->strm->workspace); in bnx2x_gunzip_end()
4889 kfree(bp->strm); in bnx2x_gunzip_end()
4890 bp->strm = NULL; in bnx2x_gunzip_end()
4914 bp->strm->next_in = zbuf + n; in bnx2x_gunzip()
4915 bp->strm->avail_in = len - n; in bnx2x_gunzip()
4916 bp->strm->next_out = bp->gunzip_buf; in bnx2x_gunzip()
4917 bp->strm->avail_out = FW_BUF_SIZE; in bnx2x_gunzip()
4919 rc = zlib_inflateInit2(bp->strm, -MAX_WBITS); in bnx2x_gunzip()
4923 rc = zlib_inflate(bp->strm, Z_FINISH); in bnx2x_gunzip()
4926 bp->dev->name, bp->strm->msg); in bnx2x_gunzip()
4928 bp->gunzip_outlen = (FW_BUF_SIZE - bp->strm->avail_out); in bnx2x_gunzip()
4935 zlib_inflateEnd(bp->strm); in bnx2x_gunzip()