Lines Matching refs:unc
29 const u8 *unc;
60 if (hash[0] >= ctx->unc && hash[0] < src && hash[0][0] == src[0] &&
68 if (hash[1] >= ctx->unc && hash[1] < src && hash[1][0] == src[0] &&
94 if (ctx->unc >= src || !ctx->max_len)
98 for (ptr = ctx->unc; ptr < src; ++ptr) {
139 const u8 *unc, const u8 *unc_end, u8 *cmpr,
145 const u8 *up = unc;
154 if (unc + LZNT_CHUNK_SIZE < unc_end)
155 unc_end = unc + LZNT_CHUNK_SIZE;
159 ctx->unc = unc;
166 while (unc + s_max_off[idx] < up)
221 memcpy(cmpr + sizeof(short), unc, LZNT_CHUNK_SIZE);
227 static inline ssize_t decompress_chunk(u8 *unc, u8 *unc_end, const u8 *cmpr,
230 u8 *up = unc;
240 while (unc + s_max_off[index] < up)
265 if (unc + offset > up)
289 return up - unc;
309 * compress_lznt - Compresses @unc into @cmpr
315 size_t compress_lznt(const void *unc, size_t unc_size, void *cmpr,
322 const u8 *unc_chunk = unc;
354 * decompress_lznt - Decompress @cmpr into @unc.
356 ssize_t decompress_lznt(const void *cmpr, size_t cmpr_size, void *unc,
361 u8 *unc_chunk = unc;
412 /* Check for the end of unc buffer. */
430 /* Check the size of unc buffer. */
449 * The unc size is just a difference between current
452 return PtrOffset(unc, unc_chunk);