Lines Matching refs:bz

221 		bz_stream bz;  member
999 bz_stream * const bz = &hctx->u.bz; in stream_bzip2_init() local
1000 bz->bzalloc = NULL; in stream_bzip2_init()
1001 bz->bzfree = NULL; in stream_bzip2_init()
1002 bz->opaque = NULL; in stream_bzip2_init()
1003 bz->total_in_lo32 = 0; in stream_bzip2_init()
1004 bz->total_in_hi32 = 0; in stream_bzip2_init()
1005 bz->total_out_lo32 = 0; in stream_bzip2_init()
1006 bz->total_out_hi32 = 0; in stream_bzip2_init()
1007 bz->next_out = hctx->output->ptr; in stream_bzip2_init()
1008 bz->avail_out = hctx->output->size; in stream_bzip2_init()
1016 if (BZ_OK != BZ2_bzCompressInit(bz, in stream_bzip2_init()
1029 bz_stream * const bz = &(hctx->u.bz); in stream_bzip2_compress() local
1032 bz->next_in = (char *)start; in stream_bzip2_compress()
1033 bz->avail_in = st_size; in stream_bzip2_compress()
1038 if (BZ_RUN_OK != BZ2_bzCompress(bz, BZ_RUN)) return -1; in stream_bzip2_compress()
1040 if (bz->avail_out == 0 || bz->avail_in > 0) { in stream_bzip2_compress()
1041 len = hctx->output->size - bz->avail_out; in stream_bzip2_compress()
1045 bz->next_out = hctx->output->ptr; in stream_bzip2_compress()
1046 bz->avail_out = hctx->output->size; in stream_bzip2_compress()
1048 } while (bz->avail_in > 0); in stream_bzip2_compress()
1054 bz_stream * const bz = &(hctx->u.bz); in stream_bzip2_flush() local
1064 rc = BZ2_bzCompress(bz, BZ_FINISH); in stream_bzip2_flush()
1070 } else if (bz->avail_in > 0) { in stream_bzip2_flush()
1074 rc = BZ2_bzCompress(bz, BZ_RUN); in stream_bzip2_flush()
1080 len = hctx->output->size - bz->avail_out; in stream_bzip2_flush()
1081 if (bz->avail_out == 0 || (len > 0 && (end || p->conf.sync_flush))) { in stream_bzip2_flush()
1085 bz->next_out = hctx->output->ptr; in stream_bzip2_flush()
1086 bz->avail_out = hctx->output->size; in stream_bzip2_flush()
1088 } while (bz->avail_in != 0 || !done); in stream_bzip2_flush()
1094 bz_stream * const bz = &(hctx->u.bz); in stream_bzip2_end() local
1095 int rc = BZ2_bzCompressEnd(bz); in stream_bzip2_end()