Home
last modified time | relevance | path

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

/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstdmt_compress.c897 static size_t ZSTDMT_expandJobsTable (ZSTDMT_CCtx* mtctx, U32 nbWorkers) { in ZSTDMT_expandJobsTable() argument
899 if (nbJobs > mtctx->jobIDMask+1) { /* need more job capacity */ in ZSTDMT_expandJobsTable()
900 ZSTDMT_freeJobsTable(mtctx->jobs, mtctx->jobIDMask+1, mtctx->cMem); in ZSTDMT_expandJobsTable()
901 mtctx->jobIDMask = 0; in ZSTDMT_expandJobsTable()
902 mtctx->jobs = ZSTDMT_createJobsTable(&nbJobs, mtctx->cMem); in ZSTDMT_expandJobsTable()
903 if (mtctx->jobs==NULL) return ERROR(memory_allocation); in ZSTDMT_expandJobsTable()
905 mtctx->jobIDMask = nbJobs - 1; in ZSTDMT_expandJobsTable()
920 ZSTDMT_CCtx* mtctx; in ZSTDMT_createCCtx_advanced_internal() local
931 mtctx = (ZSTDMT_CCtx*) ZSTD_customCalloc(sizeof(ZSTDMT_CCtx), cMem); in ZSTDMT_createCCtx_advanced_internal()
932 if (!mtctx) return NULL; in ZSTDMT_createCCtx_advanced_internal()
[all …]
H A Dzstdmt_compress.h56 size_t ZSTDMT_freeCCtx(ZSTDMT_CCtx* mtctx);
58 size_t ZSTDMT_sizeof_CCtx(ZSTDMT_CCtx* mtctx);
62 size_t ZSTDMT_nextInputSizeHint(const ZSTDMT_CCtx* mtctx);
72 size_t ZSTDMT_initCStream_internal(ZSTDMT_CCtx* mtctx,
84 size_t ZSTDMT_compressStream_generic(ZSTDMT_CCtx* mtctx,
95 size_t ZSTDMT_toFlushNow(ZSTDMT_CCtx* mtctx);
100 void ZSTDMT_updateCParams_whileCompressing(ZSTDMT_CCtx* mtctx, const ZSTD_CCtx_params* cctxParams);
106 ZSTD_frameProgression ZSTDMT_getFrameProgression(ZSTDMT_CCtx* mtctx);
H A Dzstd_compress.c170 ZSTDMT_freeCCtx(cctx->mtctx); cctx->mtctx = NULL; in ZSTD_freeCCtxContent()
194 return ZSTDMT_sizeof_CCtx(cctx->mtctx); in ZSTD_sizeof_mtctx()
1622 return ZSTDMT_getFrameProgression(cctx->mtctx); in ZSTD_getFrameProgression()
1646 return ZSTDMT_toFlushNow(cctx->mtctx); in ZSTD_toFlushNow()
5499 assert(cctx->mtctx != NULL); in ZSTD_nextInputSizeHint_MTorST()
5500 return ZSTDMT_nextInputSizeHint(cctx->mtctx); in ZSTD_nextInputSizeHint_MTorST()
5589 if (cctx->mtctx == NULL) { in ZSTD_CCtx_init_compressStream2()
5592 … cctx->mtctx = ZSTDMT_createCCtx_advanced((U32)params.nbWorkers, cctx->customMem, cctx->pool); in ZSTD_CCtx_init_compressStream2()
5593 RETURN_ERROR_IF(cctx->mtctx == NULL, memory_allocation, "NULL pointer!"); in ZSTD_CCtx_init_compressStream2()
5598 cctx->mtctx, in ZSTD_CCtx_init_compressStream2()
[all …]
H A Dzstd_compress_internal.h422 ZSTDMT_CCtx* mtctx; member
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_compress.c143 ZSTDMT_freeCCtx(cctx->mtctx); cctx->mtctx = NULL; in ZSTD_freeCCtxContent()
167 return ZSTDMT_sizeof_CCtx(cctx->mtctx); in ZSTD_sizeof_mtctx()
1238 return ZSTDMT_getFrameProgression(cctx->mtctx); in ZSTD_getFrameProgression()
1262 return ZSTDMT_toFlushNow(cctx->mtctx); in ZSTD_toFlushNow()
3949 assert(cctx->mtctx != NULL); in ZSTD_nextInputSizeHint_MTorST()
3950 return ZSTDMT_nextInputSizeHint(cctx->mtctx); in ZSTD_nextInputSizeHint_MTorST()
3994 if (cctx->mtctx == NULL) { in ZSTD_compressStream2()
3997 cctx->mtctx = ZSTDMT_createCCtx_advanced((U32)params.nbWorkers, cctx->customMem); in ZSTD_compressStream2()
3998 RETURN_ERROR_IF(cctx->mtctx == NULL, memory_allocation, "NULL pointer!"); in ZSTD_compressStream2()
4003 cctx->mtctx, in ZSTD_compressStream2()
[all …]
H A Dzstd_compress_internal.h284 ZSTDMT_CCtx* mtctx; member