Searched refs:zctx (Results 1 – 5 of 5) sorted by relevance
/linux/drivers/block/zram/ |
H A D | backend_lz4hc.c | 29 struct lz4hc_ctx *zctx = ctx->context; in lz4hc_destroy() local 31 if (!zctx) in lz4hc_destroy() 34 kfree(zctx->dstrm); in lz4hc_destroy() 35 kfree(zctx->cstrm); in lz4hc_destroy() 36 vfree(zctx->mem); in lz4hc_destroy() 37 kfree(zctx); in lz4hc_destroy() 42 struct lz4hc_ctx *zctx; in lz4hc_create() local 44 zctx = kzalloc(sizeof(*zctx), GFP_KERNEL); in lz4hc_create() 45 if (!zctx) in lz4hc_create() 48 ctx->context = zctx; in lz4hc_create() [all …]
|
H A D | backend_lz4.c | 29 struct lz4_ctx *zctx = ctx->context; in lz4_destroy() local 31 if (!zctx) in lz4_destroy() 34 vfree(zctx->mem); in lz4_destroy() 35 kfree(zctx->dstrm); in lz4_destroy() 36 kfree(zctx->cstrm); in lz4_destroy() 37 kfree(zctx); in lz4_destroy() 42 struct lz4_ctx *zctx; in lz4_create() local 44 zctx = kzalloc(sizeof(*zctx), GFP_KERNEL); in lz4_create() 45 if (!zctx) in lz4_create() 48 ctx->context = zctx; in lz4_create() [all …]
|
H A D | backend_zstd.c | 103 struct zstd_ctx *zctx = ctx->context; in zstd_destroy() local 105 if (!zctx) in zstd_destroy() 115 if (zctx->cctx_mem) in zstd_destroy() 116 vfree(zctx->cctx_mem); in zstd_destroy() 118 zstd_free_cctx(zctx->cctx); in zstd_destroy() 120 if (zctx->dctx_mem) in zstd_destroy() 121 vfree(zctx->dctx_mem); in zstd_destroy() 123 zstd_free_dctx(zctx->dctx); in zstd_destroy() 125 kfree(zctx); in zstd_destroy() 130 struct zstd_ctx *zctx; in zstd_create() local [all …]
|
H A D | backend_deflate.c | 33 struct deflate_ctx *zctx = ctx->context; in deflate_destroy() local 35 if (!zctx) in deflate_destroy() 38 if (zctx->cctx.workspace) { in deflate_destroy() 39 zlib_deflateEnd(&zctx->cctx); in deflate_destroy() 40 vfree(zctx->cctx.workspace); in deflate_destroy() 42 if (zctx->dctx.workspace) { in deflate_destroy() 43 zlib_inflateEnd(&zctx->dctx); in deflate_destroy() 44 vfree(zctx->dctx.workspace); in deflate_destroy() 46 kfree(zctx); in deflate_destroy() 51 struct deflate_ctx *zctx; in deflate_create() local [all …]
|
/linux/crypto/ |
H A D | zstd.c | 154 struct zstd_ctx *zctx = ctx; in __zstd_compress() local 157 out_len = zstd_compress_cctx(zctx->cctx, dst, *dlen, src, slen, ¶ms); in __zstd_compress() 183 struct zstd_ctx *zctx = ctx; in __zstd_decompress() local 185 out_len = zstd_decompress_dctx(zctx->dctx, dst, *dlen, src, slen); in __zstd_decompress()
|