Lines Matching refs:flush

70 typedef block_state (*compress_func)(deflate_state *s, int flush);
73 local block_state deflate_stored(deflate_state *s, int flush);
74 local block_state deflate_fast(deflate_state *s, int flush);
76 local block_state deflate_slow(deflate_state *s, int flush);
78 local block_state deflate_rle(deflate_state *s, int flush);
79 local block_state deflate_huff(deflate_state *s, int flush);
946 int ZEXPORT deflate(z_streamp strm, int flush) { in deflate() argument
950 if (deflateStateCheck(strm) || flush > Z_BLOCK || flush < 0) { in deflate()
957 (s->status == FINISH_STATE && flush != Z_FINISH)) { in deflate()
963 s->last_flush = flush; in deflate()
983 } else if (strm->avail_in == 0 && RANK(flush) <= RANK(old_flush) && in deflate()
984 flush != Z_FINISH) { in deflate()
1179 (flush != Z_NO_FLUSH && s->status != FINISH_STATE)) { in deflate()
1182 bstate = s->level == 0 ? deflate_stored(s, flush) : in deflate()
1183 s->strategy == Z_HUFFMAN_ONLY ? deflate_huff(s, flush) : in deflate()
1184 s->strategy == Z_RLE ? deflate_rle(s, flush) : in deflate()
1185 (*(configuration_table[s->level].func))(s, flush); in deflate()
1204 if (flush == Z_PARTIAL_FLUSH) { in deflate()
1206 } else if (flush != Z_BLOCK) { /* FULL_FLUSH or SYNC_FLUSH */ in deflate()
1211 if (flush == Z_FULL_FLUSH) { in deflate()
1228 if (flush != Z_FINISH) return Z_OK; in deflate()
1629 local block_state deflate_stored(deflate_state *s, int flush) { in deflate_stored() argument
1664 if (len < min_block && ((len == 0 && flush != Z_FINISH) || in deflate_stored()
1665 flush == Z_NO_FLUSH || in deflate_stored()
1672 last = flush == Z_FINISH && len == left + s->strm->avail_in ? 1 : 0; in deflate_stored()
1754 if (flush != Z_NO_FLUSH && flush != Z_FINISH && in deflate_stored()
1792 ((left || flush == Z_FINISH) && flush != Z_NO_FLUSH && in deflate_stored()
1795 last = flush == Z_FINISH && s->strm->avail_in == 0 && in deflate_stored()
1813 local block_state deflate_fast(deflate_state *s, int flush) { in deflate_fast() argument
1825 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) { in deflate_fast()
1897 if (flush == Z_FINISH) { in deflate_fast()
1912 local block_state deflate_slow(deflate_state *s, int flush) { in deflate_slow() argument
1925 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) { in deflate_slow()
2018 Assert (flush != Z_NO_FLUSH, "no flush?"); in deflate_slow()
2025 if (flush == Z_FINISH) { in deflate_slow()
2040 local block_state deflate_rle(deflate_state *s, int flush) { in deflate_rle() argument
2052 if (s->lookahead <= MAX_MATCH && flush == Z_NO_FLUSH) { in deflate_rle()
2098 if (flush == Z_FINISH) { in deflate_rle()
2111 local block_state deflate_huff(deflate_state *s, int flush) { in deflate_huff() argument
2119 if (flush == Z_NO_FLUSH) in deflate_huff()
2134 if (flush == Z_FINISH) { in deflate_huff()