Lines Matching refs:lzma2
265 struct lzma2_dec lzma2; member
854 if (s->temp.size > 0 || s->lzma2.compressed == 0) { in lzma2_lzma()
856 if (tmp > s->lzma2.compressed - s->temp.size) in lzma2_lzma()
857 tmp = s->lzma2.compressed - s->temp.size; in lzma2_lzma()
863 if (s->temp.size + tmp == s->lzma2.compressed) { in lzma2_lzma()
882 s->lzma2.compressed -= s->rc.in_pos; in lzma2_lzma()
900 if (in_avail >= s->lzma2.compressed + LZMA_IN_REQUIRED) in lzma2_lzma()
901 s->rc.in_limit = b->in_pos + s->lzma2.compressed; in lzma2_lzma()
909 if (in_avail > s->lzma2.compressed) in lzma2_lzma()
912 s->lzma2.compressed -= in_avail; in lzma2_lzma()
918 if (in_avail > s->lzma2.compressed) in lzma2_lzma()
919 in_avail = s->lzma2.compressed; in lzma2_lzma()
938 while (b->in_pos < b->in_size || s->lzma2.sequence == SEQ_LZMA_RUN) { in xz_dec_lzma2_run()
939 switch (s->lzma2.sequence) { in xz_dec_lzma2_run()
978 s->lzma2.need_props = true; in xz_dec_lzma2_run()
979 s->lzma2.need_dict_reset = false; in xz_dec_lzma2_run()
981 } else if (s->lzma2.need_dict_reset) { in xz_dec_lzma2_run()
986 s->lzma2.uncompressed = (tmp & 0x1F) << 16; in xz_dec_lzma2_run()
987 s->lzma2.sequence = SEQ_UNCOMPRESSED_1; in xz_dec_lzma2_run()
995 s->lzma2.need_props = false; in xz_dec_lzma2_run()
996 s->lzma2.next_sequence in xz_dec_lzma2_run()
998 } 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()
1047 if (s->lzma2.compressed < RC_INIT_BYTES) in xz_dec_lzma2_run()
1053 s->lzma2.compressed -= RC_INIT_BYTES; in xz_dec_lzma2_run()
1054 s->lzma2.sequence = SEQ_LZMA_RUN; in xz_dec_lzma2_run()
1068 s->lzma2.uncompressed)); in xz_dec_lzma2_run()
1072 s->lzma2.uncompressed -= dict_flush(&s->dict, b); in xz_dec_lzma2_run()
1074 if (s->lzma2.uncompressed == 0) { in xz_dec_lzma2_run()
1075 if (s->lzma2.compressed > 0 || s->lzma.len > 0 in xz_dec_lzma2_run()
1080 s->lzma2.sequence = SEQ_CONTROL; in xz_dec_lzma2_run()
1084 < s->lzma2.compressed)) { in xz_dec_lzma2_run()
1091 dict_uncompressed(&s->dict, b, &s->lzma2.compressed); in xz_dec_lzma2_run()
1092 if (s->lzma2.compressed > 0) in xz_dec_lzma2_run()
1095 s->lzma2.sequence = SEQ_CONTROL; in xz_dec_lzma2_run()
1157 s->lzma2.sequence = SEQ_CONTROL; in xz_dec_lzma2_reset()
1158 s->lzma2.need_dict_reset = true; in xz_dec_lzma2_reset()