Home
last modified time | relevance | path

Searched refs:customAlloc (Results 1 – 6 of 6) sorted by relevance

/linux/lib/zstd/common/
H A Dzstd_common.c58 if (customMem.customAlloc) in ZSTD_customMalloc()
59 return customMem.customAlloc(customMem.opaque, size); in ZSTD_customMalloc()
65 if (customMem.customAlloc) { in ZSTD_customCalloc()
68 void* const ptr = customMem.customAlloc(customMem.opaque, size); in ZSTD_customCalloc()
/linux/drivers/block/zram/
H A Dbackend_zstd.c75 zp->custom_mem.customAlloc = zstd_custom_alloc; in zstd_setup_params()
/linux/lib/zstd/decompress/
H A Dzstd_ddict.c147 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createDDict_advanced()
H A Dzstd_decompress.c280 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createDCtx_internal()
/linux/include/linux/
H A Dzstd_lib.h1568 typedef struct { ZSTD_allocFunction customAlloc; ZSTD_freeFunction customFree; void* opaque; } ZSTD… member
/linux/lib/zstd/compress/
H A Dzstd_compress.c110 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createCCtx_advanced()
295 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createCCtxParams_advanced()
4729 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createCDict_advanced_internal()
4787 if (!customMem.customAlloc ^ !customMem.customFree) return NULL; in ZSTD_createCDict_advanced2()