Lines Matching refs:strm
1067 struct z_stream_s strm; in deflate_compress() local
1071 memset(&strm, 0, sizeof(strm)); in deflate_compress()
1076 strm.workspace = kvzalloc(zlib_deflate_workspacesize(MAX_WBITS, in deflate_compress()
1079 if (!strm.workspace) in deflate_compress()
1082 error = zlib_deflateInit(&strm, aa_g_rawdata_compression_level); in deflate_compress()
1094 strm.next_in = src; in deflate_compress()
1095 strm.avail_in = slen; in deflate_compress()
1096 strm.next_out = stgbuf; in deflate_compress()
1097 strm.avail_out = stglen; in deflate_compress()
1099 error = zlib_deflate(&strm, Z_FINISH); in deflate_compress()
1107 dstbuf = kvzalloc(strm.total_out, GFP_KERNEL); in deflate_compress()
1109 memcpy(dstbuf, stgbuf, strm.total_out); in deflate_compress()
1118 dstbuf = krealloc(stgbuf, strm.total_out, GFP_KERNEL); in deflate_compress()
1126 *dlen = strm.total_out; in deflate_compress()
1129 zlib_deflateEnd(&strm); in deflate_compress()
1131 kvfree(strm.workspace); in deflate_compress()