Lines Matching refs:ws

126     ZSTD_cwksp ws;  in ZSTD_initStaticCCtx()  local
130 ZSTD_cwksp_init(&ws, workspace, workspaceSize, ZSTD_cwksp_static_alloc); in ZSTD_initStaticCCtx()
132 cctx = (ZSTD_CCtx*)ZSTD_cwksp_reserve_object(&ws, sizeof(ZSTD_CCtx)); in ZSTD_initStaticCCtx()
136 ZSTD_cwksp_move(&cctx->workspace, &ws); in ZSTD_initStaticCCtx()
1912 ZSTD_cwksp* ws, in ZSTD_reset_matchState() argument
1932 ZSTD_cwksp_mark_tables_dirty(ws); in ZSTD_reset_matchState()
1940 assert(!ZSTD_cwksp_reserve_failed(ws)); /* check that allocation hasn't already failed */ in ZSTD_reset_matchState()
1942 ZSTD_cwksp_clear_tables(ws); in ZSTD_reset_matchState()
1946 ms->hashTable = (U32*)ZSTD_cwksp_reserve_table(ws, hSize * sizeof(U32)); in ZSTD_reset_matchState()
1947 ms->chainTable = (U32*)ZSTD_cwksp_reserve_table(ws, chainSize * sizeof(U32)); in ZSTD_reset_matchState()
1948 ms->hashTable3 = (U32*)ZSTD_cwksp_reserve_table(ws, h3Size * sizeof(U32)); in ZSTD_reset_matchState()
1949 RETURN_ERROR_IF(ZSTD_cwksp_reserve_failed(ws), memory_allocation, in ZSTD_reset_matchState()
1955 ZSTD_cwksp_clean_tables(ws); in ZSTD_reset_matchState()
1964 ms->tagTable = (BYTE*) ZSTD_cwksp_reserve_aligned_init_once(ws, tagTableSize); in ZSTD_reset_matchState()
1968 ms->tagTable = (BYTE*) ZSTD_cwksp_reserve_aligned64(ws, tagTableSize); in ZSTD_reset_matchState()
1982 … ms->opt.litFreq = (unsigned*)ZSTD_cwksp_reserve_aligned64(ws, (1<<Litbits) * sizeof(unsigned)); in ZSTD_reset_matchState()
1983 … ms->opt.litLengthFreq = (unsigned*)ZSTD_cwksp_reserve_aligned64(ws, (MaxLL+1) * sizeof(unsigned)); in ZSTD_reset_matchState()
1984 …ms->opt.matchLengthFreq = (unsigned*)ZSTD_cwksp_reserve_aligned64(ws, (MaxML+1) * sizeof(unsigned)… in ZSTD_reset_matchState()
1985 … ms->opt.offCodeFreq = (unsigned*)ZSTD_cwksp_reserve_aligned64(ws, (MaxOff+1) * sizeof(unsigned)); in ZSTD_reset_matchState()
1986 …ms->opt.matchTable = (ZSTD_match_t*)ZSTD_cwksp_reserve_aligned64(ws, ZSTD_OPT_SIZE * sizeof(ZSTD_m… in ZSTD_reset_matchState()
1987 …ms->opt.priceTable = (ZSTD_optimal_t*)ZSTD_cwksp_reserve_aligned64(ws, ZSTD_OPT_SIZE * sizeof(ZSTD… in ZSTD_reset_matchState()
1992 RETURN_ERROR_IF(ZSTD_cwksp_reserve_failed(ws), memory_allocation, in ZSTD_reset_matchState()
2033 ZSTD_cwksp* const ws = &zc->workspace; in ZSTD_resetCCtx_internal() local
2080 if (!zc->staticSize) ZSTD_cwksp_bump_oversized_duration(ws, 0); in ZSTD_resetCCtx_internal()
2083 int const workspaceTooSmall = ZSTD_cwksp_sizeof(ws) < neededSpace; in ZSTD_resetCCtx_internal()
2084 int const workspaceWasteful = ZSTD_cwksp_check_wasteful(ws, neededSpace); in ZSTD_resetCCtx_internal()
2091 ZSTD_cwksp_sizeof(ws) >> 10, in ZSTD_resetCCtx_internal()
2098 ZSTD_cwksp_free(ws, zc->customMem); in ZSTD_resetCCtx_internal()
2099 FORWARD_IF_ERROR(ZSTD_cwksp_create(ws, neededSpace, zc->customMem), ""); in ZSTD_resetCCtx_internal()
2105 assert(ZSTD_cwksp_check_available(ws, 2 * sizeof(ZSTD_compressedBlockState_t))); in ZSTD_resetCCtx_internal()
2106 …tate.prevCBlock = (ZSTD_compressedBlockState_t*) ZSTD_cwksp_reserve_object(ws, sizeof(ZSTD_compres… in ZSTD_resetCCtx_internal()
2108 …tate.nextCBlock = (ZSTD_compressedBlockState_t*) ZSTD_cwksp_reserve_object(ws, sizeof(ZSTD_compres… in ZSTD_resetCCtx_internal()
2110 zc->tmpWorkspace = ZSTD_cwksp_reserve_object(ws, TMP_WORKSPACE_SIZE); in ZSTD_resetCCtx_internal()
2115 ZSTD_cwksp_clear(ws); in ZSTD_resetCCtx_internal()
2138 ws, in ZSTD_resetCCtx_internal()
2145 …zc->seqStore.sequencesStart = (SeqDef*)ZSTD_cwksp_reserve_aligned64(ws, maxNbSeq * sizeof(SeqDef)); in ZSTD_resetCCtx_internal()
2151 …zc->ldmState.hashTable = (ldmEntry_t*)ZSTD_cwksp_reserve_aligned64(ws, ldmHSize * sizeof(ldmEntry_… in ZSTD_resetCCtx_internal()
2153 … zc->ldmSequences = (rawSeq*)ZSTD_cwksp_reserve_aligned64(ws, maxNbLdmSeq * sizeof(rawSeq)); in ZSTD_resetCCtx_internal()
2165 … (ZSTD_Sequence*)ZSTD_cwksp_reserve_aligned64(ws, maxNbExternalSeq * sizeof(ZSTD_Sequence)); in ZSTD_resetCCtx_internal()
2173 zc->seqStore.litStart = ZSTD_cwksp_reserve_buffer(ws, blockSize + WILDCOPY_OVERLENGTH); in ZSTD_resetCCtx_internal()
2178 zc->inBuff = (char*)ZSTD_cwksp_reserve_buffer(ws, buffInSize); in ZSTD_resetCCtx_internal()
2180 zc->outBuff = (char*)ZSTD_cwksp_reserve_buffer(ws, buffOutSize); in ZSTD_resetCCtx_internal()
2188 zc->ldmState.bucketOffsets = ZSTD_cwksp_reserve_buffer(ws, numBuckets); in ZSTD_resetCCtx_internal()
2195 zc->seqStore.llCode = ZSTD_cwksp_reserve_buffer(ws, maxNbSeq * sizeof(BYTE)); in ZSTD_resetCCtx_internal()
2196 zc->seqStore.mlCode = ZSTD_cwksp_reserve_buffer(ws, maxNbSeq * sizeof(BYTE)); in ZSTD_resetCCtx_internal()
2197 zc->seqStore.ofCode = ZSTD_cwksp_reserve_buffer(ws, maxNbSeq * sizeof(BYTE)); in ZSTD_resetCCtx_internal()
2199 …BUGLOG(3, "wksp: finished allocating, %zd bytes remain available", ZSTD_cwksp_available_space(ws)); in ZSTD_resetCCtx_internal()
2200 assert(ZSTD_cwksp_estimated_space_within_bounds(ws, neededSpace)); in ZSTD_resetCCtx_internal()
4441 ZSTD_cwksp* ws, in ZSTD_overflowCorrectIfNeeded() argument
4453 ZSTD_cwksp_mark_tables_dirty(ws); in ZSTD_overflowCorrectIfNeeded()
4455 ZSTD_cwksp_mark_tables_clean(ws); in ZSTD_overflowCorrectIfNeeded()
4818 ZSTD_cwksp* ws, in ZSTD_loadDictionaryContent() argument
4891 ZSTD_overflowCorrectIfNeeded(ms, ws, params, ip, iend); in ZSTD_loadDictionaryContent()
5077 ZSTD_cwksp* ws, in ZSTD_loadZstdDictionary() argument
5100 ms, NULL, ws, params, dictPtr, dictContentSize, dtlm, tfp), ""); in ZSTD_loadZstdDictionary()
5111 ZSTD_cwksp* ws, in ZSTD_compress_insertDictionary() argument
5129 return ZSTD_loadDictionaryContent(ms, ls, ws, params, dict, dictSize, dtlm, tfp); in ZSTD_compress_insertDictionary()
5135 ms, ls, ws, params, dict, dictSize, dtlm, tfp); in ZSTD_compress_insertDictionary()
5143 bs, ms, ws, params, dict, dictSize, dtlm, tfp, workspace); in ZSTD_compress_insertDictionary()
5508 ZSTD_cwksp ws; in ZSTD_createCDict_advanced_internal() local
5516 ZSTD_cwksp_init(&ws, workspace, workspaceSize, ZSTD_cwksp_dynamic_alloc); in ZSTD_createCDict_advanced_internal()
5518 cdict = (ZSTD_CDict*)ZSTD_cwksp_reserve_object(&ws, sizeof(ZSTD_CDict)); in ZSTD_createCDict_advanced_internal()
5520 ZSTD_cwksp_move(&cdict->workspace, &ws); in ZSTD_createCDict_advanced_internal()
5666 ZSTD_cwksp ws; in ZSTD_initStaticCDict() local
5667 ZSTD_cwksp_init(&ws, workspace, workspaceSize, ZSTD_cwksp_static_alloc); in ZSTD_initStaticCDict()
5668 cdict = (ZSTD_CDict*)ZSTD_cwksp_reserve_object(&ws, sizeof(ZSTD_CDict)); in ZSTD_initStaticCDict()
5670 ZSTD_cwksp_move(&cdict->workspace, &ws); in ZSTD_initStaticCDict()