Home
last modified time | relevance | path

Searched refs:cParams (Results 1 – 5 of 5) sorted by relevance

/linux-4.19.296/lib/zstd/
Dcompress.c90 size_t ZSTD_CCtxWorkspaceBound(ZSTD_compressionParameters cParams) in ZSTD_CCtxWorkspaceBound() argument
92 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_ABSOLUTEMAX, (size_t)1 << cParams.windowLog); in ZSTD_CCtxWorkspaceBound()
93 U32 const divider = (cParams.searchLength == 3) ? 3 : 4; in ZSTD_CCtxWorkspaceBound()
96 size_t const chainSize = (cParams.strategy == ZSTD_fast) ? 0 : (1 << cParams.chainLog); in ZSTD_CCtxWorkspaceBound()
97 size_t const hSize = ((size_t)1) << cParams.hashLog; in ZSTD_CCtxWorkspaceBound()
98 U32 const hashLog3 = (cParams.searchLength > 3) ? 0 : MIN(ZSTD_HASHLOG3_MAX, cParams.windowLog); in ZSTD_CCtxWorkspaceBound()
104 (((cParams.strategy == ZSTD_btopt) || (cParams.strategy == ZSTD_btopt2)) ? optSpace : 0); in ZSTD_CCtxWorkspaceBound()
148 size_t ZSTD_checkCParams(ZSTD_compressionParameters cParams) in ZSTD_checkCParams() argument
155 CLAMPCHECK(cParams.windowLog, ZSTD_WINDOWLOG_MIN, ZSTD_WINDOWLOG_MAX); in ZSTD_checkCParams()
156 CLAMPCHECK(cParams.chainLog, ZSTD_CHAINLOG_MIN, ZSTD_CHAINLOG_MAX); in ZSTD_checkCParams()
[all …]
Dzstd_opt.h240 const U32 hashLog = zc->params.cParams.hashLog; in ZSTD_insertBtAndGetAllMatches()
245 const U32 btLog = zc->params.cParams.chainLog - 1; in ZSTD_insertBtAndGetAllMatches()
418 const U32 maxSearches = 1U << ctx->params.cParams.searchLog; in ZSTD_compressBlock_opt_generic()
419 const U32 sufficient_len = ctx->params.cParams.targetLength; in ZSTD_compressBlock_opt_generic()
420 const U32 mls = ctx->params.cParams.searchLength; in ZSTD_compressBlock_opt_generic()
421 const U32 minMatch = (ctx->params.cParams.searchLength == 3) ? 3 : 4; in ZSTD_compressBlock_opt_generic()
715 const U32 maxSearches = 1U << ctx->params.cParams.searchLog; in ZSTD_compressBlock_opt_extDict_generic()
716 const U32 sufficient_len = ctx->params.cParams.targetLength; in ZSTD_compressBlock_opt_extDict_generic()
717 const U32 mls = ctx->params.cParams.searchLength; in ZSTD_compressBlock_opt_extDict_generic()
718 const U32 minMatch = (ctx->params.cParams.searchLength == 3) ? 3 : 4; in ZSTD_compressBlock_opt_extDict_generic()
/linux-4.19.296/include/linux/
Dzstd.h178 ZSTD_compressionParameters cParams; member
222 size_t ZSTD_CCtxWorkspaceBound(ZSTD_compressionParameters cParams);
360 size_t ZSTD_CDictWorkspaceBound(ZSTD_compressionParameters cParams);
532 size_t ZSTD_CStreamWorkspaceBound(ZSTD_compressionParameters cParams);
864 size_t ZSTD_checkCParams(ZSTD_compressionParameters cParams);
874 ZSTD_compressionParameters cParams, unsigned long long srcSize,
/linux-4.19.296/fs/btrfs/
Dzstd.c29 if (params.cParams.windowLog > ZSTD_BTRFS_MAX_WINDOWLOG) in zstd_get_btrfs_parameters()
30 params.cParams.windowLog = ZSTD_BTRFS_MAX_WINDOWLOG; in zstd_get_btrfs_parameters()
64 ZSTD_CStreamWorkspaceBound(params.cParams), in zstd_alloc_workspace()
/linux-4.19.296/crypto/
Dzstd.c44 const size_t wksp_size = ZSTD_CCtxWorkspaceBound(params.cParams); in zstd_comp_init()