Lines Matching refs:lzma2
265 struct lzma2_dec lzma2; member
852 if (s->temp.size > 0 || s->lzma2.compressed == 0) { in lzma2_lzma()
854 if (tmp > s->lzma2.compressed - s->temp.size) in lzma2_lzma()
855 tmp = s->lzma2.compressed - s->temp.size; in lzma2_lzma()
861 if (s->temp.size + tmp == s->lzma2.compressed) { in lzma2_lzma()
880 s->lzma2.compressed -= s->rc.in_pos; in lzma2_lzma()
898 if (in_avail >= s->lzma2.compressed + LZMA_IN_REQUIRED) in lzma2_lzma()
899 s->rc.in_limit = b->in_pos + s->lzma2.compressed; in lzma2_lzma()
907 if (in_avail > s->lzma2.compressed) in lzma2_lzma()
910 s->lzma2.compressed -= in_avail; in lzma2_lzma()
916 if (in_avail > s->lzma2.compressed) in lzma2_lzma()
917 in_avail = s->lzma2.compressed; in lzma2_lzma()
936 while (b->in_pos < b->in_size || s->lzma2.sequence == SEQ_LZMA_RUN) { in xz_dec_lzma2_run()
937 switch (s->lzma2.sequence) { in xz_dec_lzma2_run()
976 s->lzma2.need_props = true; in xz_dec_lzma2_run()
977 s->lzma2.need_dict_reset = false; in xz_dec_lzma2_run()
979 } else if (s->lzma2.need_dict_reset) { in xz_dec_lzma2_run()
984 s->lzma2.uncompressed = (tmp & 0x1F) << 16; in xz_dec_lzma2_run()
985 s->lzma2.sequence = SEQ_UNCOMPRESSED_1; in xz_dec_lzma2_run()
993 s->lzma2.need_props = false; in xz_dec_lzma2_run()
994 s->lzma2.next_sequence in xz_dec_lzma2_run()
997 } else if (s->lzma2.need_props) { in xz_dec_lzma2_run()
1001 s->lzma2.next_sequence in xz_dec_lzma2_run()
1010 s->lzma2.sequence = SEQ_COMPRESSED_0; in xz_dec_lzma2_run()
1011 s->lzma2.next_sequence = SEQ_COPY; in xz_dec_lzma2_run()
1017 s->lzma2.uncompressed in xz_dec_lzma2_run()
1019 s->lzma2.sequence = SEQ_UNCOMPRESSED_2; in xz_dec_lzma2_run()
1023 s->lzma2.uncompressed in xz_dec_lzma2_run()
1025 s->lzma2.sequence = SEQ_COMPRESSED_0; in xz_dec_lzma2_run()
1029 s->lzma2.compressed in xz_dec_lzma2_run()
1031 s->lzma2.sequence = SEQ_COMPRESSED_1; in xz_dec_lzma2_run()
1035 s->lzma2.compressed in xz_dec_lzma2_run()
1037 s->lzma2.sequence = s->lzma2.next_sequence; in xz_dec_lzma2_run()
1044 s->lzma2.sequence = SEQ_LZMA_PREPARE; in xz_dec_lzma2_run()
1049 if (s->lzma2.compressed < RC_INIT_BYTES) in xz_dec_lzma2_run()
1055 s->lzma2.compressed -= RC_INIT_BYTES; in xz_dec_lzma2_run()
1056 s->lzma2.sequence = SEQ_LZMA_RUN; in xz_dec_lzma2_run()
1072 s->lzma2.uncompressed)); in xz_dec_lzma2_run()
1076 s->lzma2.uncompressed -= dict_flush(&s->dict, b); in xz_dec_lzma2_run()
1078 if (s->lzma2.uncompressed == 0) { in xz_dec_lzma2_run()
1079 if (s->lzma2.compressed > 0 || s->lzma.len > 0 in xz_dec_lzma2_run()
1084 s->lzma2.sequence = SEQ_CONTROL; in xz_dec_lzma2_run()
1089 < s->lzma2.compressed)) { in xz_dec_lzma2_run()
1096 dict_uncompressed(&s->dict, b, &s->lzma2.compressed); in xz_dec_lzma2_run()
1097 if (s->lzma2.compressed > 0) in xz_dec_lzma2_run()
1100 s->lzma2.sequence = SEQ_CONTROL; in xz_dec_lzma2_run()
1161 s->lzma2.sequence = SEQ_CONTROL; in xz_dec_lzma2_reset()
1162 s->lzma2.need_dict_reset = true; in xz_dec_lzma2_reset()