/kernel/linux/linux-5.10/lib/zstd/ |
H A D | zstd_common.c | 35 ZSTD_customMem ZSTD_initStack(void *workspace, size_t workspaceSize) in ZSTD_initStack() 37 ZSTD_customMem stackMem = {ZSTD_stackAlloc, ZSTD_stackFree, workspace}; in ZSTD_initStack() 41 ZSTD_customMem error = {NULL, NULL, NULL}; in ZSTD_initStack() 69 void *ZSTD_malloc(size_t size, ZSTD_customMem customMem) { return customMem.customAlloc(customMem.opaque, size); } in ZSTD_malloc() 71 void ZSTD_free(void *ptr, ZSTD_customMem customMem) in ZSTD_free()
|
H A D | zstd_internal.h | 233 } ZSTD_customMem; typedef 235 void *ZSTD_malloc(size_t size, ZSTD_customMem customMem); 236 void ZSTD_free(void *ptr, ZSTD_customMem customMem); 248 ZSTD_customMem ZSTD_initStack(void *workspace, size_t workspaceSize);
|
H A D | decompress.c | 97 ZSTD_customMem customMem; 126 ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem) in ZSTD_createDCtx_advanced() 143 ZSTD_customMem const stackMem = ZSTD_initStack(workspace, workspaceSize); in ZSTD_initDCtx() 1986 ZSTD_customMem cMem; 2040 static ZSTD_DDict *ZSTD_createDDict_advanced(const void *dict, size_t dictSize, unsigned byReference, ZSTD_customMem customMem) in ZSTD_createDDict_advanced() 2085 ZSTD_customMem const stackMem = ZSTD_initStack(workspace, workspaceSize); in ZSTD_initDDict() 2094 ZSTD_customMem const cMem = ddict->cMem; in ZSTD_freeDDict() 2177 ZSTD_customMem customMem; 2192 static ZSTD_DStream *ZSTD_createDStream_advanced(ZSTD_customMem customMem) in ZSTD_createDStream_advanced() 2203 memcpy(&zds->customMem, &customMem, sizeof(ZSTD_customMem)); in ZSTD_createDStream_advanced() [all...] |
H A D | compress.c | 75 ZSTD_customMem customMem; 109 static ZSTD_CCtx *ZSTD_createCCtx_advanced(ZSTD_customMem customMem) in ZSTD_createCCtx_advanced() 124 ZSTD_customMem const stackMem = ZSTD_initStack(workspace, workspaceSize); in ZSTD_initCCtx() 353 memcpy(&dstCCtx->customMem, &srcCCtx->customMem, sizeof(ZSTD_customMem)); in ZSTD_copyCCtx() 2847 static ZSTD_CDict *ZSTD_createCDict_advanced(const void *dictBuffer, size_t dictSize, unsigned byReference, ZSTD_parameters params, ZSTD_customMem customMem) in ZSTD_createCDict_advanced() 2895 ZSTD_customMem const stackMem = ZSTD_initStack(workspace, workspaceSize); in ZSTD_initCDict() 2904 ZSTD_customMem const cMem = cdict->refContext->customMem; in ZSTD_freeCDict() 2970 ZSTD_customMem customMem; 2982 ZSTD_CStream *ZSTD_createCStream_advanced(ZSTD_customMem customMem) in ZSTD_createCStream_advanced() 2993 memcpy(&zcs->customMem, &customMem, sizeof(ZSTD_customMem)); in ZSTD_createCStream_advanced() [all...] |
/kernel/linux/linux-6.6/lib/zstd/common/ |
H A D | zstd_common.c | 56 void* ZSTD_customMalloc(size_t size, ZSTD_customMem customMem) in ZSTD_customMalloc() 63 void* ZSTD_customCalloc(size_t size, ZSTD_customMem customMem) in ZSTD_customCalloc() 75 void ZSTD_customFree(void* ptr, ZSTD_customMem customMem) in ZSTD_customFree()
|
H A D | zstd_internal.h | 348 void* ZSTD_customMalloc(size_t size, ZSTD_customMem customMem); 349 void* ZSTD_customCalloc(size_t size, ZSTD_customMem customMem); 350 void ZSTD_customFree(void* ptr, ZSTD_customMem customMem);
|
/kernel/linux/linux-6.6/lib/zstd/decompress/ |
H A D | zstd_ddict.c | 40 ZSTD_customMem cMem; 145 ZSTD_customMem customMem) in ZSTD_createDDict_advanced() 169 ZSTD_customMem const allocator = { NULL, NULL, NULL }; in ZSTD_createDDict() 179 ZSTD_customMem const allocator = { NULL, NULL, NULL }; in ZSTD_createDDict_byReference() 212 { ZSTD_customMem const cMem = ddict->cMem; in ZSTD_freeDDict()
|
H A D | zstd_decompress.c | 123 static size_t ZSTD_DDictHashSet_expand(ZSTD_DDictHashSet* hashSet, ZSTD_customMem customMem) { in ZSTD_DDictHashSet_expand() 170 static ZSTD_DDictHashSet* ZSTD_createDDictHashSet(ZSTD_customMem customMem) { in ZSTD_createDDictHashSet() 188 static void ZSTD_freeDDictHashSet(ZSTD_DDictHashSet* hashSet, ZSTD_customMem customMem) { in ZSTD_freeDDictHashSet() 201 static size_t ZSTD_DDictHashSet_addDDict(ZSTD_DDictHashSet* hashSet, const ZSTD_DDict* ddict, ZSTD_customMem customMem) { in ZSTD_DDictHashSet_addDDict() 279 static ZSTD_DCtx* ZSTD_createDCtx_internal(ZSTD_customMem customMem) { in ZSTD_createDCtx_internal() 290 ZSTD_DCtx* ZSTD_createDCtx_advanced(ZSTD_customMem customMem) in ZSTD_createDCtx_advanced() 313 { ZSTD_customMem const cMem = dctx->customMem; in ZSTD_freeDCtx() 1514 ZSTD_DStream* ZSTD_createDStream_advanced(ZSTD_customMem customMem) in ZSTD_createDStream_advanced()
|
H A D | zstd_decompress_internal.h | 151 ZSTD_customMem customMem;
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | zstd_lib.h | 1563 * ZSTD_customMem is provided at creation time, using ZSTD_create*_advanced() variants listed below. 1568 typedef struct { ZSTD_allocFunction customAlloc; ZSTD_freeFunction customFree; void* opaque; } ZSTD_customMem; typedef 1571 ZSTD_customMem const ZSTD_defaultCMem = { NULL, NULL, NULL }; /*< this constant defers to stdlib's functions */ 1573 ZSTDLIB_STATIC_API ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem); 1574 ZSTDLIB_STATIC_API ZSTD_CStream* ZSTD_createCStream_advanced(ZSTD_customMem customMem); 1575 ZSTDLIB_STATIC_API ZSTD_DCtx* ZSTD_createDCtx_advanced(ZSTD_customMem customMem); 1576 ZSTDLIB_STATIC_API ZSTD_DStream* ZSTD_createDStream_advanced(ZSTD_customMem customMem); 1582 ZSTD_customMem customMem); 1608 ZSTD_customMem customMem); 1614 ZSTD_customMem customMe [all...] |
/kernel/linux/linux-6.6/lib/zstd/compress/ |
H A D | zstd_cwksp.h | 508 MEM_STATIC size_t ZSTD_cwksp_create(ZSTD_cwksp* ws, size_t size, ZSTD_customMem customMem) { in ZSTD_cwksp_create() 516 MEM_STATIC void ZSTD_cwksp_free(ZSTD_cwksp* ws, ZSTD_customMem customMem) { in ZSTD_cwksp_free()
|
H A D | zstd_compress_internal.h | 326 ZSTD_customMem customMem; 374 ZSTD_customMem customMem;
|
H A D | zstd_compress.c | 80 ZSTD_customMem customMem; 94 static void ZSTD_initCCtx(ZSTD_CCtx* cctx, ZSTD_customMem memManager) in ZSTD_initCCtx() 106 ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem) in ZSTD_createCCtx_advanced() 292 ZSTD_customMem customMem) in ZSTD_createCCtxParams_advanced() 2139 ZSTD_memcpy(&dstCCtx->customMem, &srcCCtx->customMem, sizeof(ZSTD_customMem)); in ZSTD_copyCCtx_internal() 4727 ZSTD_customMem customMem) in ZSTD_createCDict_advanced_internal() 4762 ZSTD_customMem customMem) in ZSTD_createCDict_advanced() 4780 ZSTD_customMem customMem) in ZSTD_createCDict_advanced2() 4850 { ZSTD_customMem const cMem = cdict->customMem; in ZSTD_freeCDict() 5048 ZSTD_CStream* ZSTD_createCStream_advanced(ZSTD_customMem customMe [all...] |