/linux-6.1.9/fs/squashfs/ |
D | zstd_wrapper.c | 31 struct workspace *wksp = kmalloc(sizeof(*wksp), GFP_KERNEL); in zstd_init() local 33 if (wksp == NULL) in zstd_init() 35 wksp->window_size = max_t(size_t, in zstd_init() 37 wksp->mem_size = zstd_dstream_workspace_bound(wksp->window_size); in zstd_init() 38 wksp->mem = vmalloc(wksp->mem_size); in zstd_init() 39 if (wksp->mem == NULL) in zstd_init() 42 return wksp; in zstd_init() 46 kfree(wksp); in zstd_init() 53 struct workspace *wksp = strm; in zstd_free() local 55 if (wksp) in zstd_free() [all …]
|
/linux-6.1.9/lib/zstd/decompress/ |
D | huf_decompress.c | 154 HUF_ReadDTableX1_Workspace* wksp = (HUF_ReadDTableX1_Workspace*)workSpace; in HUF_readDTableX1_wksp_bmi2() local 156 DEBUG_STATIC_ASSERT(HUF_DECOMPRESS_WORKSPACE_SIZE >= sizeof(*wksp)); in HUF_readDTableX1_wksp_bmi2() 157 if (sizeof(*wksp) > wkspSize) return ERROR(tableLog_tooLarge); in HUF_readDTableX1_wksp_bmi2() 162 …readStats_wksp(wksp->huffWeight, HUF_SYMBOLVALUE_MAX + 1, wksp->rankVal, &nbSymbols, &tableLog, sr… in HUF_readDTableX1_wksp_bmi2() 192 nextRankStart += wksp->rankVal[n]; in HUF_readDTableX1_wksp_bmi2() 193 wksp->rankStart[n] = curr; in HUF_readDTableX1_wksp_bmi2() 198 size_t const w = wksp->huffWeight[n+u]; in HUF_readDTableX1_wksp_bmi2() 199 wksp->symbols[wksp->rankStart[w]++] = (BYTE)(n+u); in HUF_readDTableX1_wksp_bmi2() 203 size_t const w = wksp->huffWeight[n]; in HUF_readDTableX1_wksp_bmi2() 204 wksp->symbols[wksp->rankStart[w]++] = (BYTE)n; in HUF_readDTableX1_wksp_bmi2() [all …]
|
D | zstd_decompress_block.h | 58 unsigned tableLog, void* wksp, size_t wkspSize,
|
D | zstd_decompress_block.c | 371 unsigned tableLog, void* wksp, size_t wkspSize) in ZSTD_buildFSETable_body() argument 377 U16* symbolNext = (U16*)wksp; in ZSTD_buildFSETable_body() 491 unsigned tableLog, void* wksp, size_t wkspSize) in ZSTD_buildFSETable_body_default() argument 494 baseValue, nbAdditionalBits, tableLog, wksp, wkspSize); in ZSTD_buildFSETable_body_default() 501 unsigned tableLog, void* wksp, size_t wkspSize) in ZSTD_buildFSETable_body_bmi2() argument 504 baseValue, nbAdditionalBits, tableLog, wksp, wkspSize); in ZSTD_buildFSETable_body_bmi2() 511 unsigned tableLog, void* wksp, size_t wkspSize, int bmi2) in ZSTD_buildFSETable() argument 516 baseValue, nbAdditionalBits, tableLog, wksp, wkspSize); in ZSTD_buildFSETable() 522 baseValue, nbAdditionalBits, tableLog, wksp, wkspSize); in ZSTD_buildFSETable() 534 int ddictIsCold, int nbSeq, U32* wksp, size_t wkspSize, in ZSTD_buildSeqTable() argument [all …]
|
/linux-6.1.9/lib/ |
D | decompress_unzstd.c | 128 void *wksp = large_malloc(wksp_size); in decompress_single() local 129 zstd_dctx *dctx = zstd_init_dctx(wksp, wksp_size); in decompress_single() 158 if (wksp != NULL) in decompress_single() 159 large_free(wksp); in decompress_single() 175 void *wksp = NULL; in __unzstd() local 267 wksp = large_malloc(wksp_size); in __unzstd() 268 dstream = zstd_init_dstream(header.windowSize, wksp, wksp_size); in __unzstd() 325 if (wksp != NULL) in __unzstd() 326 large_free(wksp); in __unzstd()
|
/linux-6.1.9/lib/zstd/compress/ |
D | huf_compress.c | 75 HUF_CompressWeightsWksp* wksp = (HUF_CompressWeightsWksp*)workspace; in HUF_compressWeights() local 83 …{ unsigned const maxCount = HIST_count_simple(wksp->count, &maxSymbolValue, weightTable, wtSize)… in HUF_compressWeights() 89 …CHECK_F( FSE_normalizeCount(wksp->norm, tableLog, wksp->count, wtSize, maxSymbolValue, /* useLowPr… in HUF_compressWeights() 92 …{ CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), wksp->norm, maxSymbolValue, tableLog) … in HUF_compressWeights() 97 …CHECK_F( FSE_buildCTable_wksp(wksp->CTable, wksp->norm, maxSymbolValue, tableLog, wksp->scratchBuf… in HUF_compressWeights() 98 …_V_F(cSize, FSE_compress_usingCTable(op, (size_t)(oend - op), weightTable, wtSize, wksp->CTable) ); in HUF_compressWeights() 108 HUF_CompressWeightsWksp wksp; member 119 HUF_WriteCTableWksp* wksp = (HUF_WriteCTableWksp*)workspace; in HUF_writeCTable_wksp() local 126 wksp->bitsToWeight[0] = 0; in HUF_writeCTable_wksp() 128 wksp->bitsToWeight[n] = (BYTE)(huffLog + 1 - n); in HUF_writeCTable_wksp() [all …]
|
D | zstd_compress_sequences.c | 73 BYTE wksp[FSE_NCOUNTBOUND]; in ZSTD_NCountCost() local 77 return FSE_writeNCount(wksp, sizeof(wksp), norm, max, tableLog); in ZSTD_NCountCost() 237 U32 wksp[FSE_BUILD_CTABLE_WORKSPACE_SIZE_U32(MaxSeq, MaxFSELog)]; member 266 ZSTD_BuildCTableWksp* wksp = (ZSTD_BuildCTableWksp*)entropyWorkspace; in ZSTD_buildCTable() local 276 …FORWARD_IF_ERROR(FSE_normalizeCount(wksp->norm, tableLog, count, nbSeq_1, max, ZSTD_useLowProbCoun… in ZSTD_buildCTable() 277 …{ size_t const NCountSize = FSE_writeNCount(op, oend - op, wksp->norm, max, tableLog); /* over… in ZSTD_buildCTable() 279 …RWARD_IF_ERROR(FSE_buildCTable_wksp(nextCTable, wksp->norm, max, tableLog, wksp->wksp, sizeof(wksp… in ZSTD_buildCTable()
|
/linux-6.1.9/lib/zstd/common/ |
D | fse_decompress.c | 329 FSE_DecompressWksp* const wksp = (FSE_DecompressWksp*)workSpace; in FSE_decompress_wksp_body() local 332 if (wkspSize < sizeof(*wksp)) return ERROR(GENERIC); in FSE_decompress_wksp_body() 336 …size_t const NCountLength = FSE_readNCount_bmi2(wksp->ncount, &maxSymbolValue, &tableLog, istart, … in FSE_decompress_wksp_body() 345 workSpace = wksp->dtable + FSE_DTABLE_SIZE_U32(tableLog); in FSE_decompress_wksp_body() 346 wkspSize -= sizeof(*wksp) + FSE_DTABLE_SIZE(tableLog); in FSE_decompress_wksp_body() 348 …CHECK_F( FSE_buildDTable_internal(wksp->dtable, wksp->ncount, maxSymbolValue, tableLog, workSpace,… in FSE_decompress_wksp_body() 351 const void* ptr = wksp->dtable; in FSE_decompress_wksp_body() 356 …stMode) return FSE_decompress_usingDTable_generic(dst, dstCapacity, ip, cSrcSize, wksp->dtable, 1); in FSE_decompress_wksp_body() 357 return FSE_decompress_usingDTable_generic(dst, dstCapacity, ip, cSrcSize, wksp->dtable, 0); in FSE_decompress_wksp_body()
|
D | entropy_common.c | 256 U32 wksp[HUF_READ_STATS_WORKSPACE_SIZE_U32]; in HUF_readStats() local 257 …Weight, hwSize, rankStats, nbSymbolsPtr, tableLogPtr, src, srcSize, wksp, sizeof(wksp), /* bmi2 */… in HUF_readStats()
|