/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() argument 58 if (customMem.customAlloc) in ZSTD_customMalloc() 59 return customMem.customAlloc(customMem.opaque, size); in ZSTD_customMalloc() 63 void* ZSTD_customCalloc(size_t size, ZSTD_customMem customMem) in ZSTD_customCalloc() argument 65 if (customMem.customAlloc) { in ZSTD_customCalloc() 68 void* const ptr = customMem.customAlloc(customMem.opaque, size); in ZSTD_customCalloc() 75 void ZSTD_customFree(void* ptr, ZSTD_customMem customMem) in ZSTD_customFree() argument 78 if (customMem in ZSTD_customFree() [all...] |
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-5.10/lib/zstd/ |
H A D | zstd_common.c | 69 void *ZSTD_malloc(size_t size, ZSTD_customMem customMem) { return customMem.customAlloc(customMem.opaque, size); } in ZSTD_malloc() argument 71 void ZSTD_free(void *ptr, ZSTD_customMem customMem) in ZSTD_free() argument 74 customMem.customFree(customMem.opaque, ptr); in ZSTD_free()
|
H A D | decompress.c | 97 ZSTD_customMem customMem; member 126 ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem) in ZSTD_createDCtx_advanced() argument 130 if (!customMem.customAlloc || !customMem.customFree) in ZSTD_createDCtx_advanced() 133 dctx = (ZSTD_DCtx *)ZSTD_malloc(sizeof(ZSTD_DCtx), customMem); in ZSTD_createDCtx_advanced() 136 memcpy(&dctx->customMem, &customMem, sizeof(customMem)); in ZSTD_createDCtx_advanced() 151 ZSTD_free(dctx, dctx->customMem); in ZSTD_freeDCtx() 2040 static ZSTD_DDict *ZSTD_createDDict_advanced(const void *dict, size_t dictSize, unsigned byReference, ZSTD_customMem customMem) in ZSTD_createDDict_advanced() argument 2177 ZSTD_customMem customMem; global() member 2192 ZSTD_createDStream_advanced(ZSTD_customMem customMem) ZSTD_createDStream_advanced() argument [all...] |
H A D | compress.c | 75 ZSTD_customMem customMem; member 109 static ZSTD_CCtx *ZSTD_createCCtx_advanced(ZSTD_customMem customMem) in ZSTD_createCCtx_advanced() argument 112 if (!customMem.customAlloc || !customMem.customFree) in ZSTD_createCCtx_advanced() 114 cctx = (ZSTD_CCtx *)ZSTD_malloc(sizeof(ZSTD_CCtx), customMem); in ZSTD_createCCtx_advanced() 118 cctx->customMem = customMem; in ZSTD_createCCtx_advanced() 127 cctx->workSpace = ZSTD_stackAllocAll(cctx->customMem.opaque, &cctx->workSpaceSize); in ZSTD_initCCtx() 136 ZSTD_free(cctx->workSpace, cctx->customMem); in ZSTD_freeCCtx() 137 ZSTD_free(cctx, cctx->customMem); in ZSTD_freeCCtx() 2847 ZSTD_createCDict_advanced(const void *dictBuffer, size_t dictSize, unsigned byReference, ZSTD_parameters params, ZSTD_customMem customMem) ZSTD_createCDict_advanced() argument 2970 ZSTD_customMem customMem; global() member 2982 ZSTD_createCStream_advanced(ZSTD_customMem customMem) ZSTD_createCStream_advanced() argument [all...] |
H A D | zstd_internal.h | 235 void *ZSTD_malloc(size_t size, ZSTD_customMem customMem); 236 void ZSTD_free(void *ptr, ZSTD_customMem customMem);
|
/kernel/linux/linux-6.6/lib/zstd/decompress/ |
H A D | zstd_ddict.c | 145 ZSTD_customMem customMem) in ZSTD_createDDict_advanced() 147 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createDDict_advanced() 149 { ZSTD_DDict* const ddict = (ZSTD_DDict*) ZSTD_customMalloc(sizeof(ZSTD_DDict), customMem); in ZSTD_createDDict_advanced() 151 ddict->cMem = customMem; in ZSTD_createDDict_advanced() 142 ZSTD_createDDict_advanced(const void* dict, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType, ZSTD_customMem customMem) ZSTD_createDDict_advanced() argument
|
H A D | zstd_decompress.c | 123 static size_t ZSTD_DDictHashSet_expand(ZSTD_DDictHashSet* hashSet, ZSTD_customMem customMem) { in ZSTD_DDictHashSet_expand() argument 125 const ZSTD_DDict** newTable = (const ZSTD_DDict**)ZSTD_customCalloc(sizeof(ZSTD_DDict*) * newTableSize, customMem); in ZSTD_DDictHashSet_expand() 140 ZSTD_customFree((void*)oldTable, customMem); in ZSTD_DDictHashSet_expand() 170 static ZSTD_DDictHashSet* ZSTD_createDDictHashSet(ZSTD_customMem customMem) { in ZSTD_createDDictHashSet() argument 171 ZSTD_DDictHashSet* ret = (ZSTD_DDictHashSet*)ZSTD_customMalloc(sizeof(ZSTD_DDictHashSet), customMem); in ZSTD_createDDictHashSet() 175 ret->ddictPtrTable = (const ZSTD_DDict**)ZSTD_customCalloc(DDICT_HASHSET_TABLE_BASE_SIZE * sizeof(ZSTD_DDict*), customMem); in ZSTD_createDDictHashSet() 177 ZSTD_customFree(ret, customMem); in ZSTD_createDDictHashSet() 188 static void ZSTD_freeDDictHashSet(ZSTD_DDictHashSet* hashSet, ZSTD_customMem customMem) { in ZSTD_freeDDictHashSet() argument 191 ZSTD_customFree((void*)hashSet->ddictPtrTable, customMem); in ZSTD_freeDDictHashSet() 194 ZSTD_customFree(hashSet, customMem); in ZSTD_freeDDictHashSet() 201 ZSTD_DDictHashSet_addDDict(ZSTD_DDictHashSet* hashSet, const ZSTD_DDict* ddict, ZSTD_customMem customMem) ZSTD_DDictHashSet_addDDict() argument 279 ZSTD_createDCtx_internal(ZSTD_customMem customMem) ZSTD_createDCtx_internal() argument 290 ZSTD_createDCtx_advanced(ZSTD_customMem customMem) ZSTD_createDCtx_advanced() argument 1514 ZSTD_createDStream_advanced(ZSTD_customMem customMem) ZSTD_createDStream_advanced() argument [all...] |
H A D | zstd_decompress_internal.h | 151 ZSTD_customMem customMem; member
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | zstd_lib.h | 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 customMem); 2133 * Memory is allocated as per ZSTD_DCtx::customMem.
|
/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() argument 509 void* workspace = ZSTD_customMalloc(size, customMem); in ZSTD_cwksp_create() 516 MEM_STATIC void ZSTD_cwksp_free(ZSTD_cwksp* ws, ZSTD_customMem customMem) { in ZSTD_cwksp_free() argument 520 ZSTD_customFree(ptr, customMem); in ZSTD_cwksp_free()
|
H A D | zstd_compress.c | 80 ZSTD_customMem customMem; member 98 cctx->customMem = memManager; in ZSTD_initCCtx() 106 ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem) in ZSTD_createCCtx_advanced() argument 110 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createCCtx_advanced() 111 { ZSTD_CCtx* const cctx = (ZSTD_CCtx*)ZSTD_customMalloc(sizeof(ZSTD_CCtx), customMem); in ZSTD_createCCtx_advanced() 113 ZSTD_initCCtx(cctx, customMem); in ZSTD_createCCtx_advanced() 147 ZSTD_customFree(cctx->localDict.dictBuffer, cctx->customMem); in ZSTD_clearAllDicts() 166 ZSTD_cwksp_free(&cctx->workspace, cctx->customMem); in ZSTD_freeCCtxContent() 178 ZSTD_customFree(cctx, cctx->customMem); in ZSTD_freeCCtx() 291 ZSTD_createCCtxParams_advanced( ZSTD_customMem customMem) ZSTD_createCCtxParams_advanced() argument 4722 ZSTD_createCDict_advanced_internal(size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_compressionParameters cParams, ZSTD_paramSwitch_e useRowMatchFinder, U32 enableDedicatedDictSearch, ZSTD_customMem customMem) ZSTD_createCDict_advanced_internal() argument 4758 ZSTD_createCDict_advanced(const void* dictBuffer, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType, ZSTD_compressionParameters cParams, ZSTD_customMem customMem) ZSTD_createCDict_advanced() argument 4775 ZSTD_createCDict_advanced2( const void* dict, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType, const ZSTD_CCtx_params* originalCctxParams, ZSTD_customMem customMem) ZSTD_createCDict_advanced2() argument 5048 ZSTD_createCStream_advanced(ZSTD_customMem customMem) ZSTD_createCStream_advanced() argument [all...] |
H A D | zstd_compress_internal.h | 326 ZSTD_customMem customMem; member 374 ZSTD_customMem customMem; member
|