Searched refs:zctx (Results 1 – 4 of 4) sorted by relevance
29 struct lz4hc_ctx *zctx = ctx->context; in lz4hc_destroy() local31 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() local44 zctx = kzalloc_obj(*zctx); in lz4hc_create()45 if (!zctx) in lz4hc_create()48 ctx->context = zctx; in lz4hc_create()[all …]
29 struct lz4_ctx *zctx = ctx->context; in lz4_destroy() local31 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() local44 zctx = kzalloc_obj(*zctx); in lz4_create()45 if (!zctx) in lz4_create()48 ctx->context = zctx; in lz4_create()[all …]
94 struct zstd_ctx *zctx = ctx->context; in zstd_destroy() local96 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 …]
35 struct deflate_ctx *zctx = ctx->context; in deflate_destroy() local37 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 …]