Lines Matching refs:strm
6559 bp->strm = kmalloc(sizeof(*bp->strm), GFP_KERNEL); in bnx2x_gunzip_init()
6560 if (bp->strm == NULL) in bnx2x_gunzip_init()
6563 bp->strm->workspace = vmalloc(zlib_inflate_workspacesize()); in bnx2x_gunzip_init()
6564 if (bp->strm->workspace == NULL) in bnx2x_gunzip_init()
6570 kfree(bp->strm); in bnx2x_gunzip_init()
6571 bp->strm = NULL; in bnx2x_gunzip_init()
6585 if (bp->strm) { in bnx2x_gunzip_end()
6586 vfree(bp->strm->workspace); in bnx2x_gunzip_end()
6587 kfree(bp->strm); in bnx2x_gunzip_end()
6588 bp->strm = NULL; in bnx2x_gunzip_end()
6615 bp->strm->next_in = (typeof(bp->strm->next_in))zbuf + n; in bnx2x_gunzip()
6616 bp->strm->avail_in = len - n; in bnx2x_gunzip()
6617 bp->strm->next_out = bp->gunzip_buf; in bnx2x_gunzip()
6618 bp->strm->avail_out = FW_BUF_SIZE; in bnx2x_gunzip()
6620 rc = zlib_inflateInit2(bp->strm, -MAX_WBITS); in bnx2x_gunzip()
6624 rc = zlib_inflate(bp->strm, Z_FINISH); in bnx2x_gunzip()
6627 bp->strm->msg); in bnx2x_gunzip()
6629 bp->gunzip_outlen = (FW_BUF_SIZE - bp->strm->avail_out); in bnx2x_gunzip()
6636 zlib_inflateEnd(bp->strm); in bnx2x_gunzip()