Lines Matching refs:zs
381 z_stream zs; in dump_trace() local
385 memset(&zs, 0, sizeof(zs)); in dump_trace()
386 result = deflateInit(&zs, Z_DEFAULT_COMPRESSION); in dump_trace()
399 zs.next_out = out; in dump_trace()
400 zs.avail_out = bufSize; in dump_trace()
403 if (zs.avail_in == 0) { in dump_trace()
412 zs.next_in = in; in dump_trace()
413 zs.avail_in = result; in dump_trace()
417 if (zs.avail_out == 0) { in dump_trace()
422 zs.avail_out = bufSize; in dump_trace()
425 zs.next_out = out; in dump_trace()
426 zs.avail_out = bufSize; in dump_trace()
429 } while ((result = deflate(&zs, flush)) == Z_OK); in dump_trace()
432 ALOGE("error deflating trace: %s\n", zs.msg); in dump_trace()
435 if (zs.avail_out < bufSize) { in dump_trace()
436 size_t bytes = bufSize - zs.avail_out; in dump_trace()
443 result = deflateEnd(&zs); in dump_trace()