Home
last modified time | relevance | path

Searched refs:workspace (Results 1 – 25 of 48) sorted by relevance

12

/kernel/linux/linux-5.10/fs/btrfs/
Dzlib.c26 struct workspace { struct
39 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_get_workspace() argument
41 workspace->level = level; in zlib_get_workspace()
48 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_free_workspace() local
50 kvfree(workspace->strm.workspace); in zlib_free_workspace()
51 kfree(workspace->buf); in zlib_free_workspace()
52 kfree(workspace); in zlib_free_workspace()
57 struct workspace *workspace; in zlib_alloc_workspace() local
60 workspace = kzalloc(sizeof(*workspace), GFP_KERNEL); in zlib_alloc_workspace()
61 if (!workspace) in zlib_alloc_workspace()
[all …]
Dzstd.c42 struct workspace { struct
89 static inline struct workspace *list_to_workspace(struct list_head *list) in list_to_workspace()
91 return container_of(list, struct workspace, list); in list_to_workspace()
116 struct workspace *victim = container_of(pos, struct workspace, in zstd_reclaim_timer_fn()
198 struct workspace *workspace; in zstd_cleanup_workspace_manager() local
204 workspace = container_of(wsm.idle_ws[i].next, in zstd_cleanup_workspace_manager()
205 struct workspace, list); in zstd_cleanup_workspace_manager()
206 list_del(&workspace->list); in zstd_cleanup_workspace_manager()
207 list_del(&workspace->lru_list); in zstd_cleanup_workspace_manager()
208 zstd_free_workspace(&workspace->list); in zstd_cleanup_workspace_manager()
[all …]
Dlzo.c57 struct workspace { struct
68 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_free_workspace() argument
70 kvfree(workspace->buf); in lzo_free_workspace()
71 kvfree(workspace->cbuf); in lzo_free_workspace()
72 kvfree(workspace->mem); in lzo_free_workspace()
73 kfree(workspace); in lzo_free_workspace()
78 struct workspace *workspace; in lzo_alloc_workspace() local
80 workspace = kzalloc(sizeof(*workspace), GFP_KERNEL); in lzo_alloc_workspace()
81 if (!workspace) in lzo_alloc_workspace()
84 workspace->mem = kvmalloc(LZO1X_MEM_COMPRESS, GFP_KERNEL); in lzo_alloc_workspace()
[all …]
Dcompression.c837 struct heuristic_ws *workspace; in free_heuristic_ws() local
839 workspace = list_entry(ws, struct heuristic_ws, list); in free_heuristic_ws()
841 kvfree(workspace->sample); in free_heuristic_ws()
842 kfree(workspace->bucket); in free_heuristic_ws()
843 kfree(workspace->bucket_b); in free_heuristic_ws()
844 kfree(workspace); in free_heuristic_ws()
921 struct list_head *workspace; in btrfs_init_workspace_manager() local
933 workspace = alloc_workspace(type, 0); in btrfs_init_workspace_manager()
934 if (IS_ERR(workspace)) { in btrfs_init_workspace_manager()
940 list_add(workspace, &wsm->idle_ws); in btrfs_init_workspace_manager()
[all …]
/kernel/linux/linux-5.10/lib/zstd/
Dzstd_common.c35 ZSTD_customMem ZSTD_initStack(void *workspace, size_t workspaceSize) in ZSTD_initStack() argument
37 ZSTD_customMem stackMem = {ZSTD_stackAlloc, ZSTD_stackFree, workspace}; in ZSTD_initStack()
38 ZSTD_stack *stack = (ZSTD_stack *)workspace; in ZSTD_initStack()
40 if (!workspace || workspaceSize < sizeof(ZSTD_stack) || workspace != ZSTD_PTR_ALIGN(workspace)) { in ZSTD_initStack()
45 stack->ptr = workspace; in ZSTD_initStack()
46 stack->end = (char *)workspace + workspaceSize; in ZSTD_initStack()
Dhuf.h104 …tx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, size_t workspac…
105 …sp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace,
107 …sp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace,
109 …sp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace,
130 …onst HUF_CElt *CTable, unsigned maxSymbolValue, unsigned huffLog, void *workspace, size_t workspac…
160 void *workspace, size_t workspaceSize);
164 …CTable, unsigned maxSymbolValue, const void *src, size_t srcSize, void *workspace, size_t workspac…
180 size_t HUF_readDTableX2_wksp(HUF_DTable *DTable, const void *src, size_t srcSize, void *workspace, …
181 size_t HUF_readDTableX4_wksp(HUF_DTable *DTable, const void *src, size_t srcSize, void *workspace, …
201 …tx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, size_t workspac…
[all …]
Dhuf_decompress.c90 size_t HUF_readDTableX2_wksp(HUF_DTable *DTable, const void *src, size_t srcSize, void *workspace, … in HUF_readDTableX2_wksp() argument
102 rankVal = (U32 *)workspace + spaceUsed32; in HUF_readDTableX2_wksp()
104 huffWeight = (BYTE *)((U32 *)workspace + spaceUsed32); in HUF_readDTableX2_wksp()
109 workspace = (U32 *)workspace + spaceUsed32; in HUF_readDTableX2_wksp()
115 …, HUF_SYMBOLVALUE_MAX + 1, rankVal, &nbSymbols, &tableLog, src, srcSize, workspace, workspaceSize); in HUF_readDTableX2_wksp()
232 …tx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, size_t workspac… in HUF_decompress1X2_DCtx_wksp() argument
236 size_t const hSize = HUF_readDTableX2_wksp(DCtx, cSrc, cSrcSize, workspace, workspaceSize); in HUF_decompress1X2_DCtx_wksp()
363 …tx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, size_t workspac… in HUF_decompress4X2_DCtx_wksp() argument
367 size_t const hSize = HUF_readDTableX2_wksp(dctx, cSrc, cSrcSize, workspace, workspaceSize); in HUF_decompress4X2_DCtx_wksp()
482 size_t HUF_readDTableX4_wksp(HUF_DTable *DTable, const void *src, size_t srcSize, void *workspace, … in HUF_readDTableX4_wksp() argument
[all …]
Dfse_decompress.c88 …t *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workspace, size_t workspac… in FSE_buildDTable_wksp() argument
92 U16 *symbolNext = (U16 *)workspace; in FSE_buildDTable_wksp()
287 … dstCapacity, const void *cSrc, size_t cSrcSize, unsigned maxLog, void *workspace, size_t workspac… in FSE_decompress_wksp() argument
301 dt = (FSE_DTable *)((U32 *)workspace + spaceUsed32); in FSE_decompress_wksp()
303 counting = (short *)((U32 *)workspace + spaceUsed32); in FSE_decompress_wksp()
308 workspace = (U32 *)workspace + spaceUsed32; in FSE_decompress_wksp()
322 CHECK_F(FSE_buildDTable_wksp(dt, counting, maxSymbolValue, tableLog, workspace, workspaceSize)); in FSE_decompress_wksp()
Dhuf_compress.c82 …oid *dst, size_t dstSize, const void *weightTable, size_t wtSize, void *workspace, size_t workspac… in HUF_compressWeights_wksp() argument
98 CTable = (FSE_CTable *)((U32 *)workspace + spaceUsed32); in HUF_compressWeights_wksp()
100 count = (U32 *)workspace + spaceUsed32; in HUF_compressWeights_wksp()
102 norm = (S16 *)((U32 *)workspace + spaceUsed32); in HUF_compressWeights_wksp()
107 workspace = (U32 *)workspace + spaceUsed32; in HUF_compressWeights_wksp()
133 CHECK_F(FSE_buildCTable_wksp(CTable, norm, maxSymbolValue, tableLog, workspace, workspaceSize)); in HUF_compressWeights_wksp()
152 …DstSize, const HUF_CElt *CTable, U32 maxSymbolValue, U32 huffLog, void *workspace, size_t workspac… in HUF_writeCTable_wksp() argument
161 bitsToWeight = (BYTE *)((U32 *)workspace + spaceUsed32); in HUF_writeCTable_wksp()
163 huffWeight = (BYTE *)((U32 *)workspace + spaceUsed32); in HUF_writeCTable_wksp()
168 workspace = (U32 *)workspace + spaceUsed32; in HUF_writeCTable_wksp()
[all …]
Ddecompress.c73 U64 workspace[HUF_DECOMPRESS_WORKSPACE_SIZE_U32 / 2]; member
141 ZSTD_DCtx *ZSTD_initDCtx(void *workspace, size_t workspaceSize) in ZSTD_initDCtx() argument
143 ZSTD_customMem const stackMem = ZSTD_initStack(workspace, workspaceSize); in ZSTD_initDCtx()
488 dctx->entropy.workspace, sizeof(dctx->entropy.workspace)) in ZSTD_decodeLiteralsBlock()
490 dctx->entropy.workspace, sizeof(dctx->entropy.workspace))))) in ZSTD_decodeLiteralsBlock()
753 …size_t srcSize, const FSE_decode_t4 *defaultTable, U32 flagRepeatTable, void *workspace, size_t wo… in ZSTD_buildSeqTable() argument
773 S16 *norm = (S16 *)workspace; in ZSTD_buildSeqTable()
778 workspace = (U32 *)workspace + spaceUsed32; in ZSTD_buildSeqTable()
786 FSE_buildDTable_wksp(DTableSpace, norm, max, tableLog, workspace, workspaceSize); in ZSTD_buildSeqTable()
837 … LL_defaultDTable, dctx->fseEntropy, dctx->entropy.workspace, sizeof(dctx->entropy.workspace)); in ZSTD_decodeSeqHeaders()
[all …]
Dentropy_common.c167 …*nbSymbolsPtr, U32 *tableLogPtr, const void *src, size_t srcSize, void *workspace, size_t workspac… in HUF_readStats_wksp() argument
197 …oSize = FSE_decompress_wksp(huffWeight, hwSize - 1, ip + 1, iSize, 6, workspace, workspaceSize); /… in HUF_readStats_wksp()
/kernel/linux/linux-5.10/fs/jffs2/
Dcompr_zlib.c45 def_strm.workspace = vmalloc(zlib_deflate_workspacesize(MAX_WBITS, in alloc_workspaces()
47 if (!def_strm.workspace) in alloc_workspaces()
52 inf_strm.workspace = vmalloc(zlib_inflate_workspacesize()); in alloc_workspaces()
53 if (!inf_strm.workspace) { in alloc_workspaces()
54 vfree(def_strm.workspace); in alloc_workspaces()
64 vfree(def_strm.workspace); in free_workspaces()
65 vfree(inf_strm.workspace); in free_workspaces()
/kernel/linux/linux-5.10/crypto/
Ddeflate.c47 stream->workspace = vzalloc(zlib_deflate_workspacesize( in deflate_comp_init()
49 if (!stream->workspace) { in deflate_comp_init()
67 vfree(stream->workspace); in deflate_comp_init()
76 stream->workspace = vzalloc(zlib_inflate_workspacesize()); in deflate_decomp_init()
77 if (!stream->workspace) { in deflate_decomp_init()
92 vfree(stream->workspace); in deflate_decomp_init()
99 vfree(ctx->comp_stream.workspace); in deflate_comp_exit()
105 vfree(ctx->decomp_stream.workspace); in deflate_decomp_exit()
/kernel/linux/linux-5.10/include/linux/
Dzstd.h240 ZSTD_CCtx *ZSTD_initCCtx(void *workspace, size_t workspaceSize);
283 ZSTD_DCtx *ZSTD_initDCtx(void *workspace, size_t workspaceSize);
384 ZSTD_parameters params, void *workspace, size_t workspaceSize);
439 void *workspace, size_t workspaceSize);
556 unsigned long long pledgedSrcSize, void *workspace,
572 unsigned long long pledgedSrcSize, void *workspace,
695 ZSTD_DStream *ZSTD_initDStream(size_t maxWindowSize, void *workspace,
710 const ZSTD_DDict *ddict, void *workspace, size_t workspaceSize);
/kernel/linux/linux-5.10/lib/zlib_inflate/
Dinfutil.c20 strm->workspace = kmalloc(zlib_inflate_workspacesize(), GFP_KERNEL); in zlib_inflate_blob()
21 if (strm->workspace == NULL) in zlib_inflate_blob()
44 kfree(strm->workspace); in zlib_inflate_blob()
Dinfutil.h37 #define WS(strm) ((struct inflate_workspace *)(strm->workspace))
/kernel/linux/linux-5.10/fs/cramfs/
Duncompress.c62 stream.workspace = vmalloc(zlib_inflate_workspacesize()); in cramfs_uncompress_init()
63 if (!stream.workspace) { in cramfs_uncompress_init()
78 vfree(stream.workspace); in cramfs_uncompress_exit()
/kernel/linux/linux-5.10/fs/squashfs/
Dzstd_wrapper.c23 struct workspace { struct
31 struct workspace *wksp = kmalloc(sizeof(*wksp), GFP_KERNEL); in zstd_init() argument
53 struct workspace *wksp = strm; in zstd_free()
65 struct workspace *wksp = strm; in zstd_uncompress()
Dzlib_wrapper.c29 stream->workspace = vmalloc(zlib_inflate_workspacesize()); in zlib_init()
30 if (stream->workspace == NULL) in zlib_init()
47 vfree(stream->workspace); in zlib_free()
/kernel/linux/linux-5.10/lib/
Ddecompress_inflate.c82 strm->workspace = malloc(flush ? zlib_inflate_workspacesize() : in __gunzip()
89 if (strm->workspace == NULL) { in __gunzip()
186 free(strm->workspace); in __gunzip()
/kernel/linux/linux-5.10/fs/pstore/
Dplatform.c783 char *unzipped, *workspace; in decompress_record() local
802 workspace = kmalloc(unzipped_len + record->ecc_notice_size, in decompress_record()
804 if (!workspace) in decompress_record()
809 workspace, &unzipped_len); in decompress_record()
812 kfree(workspace); in decompress_record()
817 memcpy(workspace + unzipped_len, record->buf + record->size, in decompress_record()
821 unzipped = kmemdup(workspace, unzipped_len + record->ecc_notice_size, in decompress_record()
823 kfree(workspace); in decompress_record()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
Dcudbg_zlib.c45 compress_stream.workspace = pdbg_init->workspace; in cudbg_compress_buff()
/kernel/linux/linux-5.10/drivers/net/ppp/
Dppp_deflate.c66 vfree(state->strm.workspace); in z_comp_free()
107 state->strm.workspace = vmalloc(zlib_deflate_workspacesize(-w_size, 8)); in z_comp_alloc()
108 if (state->strm.workspace == NULL) in z_comp_alloc()
283 vfree(state->strm.workspace); in z_decomp_free()
323 state->strm.workspace = vmalloc(zlib_inflate_workspacesize()); in z_decomp_alloc()
324 if (state->strm.workspace == NULL) in z_decomp_alloc()
/kernel/uniproton/doc/
Dgetting_started.md11 <li>进入到用户的工作目录,这里假设为/workspace/UniProton。</li>
12 <li>将UniProton的源码放在/workspace/UniProton目录下。</li>
/kernel/linux/linux-5.10/fs/f2fs/
Dcompress.c313 void *workspace; in zstd_init_compress_ctx() local
319 workspace = f2fs_kvmalloc(F2FS_I_SB(cc->inode), in zstd_init_compress_ctx()
321 if (!workspace) in zstd_init_compress_ctx()
324 stream = ZSTD_initCStream(params, 0, workspace, workspace_size); in zstd_init_compress_ctx()
329 kvfree(workspace); in zstd_init_compress_ctx()
333 cc->private = workspace; in zstd_init_compress_ctx()
394 void *workspace; in zstd_init_decompress_ctx() local
401 workspace = f2fs_kvmalloc(F2FS_I_SB(dic->inode), in zstd_init_decompress_ctx()
403 if (!workspace) in zstd_init_decompress_ctx()
406 stream = ZSTD_initDStream(max_window_size, workspace, workspace_size); in zstd_init_decompress_ctx()
[all …]

12