Lines Matching refs:in_avail
881 size_t in_avail; in lzma2_lzma() local
884 in_avail = b->in_size - b->in_pos; in lzma2_lzma()
889 if (tmp > in_avail) in lzma2_lzma()
890 tmp = in_avail; in lzma2_lzma()
926 in_avail = b->in_size - b->in_pos; in lzma2_lzma()
927 if (in_avail >= LZMA_IN_REQUIRED) { in lzma2_lzma()
931 if (in_avail >= s->lzma2.compressed + LZMA_IN_REQUIRED) in lzma2_lzma()
939 in_avail = s->rc.in_pos - b->in_pos; in lzma2_lzma()
940 if (in_avail > s->lzma2.compressed) in lzma2_lzma()
943 s->lzma2.compressed -= in_avail; in lzma2_lzma()
947 in_avail = b->in_size - b->in_pos; in lzma2_lzma()
948 if (in_avail < LZMA_IN_REQUIRED) { in lzma2_lzma()
949 if (in_avail > s->lzma2.compressed) in lzma2_lzma()
950 in_avail = s->lzma2.compressed; in lzma2_lzma()
952 memcpy(s->temp.buf, b->in + b->in_pos, in_avail); in lzma2_lzma()
953 s->temp.size = in_avail; in lzma2_lzma()
954 b->in_pos += in_avail; in lzma2_lzma()