Lines Matching refs:zs
286 z_stream zs; in dump_trace() local
290 memset(&zs, 0, sizeof(zs)); in dump_trace()
291 result = deflateInit(&zs, Z_DEFAULT_COMPRESSION); in dump_trace()
304 zs.next_out = out; in dump_trace()
305 zs.avail_out = bufSize; in dump_trace()
308 if (zs.avail_in == 0) { in dump_trace()
317 zs.next_in = in; in dump_trace()
318 zs.avail_in = result; in dump_trace()
322 if (zs.avail_out == 0) { in dump_trace()
327 zs.avail_out = bufSize; in dump_trace()
330 zs.next_out = out; in dump_trace()
331 zs.avail_out = bufSize; in dump_trace()
334 } while ((result = deflate(&zs, flush)) == Z_OK); in dump_trace()
337 ALOGE("error deflating trace: %s\n", zs.msg); in dump_trace()
340 if (zs.avail_out < bufSize) { in dump_trace()
341 size_t bytes = bufSize - zs.avail_out; in dump_trace()
348 result = deflateEnd(&zs); in dump_trace()