Home
last modified time | relevance | path

Searched refs:pledgedSrcSize (Results 1 - 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/include/linux/
H A Dzstd.h543 * @pledgedSrcSize: If params.fParams.contentSizeFlag == 1 then the caller must
556 unsigned long long pledgedSrcSize, void *workspace,
562 * @pledgedSrcSize: Optionally the source size, or zero if unknown.
572 unsigned long long pledgedSrcSize, void *workspace,
579 * @pledgedSrcSize: Optionally the source size, or zero if unknown.
582 * loading, since it can be reused. If `pledgedSrcSize` is non-zero the frame
587 size_t ZSTD_resetCStream(ZSTD_CStream *zcs, unsigned long long pledgedSrcSize);
1010 unsigned long long pledgedSrcSize);
1012 unsigned long long pledgedSrcSize);
1014 unsigned long long pledgedSrcSize);
[all...]
/kernel/linux/linux-6.6/lib/zstd/compress/
H A Dzstd_compress.c1009 size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize) in ZSTD_CCtx_setPledgedSrcSize() argument
1011 DEBUGLOG(4, "ZSTD_CCtx_setPledgedSrcSize to %u bytes", (U32)pledgedSrcSize); in ZSTD_CCtx_setPledgedSrcSize()
1013 "Can't set pledgedSrcSize when not in init stage."); in ZSTD_CCtx_setPledgedSrcSize()
1014 cctx->pledgedSrcSizePlusOne = pledgedSrcSize+1; in ZSTD_CCtx_setPledgedSrcSize()
1396 const U64 pledgedSrcSize) in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1398 size_t const windowSize = (size_t) BOUNDED(1ULL, 1ULL << cParams->windowLog, pledgedSrcSize); in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1750 U64 const pledgedSrcSize, in ZSTD_resetCCtx_internal()
1756 DEBUGLOG(4, "ZSTD_resetCCtx_internal: pledgedSrcSize=%u, wlog=%u, useRowMatchFinder=%d useBlockSplitter=%d", in ZSTD_resetCCtx_internal()
1757 (U32)pledgedSrcSize, params->cParams.windowLog, (int)params->useRowMatchFinder, (int)params->useBlockSplitter); in ZSTD_resetCCtx_internal()
1778 { size_t const windowSize = MAX(1, (size_t)MIN(((U64)1 << params->cParams.windowLog), pledgedSrcSize)); in ZSTD_resetCCtx_internal()
1389 ZSTD_estimateCCtxSize_usingCCtxParams_internal( const ZSTD_compressionParameters* cParams, const ldmParams_t* ldmParams, const int isStatic, const ZSTD_paramSwitch_e useRowMatchFinder, const size_t buffInSize, const size_t buffOutSize, const U64 pledgedSrcSize) ZSTD_estimateCCtxSize_usingCCtxParams_internal() argument
1748 ZSTD_resetCCtx_internal(ZSTD_CCtx* zc, ZSTD_CCtx_params const* params, U64 const pledgedSrcSize, size_t const loadedDictSize, ZSTD_compResetPolicy_e const crp, ZSTD_buffered_policy_e const zbuff) ZSTD_resetCCtx_internal() argument
1946 ZSTD_shouldAttachDict(const ZSTD_CDict* cdict, const ZSTD_CCtx_params* params, U64 pledgedSrcSize) ZSTD_shouldAttachDict() argument
1962 ZSTD_resetCCtx_byAttachingCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict, ZSTD_CCtx_params params, U64 pledgedSrcSize, ZSTD_buffered_policy_e zbuff) ZSTD_resetCCtx_byAttachingCDict() argument
2022 ZSTD_resetCCtx_byCopyingCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict, ZSTD_CCtx_params params, U64 pledgedSrcSize, ZSTD_buffered_policy_e zbuff) ZSTD_resetCCtx_byCopyingCDict() argument
2104 ZSTD_resetCCtx_usingCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict, const ZSTD_CCtx_params* params, U64 pledgedSrcSize, ZSTD_buffered_policy_e zbuff) ZSTD_resetCCtx_usingCDict() argument
2130 ZSTD_copyCCtx_internal(ZSTD_CCtx* dstCCtx, const ZSTD_CCtx* srcCCtx, ZSTD_frameParameters fParams, U64 pledgedSrcSize, ZSTD_buffered_policy_e zbuff) ZSTD_copyCCtx_internal() argument
2207 ZSTD_copyCCtx(ZSTD_CCtx* dstCCtx, const ZSTD_CCtx* srcCCtx, unsigned long long pledgedSrcSize) ZSTD_copyCCtx() argument
3921 ZSTD_writeFrameHeader(void* dst, size_t dstCapacity, const ZSTD_CCtx_params* params, U64 pledgedSrcSize, U32 dictID) ZSTD_writeFrameHeader() argument
4398 ZSTD_compressBegin_internal(ZSTD_CCtx* cctx, const void* dict, size_t dictSize, ZSTD_dictContentType_e dictContentType, ZSTD_dictTableLoadMethod_e dtlm, const ZSTD_CDict* cdict, const ZSTD_CCtx_params* params, U64 pledgedSrcSize, ZSTD_buffered_policy_e zbuff) ZSTD_compressBegin_internal() argument
4442 ZSTD_compressBegin_advanced_internal(ZSTD_CCtx* cctx, const void* dict, size_t dictSize, ZSTD_dictContentType_e dictContentType, ZSTD_dictTableLoadMethod_e dtlm, const ZSTD_CDict* cdict, const ZSTD_CCtx_params* params, unsigned long long pledgedSrcSize) ZSTD_compressBegin_advanced_internal() argument
4462 ZSTD_compressBegin_advanced(ZSTD_CCtx* cctx, const void* dict, size_t dictSize, ZSTD_parameters params, unsigned long long pledgedSrcSize) ZSTD_compressBegin_advanced() argument
4938 ZSTD_compressBegin_usingCDict_internal( ZSTD_CCtx* const cctx, const ZSTD_CDict* const cdict, ZSTD_frameParameters const fParams, unsigned long long const pledgedSrcSize) ZSTD_compressBegin_usingCDict_internal() argument
4979 ZSTD_compressBegin_usingCDict_advanced( ZSTD_CCtx* const cctx, const ZSTD_CDict* const cdict, ZSTD_frameParameters const fParams, unsigned long long const pledgedSrcSize) ZSTD_compressBegin_usingCDict_advanced() argument
5069 ZSTD_getCParamMode(ZSTD_CDict const* cdict, ZSTD_CCtx_params const* params, U64 pledgedSrcSize) ZSTD_getCParamMode() argument
5085 U64 const pledgedSrcSize = (pss==0) ? ZSTD_CONTENTSIZE_UNKNOWN : pss; ZSTD_resetCStream() local
5096 ZSTD_initCStream_internal(ZSTD_CStream* zcs, const void* dict, size_t dictSize, const ZSTD_CDict* cdict, const ZSTD_CCtx_params* params, unsigned long long pledgedSrcSize) ZSTD_initCStream_internal() argument
5118 ZSTD_initCStream_usingCDict_advanced(ZSTD_CStream* zcs, const ZSTD_CDict* cdict, ZSTD_frameParameters fParams, unsigned long long pledgedSrcSize) ZSTD_initCStream_usingCDict_advanced() argument
5153 U64 const pledgedSrcSize = (pss==0 && params.fParams.contentSizeFlag==0) ? ZSTD_CONTENTSIZE_UNKNOWN : pss; ZSTD_initCStream_advanced() local
5178 U64 const pledgedSrcSize = (pss==0) ? ZSTD_CONTENTSIZE_UNKNOWN : pss; ZSTD_initCStream_srcSize() local
5455 { U64 const pledgedSrcSize = cctx->pledgedSrcSizePlusOne - 1; ZSTD_CCtx_init_compressStream2() local
[all...]
H A Dzstd_compress_internal.h1343 const ZSTD_CCtx_params* params, unsigned long long pledgedSrcSize);
1359 unsigned long long pledgedSrcSize);
/kernel/linux/linux-6.6/include/linux/
H A Dzstd_lib.h469 * Note 1 : pledgedSrcSize==0 actually means zero, aka an empty frame.
472 * Note 2 : pledgedSrcSize is only valid once, for the next frame.
479 ZSTDLIB_API size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize);
1998 * with a few restrictions (windowLog, pledgedSrcSize, nbWorkers, jobSize, and overlapLog are not updated).
2176 * ZSTD_CCtx_setPledgedSrcSize(zcs, pledgedSrcSize);
2178 * pledgedSrcSize must be correct. If it is not known at init time, use
2186 unsigned long long pledgedSrcSize);
2212 * ZSTD_CCtx_setPledgedSrcSize(zcs, pledgedSrcSize);
2216 * pledgedSrcSize must be correct.
2224 unsigned long long pledgedSrcSize);
[all...]
/kernel/linux/linux-5.10/lib/zstd/
H A Dcompress.c348 size_t ZSTD_copyCCtx(ZSTD_CCtx *dstCCtx, const ZSTD_CCtx *srcCCtx, unsigned long long pledgedSrcSize) in ZSTD_copyCCtx() argument
356 params.fParams.contentSizeFlag = (pledgedSrcSize > 0); in ZSTD_copyCCtx()
357 ZSTD_resetCCtx_advanced(dstCCtx, params, pledgedSrcSize, ZSTDcrp_noMemset); in ZSTD_copyCCtx()
2431 static size_t ZSTD_writeFrameHeader(void *dst, size_t dstCapacity, ZSTD_parameters params, U64 pledgedSrcSize, U32 dictID) in ZSTD_writeFrameHeader() argument
2437 U32 const singleSegment = params.fParams.contentSizeFlag && (windowSize >= pledgedSrcSize); in ZSTD_writeFrameHeader()
2440 params.fParams.contentSizeFlag ? (pledgedSrcSize >= 256) + (pledgedSrcSize >= 65536 + 256) + (pledgedSrcSize >= 0xFFFFFFFFU) : 0; /* 0-3 */ in ZSTD_writeFrameHeader()
2472 op[pos++] = (BYTE)(pledgedSrcSize); in ZSTD_writeFrameHeader()
2475 ZSTD_writeLE16(op + pos, (U16)(pledgedSrcSize in ZSTD_writeFrameHeader()
2738 ZSTD_compressBegin_internal(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, ZSTD_parameters params, U64 pledgedSrcSize) ZSTD_compressBegin_internal() argument
2747 ZSTD_compressBegin_advanced(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, ZSTD_parameters params, unsigned long long pledgedSrcSize) ZSTD_compressBegin_advanced() argument
2914 ZSTD_compressBegin_usingCDict(ZSTD_CCtx *cctx, const ZSTD_CDict *cdict, unsigned long long pledgedSrcSize) ZSTD_compressBegin_usingCDict() argument
2967 U64 pledgedSrcSize; global() member
3026 ZSTD_resetCStream_internal(ZSTD_CStream *zcs, unsigned long long pledgedSrcSize) ZSTD_resetCStream_internal() argument
3047 ZSTD_resetCStream(ZSTD_CStream *zcs, unsigned long long pledgedSrcSize) ZSTD_resetCStream() argument
3055 ZSTD_initCStream_advanced(ZSTD_CStream *zcs, const void *dict, size_t dictSize, ZSTD_parameters params, unsigned long long pledgedSrcSize) ZSTD_initCStream_advanced() argument
3092 ZSTD_initCStream(ZSTD_parameters params, unsigned long long pledgedSrcSize, void *workspace, size_t workspaceSize) ZSTD_initCStream() argument
3105 ZSTD_initCStream_usingCDict(const ZSTD_CDict *cdict, unsigned long long pledgedSrcSize, void *workspace, size_t workspaceSize) ZSTD_initCStream_usingCDict() argument
[all...]

Completed in 21 milliseconds