Lines Matching refs:strm
1056 struct z_stream_s strm; in deflate_compress() local
1060 memset(&strm, 0, sizeof(strm)); in deflate_compress()
1065 strm.workspace = kvzalloc(zlib_deflate_workspacesize(MAX_WBITS, in deflate_compress()
1068 if (!strm.workspace) in deflate_compress()
1071 error = zlib_deflateInit(&strm, aa_g_rawdata_compression_level); in deflate_compress()
1083 strm.next_in = src; in deflate_compress()
1084 strm.avail_in = slen; in deflate_compress()
1085 strm.next_out = stgbuf; in deflate_compress()
1086 strm.avail_out = stglen; in deflate_compress()
1088 error = zlib_deflate(&strm, Z_FINISH); in deflate_compress()
1096 dstbuf = kvzalloc(strm.total_out, GFP_KERNEL); in deflate_compress()
1098 memcpy(dstbuf, stgbuf, strm.total_out); in deflate_compress()
1107 dstbuf = krealloc(stgbuf, strm.total_out, GFP_KERNEL); in deflate_compress()
1115 *dlen = strm.total_out; in deflate_compress()
1118 zlib_deflateEnd(&strm); in deflate_compress()
1120 kvfree(strm.workspace); in deflate_compress()