Lines Matching refs:strm
6514 bp->strm = kmalloc(sizeof(*bp->strm), GFP_KERNEL); in bnx2x_gunzip_init()
6515 if (bp->strm == NULL) in bnx2x_gunzip_init()
6518 bp->strm->workspace = vmalloc(zlib_inflate_workspacesize()); in bnx2x_gunzip_init()
6519 if (bp->strm->workspace == NULL) in bnx2x_gunzip_init()
6525 kfree(bp->strm); in bnx2x_gunzip_init()
6526 bp->strm = NULL; in bnx2x_gunzip_init()
6540 if (bp->strm) { in bnx2x_gunzip_end()
6541 vfree(bp->strm->workspace); in bnx2x_gunzip_end()
6542 kfree(bp->strm); in bnx2x_gunzip_end()
6543 bp->strm = NULL; in bnx2x_gunzip_end()
6570 bp->strm->next_in = (typeof(bp->strm->next_in))zbuf + n; in bnx2x_gunzip()
6571 bp->strm->avail_in = len - n; in bnx2x_gunzip()
6572 bp->strm->next_out = bp->gunzip_buf; in bnx2x_gunzip()
6573 bp->strm->avail_out = FW_BUF_SIZE; in bnx2x_gunzip()
6575 rc = zlib_inflateInit2(bp->strm, -MAX_WBITS); in bnx2x_gunzip()
6579 rc = zlib_inflate(bp->strm, Z_FINISH); in bnx2x_gunzip()
6582 bp->strm->msg); in bnx2x_gunzip()
6584 bp->gunzip_outlen = (FW_BUF_SIZE - bp->strm->avail_out); in bnx2x_gunzip()
6591 zlib_inflateEnd(bp->strm); in bnx2x_gunzip()