Home
last modified time | relevance | path

Searched refs:cctx (Results 1 – 20 of 20) sorted by relevance

/f-stack/freebsd/contrib/zstd/lib/compress/
H A Dzstd_compress.c85 ZSTD_memset(cctx, 0, sizeof(*cctx)); in ZSTD_initCCtx()
127 return cctx; in ZSTD_initStaticCCtx()
137 ZSTD_memset(&cctx->localDict, 0, sizeof(cctx->localDict)); in ZSTD_clearAllDicts()
155 ZSTDMT_freeCCtx(cctx->mtctx); cctx->mtctx = NULL; in ZSTD_freeCCtxContent()
157 ZSTD_cwksp_free(&cctx->workspace, cctx->customMem); in ZSTD_freeCCtxContent()
169 ZSTD_customFree(cctx, cctx->customMem); in ZSTD_freeCCtx()
181 (void)cctx; in ZSTD_sizeof_mtctx()
191 return (cctx->workspace.workspace == cctx ? 0 : sizeof(*cctx)) in ZSTD_sizeof_CCtx()
3023 ms, &cctx->workspace, &cctx->appliedParams, in ZSTD_compressContinue_internal()
3375 &cctx->ldmState, &cctx->workspace, &cctx->appliedParams, dict, dictSize, in ZSTD_compressBegin_internal()
[all …]
H A Dzstdmt_compress.c344 ZSTD_CCtx* cctx[1]; /* variable size */ member
373 cctxPool->cctx[0] = ZSTD_createCCtx_advanced(cMem); in ZSTDMT_createCCtxPool()
401 totalCCtxSize += ZSTD_sizeof_CCtx(cctxPool->cctx[u]); in ZSTDMT_sizeof_CCtxPool()
415 { ZSTD_CCtx* const cctx = cctxPool->cctx[cctxPool->availCCtx]; in ZSTDMT_getCCtx() local
417 return cctx; in ZSTDMT_getCCtx()
429 pool->cctx[pool->availCCtx++] = cctx; in ZSTDMT_releaseCCtx()
433 ZSTD_freeCCtx(cctx); in ZSTDMT_releaseCCtx()
665 ZSTD_CCtx* const cctx = ZSTDMT_getCCtx(job->cctxPool); in ZSTDMT_compressionJob() local
671 if (cctx==NULL) JOB_ERROR(ERROR(memory_allocation)); in ZSTDMT_compressionJob()
713 ZSTD_invalidateRepCodes(cctx); in ZSTDMT_compressionJob()
[all …]
H A Dzstd_compress_internal.h1162 size_t ZSTD_compressBegin_advanced_internal(ZSTD_CCtx* cctx,
1172 size_t ZSTD_compress_advanced_internal(ZSTD_CCtx* cctx,
1197 size_t ZSTD_referenceExternalSequences(ZSTD_CCtx* cctx, rawSeq* seq, size_t nbSeq);
/f-stack/freebsd/contrib/openzfs/module/zstd/lib/
H A Dzstd.h222 ZSTDLIB_API size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx);
232 ZSTDLIB_API size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx,
521 ZSTDLIB_API size_t ZSTD_compress2( ZSTD_CCtx* cctx,
707 ZSTDLIB_API size_t ZSTD_compressStream2( ZSTD_CCtx* cctx,
864 ZSTDLIB_API size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx,
980 ZSTDLIB_API size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx* cctx,
1035 ZSTDLIB_API size_t ZSTD_sizeof_CCtx(const ZSTD_CCtx* cctx);
1459 ZSTDLIB_API size_t ZSTD_compress_advanced(ZSTD_CCtx* cctx,
1614 ZSTD_CCtx* cctx, const ZSTD_CCtx_params* params);
1623 ZSTD_CCtx* cctx,
[all …]
H A Dzstd.c13156 memset(cctx, 0, sizeof(*cctx)); in ZSTD_initCCtx()
13206 ZSTD_free(cctx->localDict.dictBuffer, cctx->customMem); in ZSTD_clearAllDicts()
13208 memset(&cctx->localDict, 0, sizeof(cctx->localDict)); in ZSTD_clearAllDicts()
13226 ZSTDMT_freeCCtx(cctx->mtctx); cctx->mtctx = NULL; in ZSTD_freeCCtxContent()
13228 ZSTD_cwksp_free(&cctx->workspace, cctx->customMem); in ZSTD_freeCCtxContent()
13240 ZSTD_free(cctx, cctx->customMem); in ZSTD_freeCCtx()
13262 return (cctx->workspace.workspace == cctx ? 0 : sizeof(*cctx)) in ZSTD_sizeof_CCtx()
15851 ms, &cctx->workspace, &cctx->appliedParams, in ZSTD_compressContinue_internal()
16192 &cctx->ldmState, &cctx->workspace, &cctx->appliedParams, cdict->dictContent, in ZSTD_compressBegin_internal()
16197 &cctx->ldmState, &cctx->workspace, &cctx->appliedParams, dict, dictSize, in ZSTD_compressBegin_internal()
[all …]
/f-stack/freebsd/contrib/zstd/examples/
H A Dstreaming_compression.c34 ZSTD_CCtx* const cctx = ZSTD_createCCtx(); in compressFile_orDie() local
35 CHECK(cctx != NULL, "ZSTD_createCCtx() failed!"); in compressFile_orDie()
40 CHECK_ZSTD( ZSTD_CCtx_setParameter(cctx, ZSTD_c_compressionLevel, cLevel) ); in compressFile_orDie()
41 CHECK_ZSTD( ZSTD_CCtx_setParameter(cctx, ZSTD_c_checksumFlag, 1) ); in compressFile_orDie()
42 ZSTD_CCtx_setParameter(cctx, ZSTD_c_nbWorkers, 4); in compressFile_orDie()
69 size_t const remaining = ZSTD_compressStream2(cctx, &output , &input, mode); in compressFile_orDie()
86 ZSTD_freeCCtx(cctx); in compressFile_orDie()
H A Dmultiple_streaming_compression.c28 ZSTD_CCtx* cctx; member
38 ress.cctx = ZSTD_createCCtx(); in createResources_orDie()
39 CHECK(ress.cctx != NULL, "ZSTD_createCCtx() failed!"); in createResources_orDie()
45 CHECK_ZSTD( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_compressionLevel, cLevel) ); in createResources_orDie()
46 CHECK_ZSTD( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_checksumFlag, 1) ); in createResources_orDie()
52 ZSTD_freeCCtx(ress.cctx); in freeResources()
67 CHECK_ZSTD( ZSTD_CCtx_reset(ress.cctx, ZSTD_reset_session_only) ); in compressFile_orDie()
82 size_t const remaining = ZSTD_compressStream2(ress.cctx, &output, &input, mode); in compressFile_orDie()
H A Dstreaming_memory_usage.c84 ZSTD_CCtx* const cctx = ZSTD_createCCtx(); in main() local
85 CHECK(cctx != NULL, "ZSTD_createCCtx() failed!"); in main()
86 CHECK_ZSTD( ZSTD_CCtx_setParametersUsingCCtxParams(cctx, cctxParams) ); in main()
91 CHECK_ZSTD( ZSTD_compressStream(cctx, &outBuff, &inBuff) ); in main()
92 size_t const remaining = ZSTD_endStream(cctx, &outBuff); in main()
116 size_t const cstreamSize = ZSTD_sizeof_CStream(cctx); in main()
132 ZSTD_freeCCtx(cctx); in main()
H A Dstreaming_compression_thread_pool.c46 ZSTD_CCtx* const cctx = ZSTD_createCCtx(); in compressFile_orDie() local
47 CHECK(cctx != NULL, "ZSTD_createCCtx() failed!"); in compressFile_orDie()
50 size_t r = ZSTD_CCtx_refThreadPool(cctx, args->pool); in compressFile_orDie()
57 CHECK_ZSTD( ZSTD_CCtx_setParameter(cctx, ZSTD_c_compressionLevel, args->cLevel) ); in compressFile_orDie()
58 CHECK_ZSTD( ZSTD_CCtx_setParameter(cctx, ZSTD_c_checksumFlag, 1) ); in compressFile_orDie()
59 ZSTD_CCtx_setParameter(cctx, ZSTD_c_nbWorkers, 16); in compressFile_orDie()
86 size_t const remaining = ZSTD_compressStream2(cctx, &output , &input, mode); in compressFile_orDie()
105 ZSTD_freeCCtx(cctx); in compressFile_orDie()
H A Dmultiple_simple_compression.c22 ZSTD_CCtx* cctx; member
52 ress.cctx = ZSTD_createCCtx(); in createResources_orDie()
53 CHECK(ress.cctx != NULL, "ZSTD_createCCtx() failed!"); in createResources_orDie()
61 ZSTD_freeCCtx(ress.cctx); /* never fails */ in freeResources()
74 …size_t const cSize = ZSTD_compressCCtx(ress.cctx, ress.cBuffer, ress.cBufferSize, ress.fBuffer, fS… in compressFile_orDie()
H A Ddictionary_compression.c43 ZSTD_CCtx* const cctx = ZSTD_createCCtx(); in compress() local
44 CHECK(cctx != NULL, "ZSTD_createCCtx() failed!"); in compress()
45 size_t const cSize = ZSTD_compress_usingCDict(cctx, cBuff, cBuffSize, fBuff, fSize, cdict); in compress()
53 ZSTD_freeCCtx(cctx); /* never fails */ in compress()
/f-stack/freebsd/contrib/zstd/lib/
H A Dzstd.h202 ZSTDLIB_API size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx);
212 ZSTDLIB_API size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx,
517 ZSTDLIB_API size_t ZSTD_compress2( ZSTD_CCtx* cctx,
706 ZSTDLIB_API size_t ZSTD_compressStream2( ZSTD_CCtx* cctx,
863 ZSTDLIB_API size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx,
979 ZSTDLIB_API size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx* cctx,
1034 ZSTDLIB_API size_t ZSTD_sizeof_CCtx(const ZSTD_CCtx* cctx);
1576 ZSTDLIB_API size_t ZSTD_compress_advanced(ZSTD_CCtx* cctx,
1870 ZSTD_CCtx* cctx, const ZSTD_CCtx_params* params);
1879 ZSTD_CCtx* cctx,
[all …]
/f-stack/freebsd/contrib/zstd/lib/deprecated/
H A Dzbuff.h73 ZBUFF_DEPRECATED("use ZSTD_freeCStream") size_t ZBUFF_freeCCtx(ZBUFF_CCtx* cctx);
75 ZBUFF_DEPRECATED("use ZSTD_initCStream") size_t ZBUFF_compressInit(ZBUFF_CCtx* cctx, int …
76 …D_initCStream_usingDict") size_t ZBUFF_compressInitDictionary(ZBUFF_CCtx* cctx, const void* dict, …
78 ZBUFF_DEPRECATED("use ZSTD_compressStream") size_t ZBUFF_compressContinue(ZBUFF_CCtx* cctx, void* d…
79 ZBUFF_DEPRECATED("use ZSTD_flushStream") size_t ZBUFF_compressFlush(ZBUFF_CCtx* cctx, void* dst,…
80 ZBUFF_DEPRECATED("use ZSTD_endStream") size_t ZBUFF_compressEnd(ZBUFF_CCtx* cctx, void* dst, s…
/f-stack/freebsd/crypto/ccp/
H A Dccp_hardware.c459 struct ccp_completion_ctx *cctx; in ccp_intr_handle_error() local
523 cctx->callback_fn(qp, cctx->session, cctx->callback_arg, errno); in ccp_intr_handle_error()
524 cctx->callback_fn = NULL; in ccp_intr_handle_error()
569 cctx->callback_fn(qp, cctx->session, in ccp_intr_run_completions()
570 cctx->callback_arg, 0); in ccp_intr_run_completions()
571 cctx->callback_fn = NULL; in ccp_intr_run_completions()
879 if (cctx != NULL) in ccp_passthrough()
880 memcpy(&qp->completions_ring[qp->cq_tail], cctx, sizeof(*cctx)); in ccp_passthrough()
1298 cctx); in ccp_do_hmac()
1435 sizeof(*cctx)); in ccp_do_xts()
[all …]
/f-stack/freebsd/contrib/openzfs/module/zstd/
H A Dzfs_zstd.c372 ZSTD_CCtx *cctx; in zfs_zstd_compress() local
386 cctx = ZSTD_createCCtx_advanced(zstd_malloc); in zfs_zstd_compress()
392 if (!cctx) { in zfs_zstd_compress()
398 ZSTD_CCtx_setParameter(cctx, ZSTD_c_compressionLevel, zstd_level); in zfs_zstd_compress()
401 ZSTD_CCtx_setParameter(cctx, ZSTD_c_format, ZSTD_f_zstd1_magicless); in zfs_zstd_compress()
407 ZSTD_CCtx_setParameter(cctx, ZSTD_c_checksumFlag, 0); in zfs_zstd_compress()
408 ZSTD_CCtx_setParameter(cctx, ZSTD_c_contentSizeFlag, 0); in zfs_zstd_compress()
410 c_len = ZSTD_compress2(cctx, in zfs_zstd_compress()
415 ZSTD_freeCCtx(cctx); in zfs_zstd_compress()
/f-stack/freebsd/contrib/zstd/programs/
H A Dbenchzstd.c202 ZSTD_CCtx* cctx; member
235 ZSTD_CCtx* const cctx = (ZSTD_CCtx*)addArgs; in local_defaultCompress() local
236 return ZSTD_compress2(cctx, dstBuffer, dstSize, srcBuffer, srcSize); in local_defaultCompress()
313 ZSTD_CCtx* cctx, ZSTD_DCtx* dctx, in BMK_benchMemAdvancedNoAlloc() argument
324 assert(cctx != NULL); assert(dctx != NULL); in BMK_benchMemAdvancedNoAlloc()
404 cbp.benchPayload = cctx; in BMK_benchMemAdvancedNoAlloc()
415 cctxprep.cctx = cctx; in BMK_benchMemAdvancedNoAlloc()
585 ZSTD_CCtx* const cctx = ZSTD_createCCtx(); in BMK_benchMemAdvanced() local
600 !cctx || !dctx || in BMK_benchMemAdvanced()
615 cctx, dctx, in BMK_benchMemAdvanced()
[all …]
H A Dfileio.c897 ZSTD_CStream* cctx; member
933 ress.cctx = ZSTD_createCCtx(); in FIO_createCResources()
934 if (ress.cctx == NULL) in FIO_createCResources()
964 CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_compressionLevel, cLevel) ); in FIO_createCResources()
992 CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_nbWorkers, prefs->nbWorkers) ); in FIO_createCResources()
993 CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_jobSize, prefs->blockSize) ); in FIO_createCResources()
998 CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_rsyncable, prefs->rsyncable) ); in FIO_createCResources()
1015 ZSTD_freeCStream(ress->cctx); /* never fails */ in FIO_freeCResources()
1306 CHECK(ZSTD_CCtx_setPledgedSrcSize(ress.cctx, fileSize)); in FIO_compressZstdFrame()
1309 CHECK( ZSTD_CCtx_setPledgedSrcSize(ress.cctx, prefs->streamSrcSize) ); in FIO_compressZstdFrame()
[all …]
/f-stack/app/nginx-1.16.1/src/core/
H A Dngx_resolver.c2957 if (cctx == NULL) { in ngx_resolver_resolve_srv_names()
2963 cctx->data = ctx; in ngx_resolver_resolve_srv_names()
2964 cctx->srvs = &srvs[i]; in ngx_resolver_resolve_srv_names()
2970 srvs[i].ctx = cctx; in ngx_resolver_resolve_srv_names()
2999 r = cctx->resolver; in ngx_resolver_srv_names_handler()
3000 ctx = cctx->data; in ngx_resolver_srv_names_handler()
3001 srv = cctx->srvs; in ngx_resolver_srv_names_handler()
3004 ctx->async |= cctx->async; in ngx_resolver_srv_names_handler()
3007 srv->state = cctx->state; in ngx_resolver_srv_names_handler()
3009 if (cctx->naddrs) { in ngx_resolver_srv_names_handler()
[all …]
/f-stack/freebsd/contrib/zstd/lib/dictBuilder/
H A Dcover.c794 ZSTD_CCtx *cctx; in COVER_checkTotalCompressedSize() local
811 cctx = ZSTD_createCCtx(); in COVER_checkTotalCompressedSize()
814 if (!dst || !cctx || !cdict) { in COVER_checkTotalCompressedSize()
822 cctx, dst, dstCapacity, samples + offsets[i], in COVER_checkTotalCompressedSize()
831 ZSTD_freeCCtx(cctx); in COVER_checkTotalCompressedSize()
/f-stack/freebsd/contrib/zstd/lib/common/
H A Dzstd_internal.h452 void ZSTD_invalidateRepCodes(ZSTD_CCtx* cctx); /* zstdmt, adaptive_compression (shouldn't get thi…