Lines Matching refs:zs
274 z_stream zs; in dump_trace() local
278 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()
318 zs.next_out = out; in dump_trace()
319 zs.avail_out = bufSize; in dump_trace()
322 } while ((result = deflate(&zs, flush)) == Z_OK); in dump_trace()
325 ALOGE("error deflating trace: %s\n", zs.msg); in dump_trace()
328 if (zs.avail_out < bufSize) { in dump_trace()
329 size_t bytes = bufSize - zs.avail_out; in dump_trace()
336 result = deflateEnd(&zs); in dump_trace()