/kernel/linux/linux-5.10/lib/lz4/ |
H A D | lz4_decompress.c | 87 BYTE * const oend = op + outputSize; in LZ4_decompress_generic() local 100 const BYTE *const shortoend = oend - in LZ4_decompress_generic() 224 if (((endOnInput) && ((cpy > oend - MFLIMIT) in LZ4_decompress_generic() 226 || ((!endOnInput) && (cpy > oend - WILDCOPYLENGTH))) { in LZ4_decompress_generic() 228 if (cpy > oend) { in LZ4_decompress_generic() 233 cpy = oend; in LZ4_decompress_generic() 234 length = oend - op; in LZ4_decompress_generic() 247 && (cpy != oend)) { in LZ4_decompress_generic() 257 || (cpy > oend))) { in LZ4_decompress_generic() 279 if (!partialDecoding || (cpy == oend) || (i in LZ4_decompress_generic() [all...] |
H A D | lz4hc_compress.c | 269 BYTE *oend) in LZ4HC_encodeSequence() 280 + length + (2 + 1 + LASTLITERALS)) > oend)) { in LZ4HC_encodeSequence() 308 + (1 + LASTLITERALS) > oend)) { in LZ4HC_encodeSequence() 355 BYTE * const oend = op + maxOutputSize; in LZ4HC_compress_generic() local 403 &anchor, ml, ref, limit, oend)) in LZ4HC_compress_generic() 469 ml, ref, limit, oend)) in LZ4HC_compress_generic() 473 ml2, ref2, limit, oend)) in LZ4HC_compress_generic() 499 ml, ref, limit, oend)) in LZ4HC_compress_generic() 540 ref, limit, oend)) in LZ4HC_compress_generic() 262 LZ4HC_encodeSequence( const BYTE **ip, BYTE **op, const BYTE **anchor, int matchLength, const BYTE * const match, limitedOutput_directive limitedOutputBuffer, BYTE *oend) LZ4HC_encodeSequence() argument
|
H A D | lz4_compress.c | 539 BYTE * const oend = op + targetDstSize; in LZ4_compress_destSize_generic() local 694 + lastRunSize /* literals */ > oend) { in LZ4_compress_destSize_generic() 696 lastRunSize = (oend - op) - 1; in LZ4_compress_destSize_generic()
|
/kernel/linux/linux-6.6/lib/lz4/ |
H A D | lz4_decompress.c | 87 BYTE * const oend = op + outputSize; in LZ4_decompress_generic() local 100 const BYTE *const shortoend = oend - in LZ4_decompress_generic() 224 if (((endOnInput) && ((cpy > oend - MFLIMIT) in LZ4_decompress_generic() 226 || ((!endOnInput) && (cpy > oend - WILDCOPYLENGTH))) { in LZ4_decompress_generic() 228 if (cpy > oend) { in LZ4_decompress_generic() 233 cpy = oend; in LZ4_decompress_generic() 234 length = oend - op; in LZ4_decompress_generic() 247 && (cpy != oend)) { in LZ4_decompress_generic() 257 || (cpy > oend))) { in LZ4_decompress_generic() 279 if (!partialDecoding || (cpy == oend) || (i in LZ4_decompress_generic() [all...] |
H A D | lz4hc_compress.c | 269 BYTE *oend) in LZ4HC_encodeSequence() 280 + length + (2 + 1 + LASTLITERALS)) > oend)) { in LZ4HC_encodeSequence() 308 + (1 + LASTLITERALS) > oend)) { in LZ4HC_encodeSequence() 355 BYTE * const oend = op + maxOutputSize; in LZ4HC_compress_generic() local 403 &anchor, ml, ref, limit, oend)) in LZ4HC_compress_generic() 469 ml, ref, limit, oend)) in LZ4HC_compress_generic() 473 ml2, ref2, limit, oend)) in LZ4HC_compress_generic() 499 ml, ref, limit, oend)) in LZ4HC_compress_generic() 540 ref, limit, oend)) in LZ4HC_compress_generic() 262 LZ4HC_encodeSequence( const BYTE **ip, BYTE **op, const BYTE **anchor, int matchLength, const BYTE * const match, limitedOutput_directive limitedOutputBuffer, BYTE *oend) LZ4HC_encodeSequence() argument
|
H A D | lz4_compress.c | 539 BYTE * const oend = op + targetDstSize; in LZ4_compress_destSize_generic() local 694 + lastRunSize /* literals */ > oend) { in LZ4_compress_destSize_generic() 696 lastRunSize = (oend - op) - 1; in LZ4_compress_destSize_generic()
|
/kernel/linux/linux-6.6/lib/zstd/decompress/ |
H A D | zstd_decompress_block.c | 794 BYTE* const oend = op + length; in ZSTD_safecopy() local 801 while (op < oend) *op++ = *ip++; in ZSTD_safecopy() 810 assert(op <= oend); in ZSTD_safecopy() 813 if (oend <= oend_w) { in ZSTD_safecopy() 820 assert(oend > oend_w); in ZSTD_safecopy() 826 while (op < oend) *op++ = *ip++; in ZSTD_safecopy() 834 BYTE* const oend = op + length; in ZSTD_safecopyDstBeforeSrc() local 838 while (op < oend) *op++ = *ip++; in ZSTD_safecopyDstBeforeSrc() 842 if (op <= oend - WILDCOPY_OVERLENGTH && diff < -WILDCOPY_VECLEN) { in ZSTD_safecopyDstBeforeSrc() 843 ZSTD_wildcopy(op, ip, oend in ZSTD_safecopyDstBeforeSrc() 861 ZSTD_execSequenceEnd(BYTE* op, BYTE* const oend, seq_t sequence, const BYTE** litPtr, const BYTE* const litLimit, const BYTE* const prefixStart, const BYTE* const virtualStart, const BYTE* const dictEnd) ZSTD_execSequenceEnd() argument 908 ZSTD_execSequenceEndSplitLitBuffer(BYTE* op, BYTE* const oend, const BYTE* const oend_w, seq_t sequence, const BYTE** litPtr, const BYTE* const litLimit, const BYTE* const prefixStart, const BYTE* const virtualStart, const BYTE* const dictEnd) ZSTD_execSequenceEndSplitLitBuffer() argument 953 ZSTD_execSequence(BYTE* op, BYTE* const oend, seq_t sequence, const BYTE** litPtr, const BYTE* const litLimit, const BYTE* const prefixStart, const BYTE* const virtualStart, const BYTE* const dictEnd) ZSTD_execSequence() argument 1046 ZSTD_execSequenceSplitLitBuffer(BYTE* op, BYTE* const oend, const BYTE* const oend_w, seq_t sequence, const BYTE** litPtr, const BYTE* const litLimit, const BYTE* const prefixStart, const BYTE* const virtualStart, const BYTE* const dictEnd) ZSTD_execSequenceSplitLitBuffer() argument 1287 ZSTD_assertValidSequence( ZSTD_DCtx const* dctx, BYTE const* op, BYTE const* oend, seq_t const seq, BYTE const* prefixStart, BYTE const* virtualStart) global() argument 1331 BYTE* const oend = ostart + maxDstSize; global() local 1548 BYTE* const oend = dctx->litBufferLocation == ZSTD_not_in_dst ? ostart + maxDstSize : dctx->litBuffer; global() local 1677 BYTE* const oend = dctx->litBufferLocation == ZSTD_in_dst ? dctx->litBuffer : ostart + maxDstSize; global() local [all...] |
H A D | huf_decompress.c | 152 BYTE* oend; member 169 BYTE* const oend = (BYTE*)dst + dstSize; in HUF_DecompressAsmArgs_init() local 220 if (args->op[3] >= oend) in HUF_DecompressAsmArgs_init() 241 args->oend = oend; in HUF_DecompressAsmArgs_init() 532 BYTE* const oend = op + dstSize; in HUF_decompress1X1_usingDTable_internal_body() local 541 HUF_decodeStreamX1(op, &bitD, oend, dt, dtLog); in HUF_decompress1X1_usingDTable_internal_body() 559 BYTE* const oend = ostart + dstSize; in HUF_decompress4X1_usingDTable_internal_body() local 560 BYTE* const olimit = oend - 3; in HUF_decompress4X1_usingDTable_internal_body() 590 if (opStart4 > oend) retur in HUF_decompress4X1_usingDTable_internal_body() 674 BYTE* const oend = (BYTE*)dst + dstSize; HUF_decompress4X1_usingDTable_internal_bmi2_asm() local 1230 BYTE* const oend = ostart + dstSize; HUF_decompress1X2_usingDTable_internal_body() local 1253 BYTE* const oend = ostart + dstSize; HUF_decompress4X2_usingDTable_internal_body() local 1388 BYTE* const oend = (BYTE*)dst + dstSize; HUF_decompress4X2_usingDTable_internal_bmi2_asm() local [all...] |
H A D | zstd_decompress.c | 838 BYTE* const oend = dstCapacity != 0 ? ostart + dstCapacity : ostart; in ZSTD_decompressFrame() local 861 BYTE* oBlockEnd = oend; in ZSTD_decompressFrame() 894 /* Use oend instead of oBlockEnd because this function is safe to overlap. It uses memmove. */ in ZSTD_decompressFrame() 895 decodedSize = ZSTD_copyRawBlock(op, (size_t)(oend-op), ip, cBlockSize); in ZSTD_decompressFrame() 1850 ZSTD_DStream* zds, char** op, char* oend, in ZSTD_decompressContinueStream() 1866 size_t const dstSize = isSkipFrame ? 0 : (size_t)(oend - *op); in ZSTD_decompressContinueStream() 1872 assert(*op <= oend); in ZSTD_decompressContinueStream() 1886 char* const oend = output->size != 0 ? dst + output->size : dst; in ZSTD_decompressStream() local 1945 && (U64)(size_t)(oend-op) >= zds->fParams.frameContentSize) { in ZSTD_decompressStream() 1949 size_t const decompressedSize = ZSTD_decompress_usingDDict(zds, op, (size_t)(oend in ZSTD_decompressStream() 1849 ZSTD_decompressContinueStream( ZSTD_DStream* zds, char** op, char* oend, void const* src, size_t srcSize) ZSTD_decompressContinueStream() argument [all...] |
/kernel/linux/linux-5.10/lib/zstd/ |
H A D | huf_compress.c | 86 BYTE *const oend = ostart + dstSize; in HUF_compressWeights_wksp() local 128 CHECK_V_F(hSize, FSE_writeNCount(op, oend - op, norm, maxSymbolValue, tableLog)); in HUF_compressWeights_wksp() 135 CHECK_V_F(cSize, FSE_compress_usingCTable(op, oend - op, weightTable, wtSize, CTable)); in HUF_compressWeights_wksp() 542 BYTE *const oend = ostart + dstSize; in HUF_compress1X_usingCTable() local 551 size_t const initErr = BIT_initCStream(&bitC, op, oend - op); in HUF_compress1X_usingCTable() 587 BYTE *const oend = ostart + dstSize; in HUF_compress4X_usingCTable() local 597 CHECK_V_F(cSize, HUF_compress1X_usingCTable(op, oend - op, ip, segmentSize, CTable)); in HUF_compress4X_usingCTable() 606 CHECK_V_F(cSize, HUF_compress1X_usingCTable(op, oend - op, ip, segmentSize, CTable)); in HUF_compress4X_usingCTable() 615 CHECK_V_F(cSize, HUF_compress1X_usingCTable(op, oend - op, ip, segmentSize, CTable)); in HUF_compress4X_usingCTable() 624 CHECK_V_F(cSize, HUF_compress1X_usingCTable(op, oend in HUF_compress4X_usingCTable() 633 HUF_compressCTable_internal(BYTE *const ostart, BYTE *op, BYTE *const oend, const void *src, size_t srcSize, unsigned singleStream, const HUF_CElt *CTable) HUF_compressCTable_internal() argument 657 BYTE *const oend = ostart + dstSize; HUF_compress_internal() local [all...] |
H A D | decompress.c | 880 size_t ZSTD_execSequenceLast7(BYTE *op, BYTE *const oend, seq_t sequence, const BYTE **litPtr, const BYTE *const litLimit, const BYTE *const base, in ZSTD_execSequenceLast7() argument 886 BYTE *const oend_w = oend - WILDCOPY_OVERLENGTH; in ZSTD_execSequenceLast7() 891 if (oMatchEnd > oend) in ZSTD_execSequenceLast7() 892 return ERROR(dstSize_tooSmall); /* last match must start at a minimum distance of WILDCOPY_OVERLENGTH from oend */ in ZSTD_execSequenceLast7() 1007 size_t ZSTD_execSequence(BYTE *op, BYTE *const oend, seq_t sequence, const BYTE **litPtr, const BYTE *const litLimit, const BYTE *const base, in ZSTD_execSequence() argument 1013 BYTE *const oend_w = oend - WILDCOPY_OVERLENGTH; in ZSTD_execSequence() 1018 if (oMatchEnd > oend) in ZSTD_execSequence() 1019 return ERROR(dstSize_tooSmall); /* last match must start at a minimum distance of WILDCOPY_OVERLENGTH from oend */ in ZSTD_execSequence() 1023 return ZSTD_execSequenceLast7(op, oend, sequence, litPtr, litLimit, base, vBase, dictEnd); in ZSTD_execSequence() 1029 sequence.litLength - 8); /* note : since oLitEnd <= oend in ZSTD_execSequence() 1098 BYTE *const oend = ostart + maxDstSize; ZSTD_decompressSequences() local 1263 ZSTD_execSequenceLong(BYTE *op, BYTE *const oend, seq_t sequence, const BYTE **litPtr, const BYTE *const litLimit, const BYTE *const base, const BYTE *const vBase, const BYTE *const dictEnd) ZSTD_execSequenceLong() argument 1353 BYTE *const oend = ostart + maxDstSize; ZSTD_decompressSequencesLong() local 1570 BYTE *const oend = ostart + dstCapacity; ZSTD_decompressFrame() local 2304 char *const oend = (char *)(output->dst) + output->size; ZSTD_decompressStream() local [all...] |
H A D | huf_decompress.c | 202 BYTE *const oend = op + dstSize; in HUF_decompress1X2_usingDTable_internal() local 215 HUF_decodeStreamX2(op, &bitD, oend, dt, dtLog); in HUF_decompress1X2_usingDTable_internal() 256 BYTE *const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable_internal() local 310 for (; (endSignal == BIT_DStream_unfinished) && (op4 < (oend - 7));) { in HUF_decompress4X2_usingDTable_internal() 343 HUF_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X2_usingDTable_internal() 669 BYTE *const oend = ostart + dstSize; in HUF_decompress1X4_usingDTable_internal() local 673 HUF_decodeStreamX4(ostart, &bitD, oend, dt, dtd.tableLog); in HUF_decompress1X4_usingDTable_internal() 715 BYTE *const oend = ostart + dstSize; in HUF_decompress4X4_usingDTable_internal() local 769 for (; (endSignal == BIT_DStream_unfinished) & (op4 < (oend - (sizeof(bitD4.bitContainer) - 1)));) { in HUF_decompress4X4_usingDTable_internal() 803 HUF_decodeStreamX4(op4, &bitD4, oend, d in HUF_decompress4X4_usingDTable_internal() [all...] |
H A D | fse_compress.c | 208 BYTE *const oend = ostart + headerBufferSize; in FSE_writeNCount_generic() local 237 if ((!writeIsSafe) && (out > oend - 2)) in FSE_writeNCount_generic() 252 if ((!writeIsSafe) && (out > oend - 2)) in FSE_writeNCount_generic() 278 if ((!writeIsSafe) && (out > oend - 2)) in FSE_writeNCount_generic() 289 if ((!writeIsSafe) && (out > oend - 2)) in FSE_writeNCount_generic()
|
H A D | zstd_internal.h | 146 BYTE* const oend = op + length; in ZSTD_wildcopy() local 161 } while (op < oend); in ZSTD_wildcopy()
|
H A D | compress.c | 599 BYTE *const oend = ostart + dstCapacity; in ZSTD_compressSequences_internal() local 630 if ((oend - op) < 3 /*max nbSeq Size*/ + 1 /*seqHead */) in ZSTD_compressSequences_internal() 672 size_t const NCountSize = FSE_writeNCount(op, oend - op, norm, max, tableLog); /* overflow protected */ in ZSTD_compressSequences_internal() 704 size_t const NCountSize = FSE_writeNCount(op, oend - op, norm, max, tableLog); /* overflow protected */ in ZSTD_compressSequences_internal() 736 size_t const NCountSize = FSE_writeNCount(op, oend - op, norm, max, tableLog); /* overflow protected */ in ZSTD_compressSequences_internal() 756 CHECK_E(BIT_initCStream(&blockStream, op, oend - op), dstSize_tooSmall); /* not enough space remaining */ in ZSTD_compressSequences_internal() 3136 char *const oend = ostart + *dstCapacityPtr; in ZSTD_compressStream_generic() local 3161 size_t oSize = oend - op; in ZSTD_compressStream_generic() 3189 size_t const flushed = ZSTD_limitCopy(op, oend - op, zcs->outBuff + zcs->outBuffFlushedSize, toFlush); in ZSTD_compressStream_generic() 3254 BYTE *const oend in ZSTD_endStream() local [all...] |
/kernel/linux/linux-6.6/lib/zstd/compress/ |
H A D | huf_compress.c | 93 BYTE* const oend = ostart + dstSize; in HUF_compressWeights() local 114 { CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), wksp->norm, maxSymbolValue, tableLog) ); in HUF_compressWeights() 120 { CHECK_V_F(cSize, FSE_compress_usingCTable(op, (size_t)(oend - op), weightTable, wtSize, wksp->CTable) ); in HUF_compressWeights() 971 BYTE* const oend = ostart + dstSize; in HUF_compress1X_usingCTable_internal_body() local 977 { size_t const initErr = HUF_initCStream(&bitC, op, (size_t)(oend-op)); in HUF_compress1X_usingCTable_internal_body() 1088 BYTE* const oend = ostart + dstSize; in HUF_compress4X_usingCTable_internal() local 1095 assert(op <= oend); in HUF_compress4X_usingCTable_internal() 1096 { CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, CTable, bmi2) ); in HUF_compress4X_usingCTable_internal() 1103 assert(op <= oend); in HUF_compress4X_usingCTable_internal() 1104 { CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend in HUF_compress4X_usingCTable_internal() 1141 HUF_compressCTable_internal( BYTE* const ostart, BYTE* op, BYTE* const oend, const void* src, size_t srcSize, HUF_nbStreams_e nbStreams, const HUF_CElt* CTable, const int bmi2) HUF_compressCTable_internal() argument 1185 BYTE* const oend = ostart + dstSize; HUF_compress_internal() local [all...] |
H A D | zstd_compress_superblock.c | 50 BYTE* const oend = ostart + dstSize; in ZSTD_compressSubBlock_literal() local 80 { const size_t cSize = singleStream ? HUF_compress1X_usingCTable(op, oend-op, literals, litSize, hufTable) in ZSTD_compressSubBlock_literal() 81 : HUF_compress4X_usingCTable(op, oend-op, literals, litSize, hufTable); in ZSTD_compressSubBlock_literal() 169 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock_sequences() local 177 RETURN_ERROR_IF((oend-op) < 3 /*max nbSeq Size*/ + 1 /*seqHead*/, in ZSTD_compressSubBlock_sequences() 208 op, oend - op, in ZSTD_compressSubBlock_sequences() 272 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock() local 278 op, oend-op, bmi2, writeLitEntropy, litEntropyWritten); in ZSTD_compressSubBlock() 288 op, oend-op, in ZSTD_compressSubBlock() 444 BYTE* const oend in ZSTD_compressSubBlock_multi() local [all...] |
H A D | fse_compress.c | 239 BYTE* const oend = ostart + headerBufferSize; in FSE_writeNCount_generic() local 267 if ((!writeIsSafe) && (out > oend-2)) in FSE_writeNCount_generic() 282 if ((!writeIsSafe) && (out > oend - 2)) in FSE_writeNCount_generic() 304 if ((!writeIsSafe) && (out > oend - 2)) in FSE_writeNCount_generic() 318 if ((!writeIsSafe) && (out > oend - 2)) in FSE_writeNCount_generic()
|
H A D | zstd_compress_sequences.c | 252 const BYTE* const oend = op + dstCapacity; in ZSTD_buildCTable() local 279 assert(oend >= op); in ZSTD_buildCTable() 280 { size_t const NCountSize = FSE_writeNCount(op, (size_t)(oend - op), wksp->norm, max, tableLog); /* overflow protected */ in ZSTD_buildCTable()
|
H A D | zstd_compress.c | 2366 const BYTE* const oend = dstEnd; in ZSTD_buildSequencesStatistics() local 2379 assert(op <= oend); in ZSTD_buildSequencesStatistics() 2394 op, (size_t)(oend - op), in ZSTD_buildSequencesStatistics() 2409 assert(op <= oend); in ZSTD_buildSequencesStatistics() 2426 op, (size_t)(oend - op), in ZSTD_buildSequencesStatistics() 2441 assert(op <= oend); in ZSTD_buildSequencesStatistics() 2447 DEBUGLOG(5, "Building ML table (remaining space : %i)", (int)(oend-op)); in ZSTD_buildSequencesStatistics() 2456 op, (size_t)(oend - op), in ZSTD_buildSequencesStatistics() 2471 assert(op <= oend); in ZSTD_buildSequencesStatistics() 2503 BYTE* const oend in ZSTD_entropyCompressSeqStore_internal() local 3092 BYTE* const oend = ostart + sizeof(fseMetadata->fseTablesBuffer); ZSTD_buildBlockEntropyStats_sequences() local 5218 char* const oend = output->size != 0 ? ostart + output->size : ostart; ZSTD_compressStream_generic() local [all...] |
/kernel/linux/linux-6.6/lib/zstd/common/ |
H A D | zstd_internal.h | 213 BYTE* const oend = op + length; in ZSTD_wildcopy() local 219 } while (op < oend); in ZSTD_wildcopy() 232 while (op < oend); in ZSTD_wildcopy() 242 while (op < oend); in ZSTD_wildcopy()
|
/kernel/linux/linux-6.6/fs/erofs/ |
H A D | decompressor.c | 24 unsigned int oend; member 134 omargin = PAGE_ALIGN(ctx->oend) - ctx->oend; in z_erofs_lz4_handle_overlap() 286 ctx.oend = rq->pageofs_out + rq->outputsize; in z_erofs_lz4_decompress() 287 ctx.outpages = PAGE_ALIGN(ctx.oend) >> PAGE_SHIFT; in z_erofs_lz4_decompress()
|
/kernel/linux/linux-5.10/fs/erofs/ |
H A D | decompressor.c | 149 const uint oend = (rq->pageofs_out + in z_erofs_lz4_decompress() local 156 rq->inputsize - oend < in z_erofs_lz4_decompress()
|