Lines Matching refs:lzma2

269 	struct lzma2_dec lzma2;  member
885 if (s->temp.size > 0 || s->lzma2.compressed == 0) { in lzma2_lzma()
887 if (tmp > s->lzma2.compressed - s->temp.size) in lzma2_lzma()
888 tmp = s->lzma2.compressed - s->temp.size; in lzma2_lzma()
894 if (s->temp.size + tmp == s->lzma2.compressed) { in lzma2_lzma()
913 s->lzma2.compressed -= s->rc.in_pos; in lzma2_lzma()
931 if (in_avail >= s->lzma2.compressed + LZMA_IN_REQUIRED) in lzma2_lzma()
932 s->rc.in_limit = b->in_pos + s->lzma2.compressed; in lzma2_lzma()
940 if (in_avail > s->lzma2.compressed) in lzma2_lzma()
943 s->lzma2.compressed -= in_avail; in lzma2_lzma()
949 if (in_avail > s->lzma2.compressed) in lzma2_lzma()
950 in_avail = s->lzma2.compressed; in lzma2_lzma()
969 while (b->in_pos < b->in_size || s->lzma2.sequence == SEQ_LZMA_RUN) { in xz_dec_lzma2_run()
970 switch (s->lzma2.sequence) { in xz_dec_lzma2_run()
1009 s->lzma2.need_props = true; in xz_dec_lzma2_run()
1010 s->lzma2.need_dict_reset = false; in xz_dec_lzma2_run()
1012 } else if (s->lzma2.need_dict_reset) { in xz_dec_lzma2_run()
1017 s->lzma2.uncompressed = (tmp & 0x1F) << 16; in xz_dec_lzma2_run()
1018 s->lzma2.sequence = SEQ_UNCOMPRESSED_1; in xz_dec_lzma2_run()
1026 s->lzma2.need_props = false; in xz_dec_lzma2_run()
1027 s->lzma2.next_sequence in xz_dec_lzma2_run()
1030 } else if (s->lzma2.need_props) { in xz_dec_lzma2_run()
1034 s->lzma2.next_sequence in xz_dec_lzma2_run()
1043 s->lzma2.sequence = SEQ_COMPRESSED_0; in xz_dec_lzma2_run()
1044 s->lzma2.next_sequence = SEQ_COPY; in xz_dec_lzma2_run()
1050 s->lzma2.uncompressed in xz_dec_lzma2_run()
1052 s->lzma2.sequence = SEQ_UNCOMPRESSED_2; in xz_dec_lzma2_run()
1056 s->lzma2.uncompressed in xz_dec_lzma2_run()
1058 s->lzma2.sequence = SEQ_COMPRESSED_0; in xz_dec_lzma2_run()
1062 s->lzma2.compressed in xz_dec_lzma2_run()
1064 s->lzma2.sequence = SEQ_COMPRESSED_1; in xz_dec_lzma2_run()
1068 s->lzma2.compressed in xz_dec_lzma2_run()
1070 s->lzma2.sequence = s->lzma2.next_sequence; in xz_dec_lzma2_run()
1077 s->lzma2.sequence = SEQ_LZMA_PREPARE; in xz_dec_lzma2_run()
1082 if (s->lzma2.compressed < RC_INIT_BYTES) in xz_dec_lzma2_run()
1088 s->lzma2.compressed -= RC_INIT_BYTES; in xz_dec_lzma2_run()
1089 s->lzma2.sequence = SEQ_LZMA_RUN; in xz_dec_lzma2_run()
1105 s->lzma2.uncompressed)); in xz_dec_lzma2_run()
1109 s->lzma2.uncompressed -= dict_flush(&s->dict, b); in xz_dec_lzma2_run()
1111 if (s->lzma2.uncompressed == 0) { in xz_dec_lzma2_run()
1112 if (s->lzma2.compressed > 0 || s->lzma.len > 0 in xz_dec_lzma2_run()
1117 s->lzma2.sequence = SEQ_CONTROL; in xz_dec_lzma2_run()
1122 < s->lzma2.compressed)) { in xz_dec_lzma2_run()
1129 dict_uncompressed(&s->dict, b, &s->lzma2.compressed); in xz_dec_lzma2_run()
1130 if (s->lzma2.compressed > 0) in xz_dec_lzma2_run()
1133 s->lzma2.sequence = SEQ_CONTROL; in xz_dec_lzma2_run()
1193 s->lzma2.sequence = SEQ_CONTROL; in xz_dec_lzma2_reset()
1194 s->lzma2.need_dict_reset = true; in xz_dec_lzma2_reset()
1225 if (s->lzma2.sequence != SEQ_LZMA_RUN) { in xz_dec_microlzma_run()
1226 if (s->lzma2.sequence == SEQ_PROPERTIES) { in xz_dec_microlzma_run()
1238 s->lzma2.sequence = SEQ_LZMA_PREPARE; in xz_dec_microlzma_run()
1248 if (s->lzma2.compressed < RC_INIT_BYTES in xz_dec_microlzma_run()
1249 || s->lzma2.compressed > (3U << 30)) in xz_dec_microlzma_run()
1255 s->lzma2.compressed -= RC_INIT_BYTES; in xz_dec_microlzma_run()
1256 s->lzma2.sequence = SEQ_LZMA_RUN; in xz_dec_microlzma_run()
1267 s->lzma2.uncompressed)); in xz_dec_microlzma_run()
1272 s->lzma2.uncompressed -= dict_flush(&s->dict, b); in xz_dec_microlzma_run()
1274 if (s->lzma2.uncompressed == 0) { in xz_dec_microlzma_run()
1275 if (s->lzma2.pedantic_microlzma) { in xz_dec_microlzma_run()
1276 if (s->lzma2.compressed > 0 || s->lzma.len > 0 in xz_dec_microlzma_run()
1288 && s->temp.size < s->lzma2.compressed) in xz_dec_microlzma_run()
1329 s->s.lzma2.compressed = comp_size; in xz_dec_microlzma_reset()
1330 s->s.lzma2.uncompressed = uncomp_size; in xz_dec_microlzma_reset()
1331 s->s.lzma2.pedantic_microlzma = uncomp_size_is_exact; in xz_dec_microlzma_reset()
1333 s->s.lzma2.sequence = SEQ_PROPERTIES; in xz_dec_microlzma_reset()