Home
last modified time | relevance | path

Searched refs:neededSpace (Results 1 - 3 of 3) sorted by relevance

/kernel/linux/linux-6.6/lib/zstd/decompress/
H A Dzstd_ddict.c190 size_t const neededSpace = sizeof(ZSTD_DDict) in ZSTD_initStaticDDict() local
196 if (sBufferSize < neededSpace) return NULL; in ZSTD_initStaticDDict()
/kernel/linux/linux-6.6/lib/zstd/compress/
H A Dzstd_compress.c1420 size_t const neededSpace = in ZSTD_estimateCCtxSize_usingCCtxParams_internal() local
1430 DEBUGLOG(5, "estimate workspace : %u", (U32)neededSpace); in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1431 return neededSpace; in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1795 size_t const neededSpace = in ZSTD_resetCCtx_internal() local
1801 FORWARD_IF_ERROR(neededSpace, "cctx size estimate failed!"); in ZSTD_resetCCtx_internal()
1806 int const workspaceTooSmall = ZSTD_cwksp_sizeof(ws) < neededSpace; in ZSTD_resetCCtx_internal()
1807 int const workspaceWasteful = ZSTD_cwksp_check_wasteful(ws, neededSpace); in ZSTD_resetCCtx_internal()
1809 DEBUGLOG(4, "Need %zu B workspace", neededSpace); in ZSTD_resetCCtx_internal()
1815 neededSpace >> 10); in ZSTD_resetCCtx_internal()
1822 FORWARD_IF_ERROR(ZSTD_cwksp_create(ws, neededSpace, z in ZSTD_resetCCtx_internal()
[all...]
/kernel/linux/linux-5.10/lib/zstd/
H A Dcompress.c267 size_t const neededSpace = tableSpace + (256 * sizeof(U32)) /* huffTable */ + tokenSpace + in ZSTD_resetCCtx_advanced() local
269 if (zc->workSpaceSize < neededSpace) { in ZSTD_resetCCtx_advanced()
271 zc->workSpace = ZSTD_malloc(neededSpace, zc->customMem); in ZSTD_resetCCtx_advanced()
274 zc->workSpaceSize = neededSpace; in ZSTD_resetCCtx_advanced()

Completed in 14 milliseconds