Searched refs:zs (Results 1 – 3 of 3) sorted by relevance
147 z_stream zs; in btsnoop_compress() local148 zs.zalloc = Z_NULL; in btsnoop_compress()149 zs.zfree = Z_NULL; in btsnoop_compress()150 zs.opaque = Z_NULL; in btsnoop_compress()152 if (deflateInit(&zs, Z_DEFAULT_COMPRESSION) != Z_OK) return false; in btsnoop_compress()161 zs.avail_in = in btsnoop_compress()163 zs.next_in = block_src; in btsnoop_compress()166 zs.avail_out = BLOCK_SIZE; in btsnoop_compress()167 zs.next_out = block_dst; in btsnoop_compress()169 int err = deflate(&zs, (i == num_blocks - 1) ? Z_FINISH : Z_NO_FLUSH); in btsnoop_compress()[all …]
93 z_stream zs; in nfcsnoop_compress() local94 zs.zalloc = Z_NULL; in nfcsnoop_compress()95 zs.zfree = Z_NULL; in nfcsnoop_compress()96 zs.opaque = Z_NULL; in nfcsnoop_compress()98 if (deflateInit(&zs, Z_DEFAULT_COMPRESSION) != Z_OK) return false; in nfcsnoop_compress()107 zs.avail_in = in nfcsnoop_compress()109 zs.next_in = block_src.get(); in nfcsnoop_compress()112 zs.avail_out = BLOCK_SIZE; in nfcsnoop_compress()113 zs.next_out = block_dst.get(); in nfcsnoop_compress()115 int err = deflate(&zs, (i == num_blocks - 1) ? Z_FINISH : Z_NO_FLUSH); in nfcsnoop_compress()[all …]
274 z_stream zs; in dump_trace() local278 memset(&zs, 0, sizeof(zs)); in dump_trace()279 result = deflateInit(&zs, Z_DEFAULT_COMPRESSION); in dump_trace()292 zs.next_out = out; in dump_trace()293 zs.avail_out = bufSize; in dump_trace()296 if (zs.avail_in == 0) { in dump_trace()305 zs.next_in = in; in dump_trace()306 zs.avail_in = result; in dump_trace()310 if (zs.avail_out == 0) { in dump_trace()315 zs.avail_out = bufSize; in dump_trace()[all …]