Home
last modified time | relevance | path

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

/linux/drivers/block/zram/
A Dbackend_lz4hc.c31 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()
44 zctx = kzalloc(sizeof(*zctx), GFP_KERNEL); in lz4hc_create()
45 if (!zctx) in lz4hc_create()
51 if (!zctx->mem) in lz4hc_create()
54 zctx->dstrm = kzalloc(sizeof(*zctx->dstrm), GFP_KERNEL); in lz4hc_create()
55 if (!zctx->dstrm) in lz4hc_create()
[all …]
A Dbackend_lz4.c31 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()
44 zctx = kzalloc(sizeof(*zctx), GFP_KERNEL); in lz4_create()
45 if (!zctx) in lz4_create()
51 if (!zctx->mem) in lz4_create()
54 zctx->dstrm = kzalloc(sizeof(*zctx->dstrm), GFP_KERNEL); in lz4_create()
58 zctx->cstrm = kzalloc(sizeof(*zctx->cstrm), GFP_KERNEL); in lz4_create()
[all …]
A Dbackend_zstd.c105 if (!zctx) in zstd_destroy()
115 if (zctx->cctx_mem) in zstd_destroy()
125 kfree(zctx); in zstd_destroy()
134 zctx = kzalloc(sizeof(*zctx), GFP_KERNEL); in zstd_create()
135 if (!zctx) in zstd_create()
146 zctx->cctx = zstd_init_cctx(zctx->cctx_mem, sz); in zstd_create()
147 if (!zctx->cctx) in zstd_create()
155 zctx->dctx = zstd_init_dctx(zctx->dctx_mem, sz); in zstd_create()
156 if (!zctx->dctx) in zstd_create()
162 if (!zctx->cctx) in zstd_create()
[all …]
A Dbackend_deflate.c35 if (!zctx) in deflate_destroy()
38 if (zctx->cctx.workspace) { in deflate_destroy()
42 if (zctx->dctx.workspace) { in deflate_destroy()
46 kfree(zctx); in deflate_destroy()
51 struct deflate_ctx *zctx; in deflate_create() local
55 zctx = kzalloc(sizeof(*zctx), GFP_KERNEL); in deflate_create()
56 if (!zctx) in deflate_create()
59 ctx->context = zctx; in deflate_create()
62 if (!zctx->cctx.workspace) in deflate_create()
94 deflate = &zctx->cctx; in deflate_compress()
[all …]
/linux/crypto/
A Dzstd.c154 struct zstd_ctx *zctx = ctx; in __zstd_compress() local
157 out_len = zstd_compress_cctx(zctx->cctx, dst, *dlen, src, slen, &params); 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()

Completed in 14 milliseconds