Home
last modified time | relevance | path

Searched refs:wksp (Results 1 – 9 of 9) sorted by relevance

/linux/fs/squashfs/
A Dzstd_wrapper.c31 struct workspace *wksp = kmalloc(sizeof(*wksp), GFP_KERNEL); in zstd_init() local
33 if (wksp == NULL) 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()
55 if (wksp) in zstd_free()
56 vfree(wksp->mem); in zstd_free()
57 kfree(wksp); in zstd_free()
[all …]
/linux/lib/zstd/decompress/
A Dhuf_decompress.c162 …readStats_wksp(wksp->huffWeight, HUF_SYMBOLVALUE_MAX + 1, wksp->rankVal, &nbSymbols, &tableLog, sr… in HUF_readDTableX1_wksp_bmi2()
199 wksp->symbols[wksp->rankStart[w]++] = (BYTE)(n+u); in HUF_readDTableX1_wksp_bmi2()
204 wksp->symbols[wksp->rankStart[w]++] = (BYTE)n; in HUF_readDTableX1_wksp_bmi2()
534 U32* rankVal = wksp; in HUF_fillDTableX2Level2()
576 U32* rankVal = wksp; in HUF_fillDTableX2()
582 wksp += HUF_TABLELOG_MAX + 1; in HUF_fillDTableX2()
643 ZSTD_memset(wksp->rankStats, 0, sizeof(wksp->rankStats)); in HUF_readDTableX2_wksp()
644 ZSTD_memset(wksp->rankStart0, 0, sizeof(wksp->rankStart0)); in HUF_readDTableX2_wksp()
650 …adStats_wksp(wksp->weightList, HUF_SYMBOLVALUE_MAX + 1, wksp->rankStats, &nbSymbols, &tableLog, sr… in HUF_readDTableX2_wksp()
702 wksp->rankStart0, wksp->rankVal, maxW, in HUF_readDTableX2_wksp()
[all …]
A Dzstd_decompress_block.c371 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 …]
A Dzstd_decompress_block.h58 unsigned tableLog, void* wksp, size_t wkspSize,
/linux/lib/
A Ddecompress_unzstd.c128 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/lib/zstd/compress/
A Dhuf_compress.c89 …CHECK_F( FSE_normalizeCount(wksp->norm, tableLog, wksp->count, wtSize, maxSymbolValue, /* useLowPr… in HUF_compressWeights()
97 …CHECK_F( FSE_buildCTable_wksp(wksp->CTable, wksp->norm, maxSymbolValue, tableLog, wksp->scratchBuf… 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()
130 wksp->huffWeight[n] = wksp->bitsToWeight[CTable[n].nbBits]; in HUF_writeCTable_wksp()
133 …ze, HUF_compressWeights(op+1, maxDstSize-1, wksp->huffWeight, maxSymbolValue, &wksp->wksp, sizeof( in HUF_writeCTable_wksp()
145 op[(n/2)+1] = (BYTE)((wksp->huffWeight[n] << 4) + wksp->huffWeight[n+1]); in HUF_writeCTable_wksp()
155 HUF_WriteCTableWksp wksp; in HUF_writeCTable() local
[all …]
A Dzstd_compress_sequences.c73 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/lib/zstd/common/
A Dfse_decompress.c329 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()
A Dentropy_common.c255 U32 wksp[HUF_READ_STATS_WORKSPACE_SIZE_U32]; in HUF_readStats() local
256 …Weight, hwSize, rankStats, nbSymbolsPtr, tableLogPtr, src, srcSize, wksp, sizeof(wksp), /* bmi2 */… in HUF_readStats()

Completed in 44 milliseconds