Searched refs:zctx (Results 1 – 4 of 4) sorted by relevance
43 struct lz4hc_ctx *zctx = ctx->context; in lz4hc_destroy() local45 if (!zctx) in lz4hc_destroy()48 kfree(zctx->dstrm); in lz4hc_destroy()49 kfree(zctx->cstrm); in lz4hc_destroy()50 vfree(zctx->mem); in lz4hc_destroy()51 kfree(zctx); in lz4hc_destroy()56 struct lz4hc_ctx *zctx; in lz4hc_create() local58 zctx = kzalloc_obj(*zctx); in lz4hc_create()59 if (!zctx) in lz4hc_create()62 ctx->context = zctx; in lz4hc_create()[all …]
62 struct lz4_ctx *zctx = ctx->context; in lz4_destroy() local64 if (!zctx) in lz4_destroy()67 vfree(zctx->mem); in lz4_destroy()68 kfree(zctx->dstrm); in lz4_destroy()69 kfree(zctx->cstrm); in lz4_destroy()70 kfree(zctx); in lz4_destroy()75 struct lz4_ctx *zctx; in lz4_create() local77 zctx = kzalloc_obj(*zctx); in lz4_create()78 if (!zctx) in lz4_create()81 ctx->context = zctx; in lz4_create()[all …]
100 struct zstd_ctx *zctx = ctx->context; in zstd_destroy() local102 if (!zctx) in zstd_destroy()112 if (zctx->cctx_mem) in zstd_destroy()113 vfree(zctx->cctx_mem); in zstd_destroy()115 zstd_free_cctx(zctx->cctx); in zstd_destroy()117 if (zctx->dctx_mem) in zstd_destroy()118 vfree(zctx->dctx_mem); in zstd_destroy()120 zstd_free_dctx(zctx->dctx); in zstd_destroy()122 kfree(zctx); in zstd_destroy()127 struct zstd_ctx *zctx; in zstd_create() local[all …]
56 struct deflate_ctx *zctx = ctx->context; in deflate_destroy() local58 if (!zctx) in deflate_destroy()61 if (zctx->cctx.workspace) { in deflate_destroy()62 zlib_deflateEnd(&zctx->cctx); in deflate_destroy()63 vfree(zctx->cctx.workspace); in deflate_destroy()65 if (zctx->dctx.workspace) { in deflate_destroy()66 zlib_inflateEnd(&zctx->dctx); in deflate_destroy()67 vfree(zctx->dctx.workspace); in deflate_destroy()69 kfree(zctx); in deflate_destroy()74 struct deflate_ctx *zctx; in deflate_create() local[all …]