Lines Matching refs:in_avail
850 size_t in_avail; in lzma2_lzma() local
853 in_avail = b->in_size - b->in_pos; in lzma2_lzma()
858 if (tmp > in_avail) in lzma2_lzma()
859 tmp = in_avail; in lzma2_lzma()
895 in_avail = b->in_size - b->in_pos; in lzma2_lzma()
896 if (in_avail >= LZMA_IN_REQUIRED) { in lzma2_lzma()
900 if (in_avail >= s->lzma2.compressed + LZMA_IN_REQUIRED) in lzma2_lzma()
908 in_avail = s->rc.in_pos - b->in_pos; in lzma2_lzma()
909 if (in_avail > s->lzma2.compressed) in lzma2_lzma()
912 s->lzma2.compressed -= in_avail; in lzma2_lzma()
916 in_avail = b->in_size - b->in_pos; in lzma2_lzma()
917 if (in_avail < LZMA_IN_REQUIRED) { in lzma2_lzma()
918 if (in_avail > s->lzma2.compressed) in lzma2_lzma()
919 in_avail = s->lzma2.compressed; in lzma2_lzma()
921 memcpy(s->temp.buf, b->in + b->in_pos, in_avail); in lzma2_lzma()
922 s->temp.size = in_avail; in lzma2_lzma()
923 b->in_pos += in_avail; in lzma2_lzma()