Lines Matching refs:buf
46 uint8_t *buf; member
274 uint8_t buf[3 * LZMA_IN_REQUIRED]; member
289 dict->buf = b->out + b->out_pos; in dict_reset()
327 return dict->full > 0 ? dict->buf[offset] : 0; in dict_get()
335 dict->buf[dict->pos++] = byte; in dict_put()
362 dict->buf[dict->pos++] = dict->buf[back++]; in dict_repeat()
390 memcpy(dict->buf + dict->pos, b->in + b->in_pos, copy_size); in dict_uncompressed()
424 memcpy(b->out + b->out_pos, dict->buf + dict->start, in dict_flush()
859 memcpy(s->temp.buf + s->temp.size, b->in + b->in_pos, tmp); in lzma2_lzma()
862 memzero(s->temp.buf + s->temp.size + tmp, in lzma2_lzma()
863 sizeof(s->temp.buf) in lzma2_lzma()
874 s->rc.in = s->temp.buf; in lzma2_lzma()
884 memmove(s->temp.buf, s->temp.buf + s->rc.in_pos, in lzma2_lzma()
919 memcpy(s->temp.buf, b->in + b->in_pos, in_avail); in lzma2_lzma()
1119 s->dict.buf = vmalloc(dict_max); in xz_dec_lzma2_create()
1120 if (s->dict.buf == NULL) { in xz_dec_lzma2_create()
1125 s->dict.buf = NULL; in xz_dec_lzma2_create()
1150 vfree(s->dict.buf); in xz_dec_lzma2_reset()
1151 s->dict.buf = vmalloc(s->dict.size); in xz_dec_lzma2_reset()
1152 if (s->dict.buf == NULL) { in xz_dec_lzma2_reset()
1173 vfree(s->dict.buf); in xz_dec_lzma2_end()