Home
last modified time | relevance | path

Searched refs:zctx (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/block/zram/
H A Dbackend_lz4hc.c29 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_obj(*zctx); in lz4hc_create()
45 if (!zctx) in lz4hc_create()
48 ctx->context = zctx; in lz4hc_create()
[all …]
H A Dbackend_lz4.c29 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_obj(*zctx); in lz4_create()
45 if (!zctx) in lz4_create()
48 ctx->context = zctx; in lz4_create()
[all …]
H A Dbackend_zstd.c94 struct zstd_ctx *zctx = ctx->context; in zstd_destroy() local
96 if (!zctx) in zstd_destroy()
106 if (zctx->cctx_mem) in zstd_destroy()
107 vfree(zctx->cctx_mem); in zstd_destroy()
109 zstd_free_cctx(zctx->cctx); in zstd_destroy()
111 if (zctx->dctx_mem) in zstd_destroy()
112 vfree(zctx->dctx_mem); in zstd_destroy()
114 zstd_free_dctx(zctx->dctx); in zstd_destroy()
116 kfree(zctx); in zstd_destroy()
121 struct zstd_ctx *zctx; in zstd_create() local
[all …]
H A Dbackend_deflate.c35 struct deflate_ctx *zctx = ctx->context; in deflate_destroy() local
37 if (!zctx) in deflate_destroy()
40 if (zctx->cctx.workspace) { in deflate_destroy()
41 zlib_deflateEnd(&zctx->cctx); in deflate_destroy()
42 vfree(zctx->cctx.workspace); in deflate_destroy()
44 if (zctx->dctx.workspace) { in deflate_destroy()
45 zlib_inflateEnd(&zctx->dctx); in deflate_destroy()
46 vfree(zctx->dctx.workspace); in deflate_destroy()
48 kfree(zctx); in deflate_destroy()
53 struct deflate_ctx *zctx; in deflate_create() local
[all …]