Lines Matching refs:strm
6557 bp->strm = kmalloc(sizeof(*bp->strm), GFP_KERNEL); in bnx2x_gunzip_init()
6558 if (bp->strm == NULL) in bnx2x_gunzip_init()
6561 bp->strm->workspace = vmalloc(zlib_inflate_workspacesize()); in bnx2x_gunzip_init()
6562 if (bp->strm->workspace == NULL) in bnx2x_gunzip_init()
6568 kfree(bp->strm); in bnx2x_gunzip_init()
6569 bp->strm = NULL; in bnx2x_gunzip_init()
6583 if (bp->strm) { in bnx2x_gunzip_end()
6584 vfree(bp->strm->workspace); in bnx2x_gunzip_end()
6585 kfree(bp->strm); in bnx2x_gunzip_end()
6586 bp->strm = NULL; in bnx2x_gunzip_end()
6613 bp->strm->next_in = (typeof(bp->strm->next_in))zbuf + n; in bnx2x_gunzip()
6614 bp->strm->avail_in = len - n; in bnx2x_gunzip()
6615 bp->strm->next_out = bp->gunzip_buf; in bnx2x_gunzip()
6616 bp->strm->avail_out = FW_BUF_SIZE; in bnx2x_gunzip()
6618 rc = zlib_inflateInit2(bp->strm, -MAX_WBITS); in bnx2x_gunzip()
6622 rc = zlib_inflate(bp->strm, Z_FINISH); in bnx2x_gunzip()
6625 bp->strm->msg); in bnx2x_gunzip()
6627 bp->gunzip_outlen = (FW_BUF_SIZE - bp->strm->avail_out); in bnx2x_gunzip()
6634 zlib_inflateEnd(bp->strm); in bnx2x_gunzip()