Home
last modified time | relevance | path

Searched refs:params (Results 1 – 6 of 6) sorted by relevance

/lib/zstd/
Dcompress.c69 ZSTD_parameters params; member
143 static ZSTD_parameters ZSTD_getParamsFromCCtx(const ZSTD_CCtx *cctx) { return cctx->params; } in ZSTD_getParamsFromCCtx()
217 static size_t ZSTD_continueCCtx(ZSTD_CCtx *cctx, ZSTD_parameters params, U64 frameContentSize) in ZSTD_continueCCtx() argument
220 cctx->params = params; in ZSTD_continueCCtx()
242 static size_t ZSTD_resetCCtx_advanced(ZSTD_CCtx *zc, ZSTD_parameters params, U64 frameContentSize, … in ZSTD_resetCCtx_advanced() argument
245 if (ZSTD_equivalentParams(params, zc->params)) { in ZSTD_resetCCtx_advanced()
248 return ZSTD_continueCCtx(zc, params, frameContentSize); in ZSTD_resetCCtx_advanced()
252 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_ABSOLUTEMAX, (size_t)1 << params.cParams.windowLog); in ZSTD_resetCCtx_advanced()
253 U32 const divider = (params.cParams.searchLength == 3) ? 3 : 4; in ZSTD_resetCCtx_advanced()
256 …size_t const chainSize = (params.cParams.strategy == ZSTD_fast) ? 0 : (1 << params.cParams.chainLo… in ZSTD_resetCCtx_advanced()
[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()
/lib/
Ddecompress_unzstd.c172 ZSTD_frameParams params; in __unzstd() local
247 ret = ZSTD_getFrameParams(&params, in.src, in.size); in __unzstd()
256 if (params.windowSize > ZSTD_WINDOWSIZE_MAX) { in __unzstd()
266 wksp_size = ZSTD_DStreamWorkspaceBound(params.windowSize); in __unzstd()
268 dstream = ZSTD_initDStream(params.windowSize, wksp, wksp_size); in __unzstd()
Drhashtable.c954 static size_t rounded_hashtable_size(const struct rhashtable_params *params) in rounded_hashtable_size() argument
958 if (params->nelem_hint) in rounded_hashtable_size()
959 retsize = max(roundup_pow_of_two(params->nelem_hint * 4 / 3), in rounded_hashtable_size()
960 (unsigned long)params->min_size); in rounded_hashtable_size()
963 (unsigned long)params->min_size); in rounded_hashtable_size()
1016 const struct rhashtable_params *params) in rhashtable_init() argument
1021 if ((!params->key_len && !params->obj_hashfn) || in rhashtable_init()
1022 (params->obj_hashfn && !params->obj_cmpfn)) in rhashtable_init()
1028 memcpy(&ht->p, params, sizeof(*params)); in rhashtable_init()
1030 if (params->min_size) in rhashtable_init()
[all …]
Dtest_rhashtable.c116 const struct rhashtable_params params) in insert_retry() argument
123 err = rhashtable_insert_fast(ht, &obj->node, params); in insert_retry()
/lib/kunit/
Dtest.c517 struct kunit_kmalloc_params *params = context; in kunit_kmalloc_init() local
519 res->data = kmalloc(params->size, params->gfp); in kunit_kmalloc_init()
533 struct kunit_kmalloc_params params = { in kunit_kmalloc() local
542 &params); in kunit_kmalloc()