Lines Matching refs:zs
80 z_stream zs; in nfcsnoop_compress() local
81 zs.zalloc = Z_NULL; in nfcsnoop_compress()
82 zs.zfree = Z_NULL; in nfcsnoop_compress()
83 zs.opaque = Z_NULL; in nfcsnoop_compress()
85 if (deflateInit(&zs, Z_DEFAULT_COMPRESSION) != Z_OK) return false; in nfcsnoop_compress()
94 zs.avail_in = in nfcsnoop_compress()
96 zs.next_in = block_src; in nfcsnoop_compress()
99 zs.avail_out = BLOCK_SIZE; in nfcsnoop_compress()
100 zs.next_out = block_dst; in nfcsnoop_compress()
102 int err = deflate(&zs, (i == num_blocks - 1) ? Z_FINISH : Z_NO_FLUSH); in nfcsnoop_compress()
108 const size_t length = BLOCK_SIZE - zs.avail_out; in nfcsnoop_compress()
110 } while (zs.avail_out == 0); in nfcsnoop_compress()
113 deflateEnd(&zs); in nfcsnoop_compress()