Home
last modified time | relevance | path

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

/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.c96 if (!zctx) in zstd_destroy()
106 if (zctx->cctx_mem) in zstd_destroy()
116 kfree(zctx); in zstd_destroy()
125 zctx = kzalloc(sizeof(*zctx), GFP_KERNEL); in zstd_create()
126 if (!zctx) in zstd_create()
137 zctx->cctx = zstd_init_cctx(zctx->cctx_mem, sz); in zstd_create()
138 if (!zctx->cctx) in zstd_create()
146 zctx->dctx = zstd_init_dctx(zctx->dctx_mem, sz); in zstd_create()
147 if (!zctx->dctx) in zstd_create()
153 if (!zctx->cctx) in zstd_create()
[all …]
A Dbackend_deflate.c37 if (!zctx) in deflate_destroy()
40 if (zctx->cctx.workspace) { in deflate_destroy()
44 if (zctx->dctx.workspace) { in deflate_destroy()
48 kfree(zctx); in deflate_destroy()
53 struct deflate_ctx *zctx; in deflate_create() local
57 zctx = kzalloc(sizeof(*zctx), GFP_KERNEL); in deflate_create()
58 if (!zctx) in deflate_create()
61 ctx->context = zctx; in deflate_create()
64 if (!zctx->cctx.workspace) in deflate_create()
96 deflate = &zctx->cctx; in deflate_compress()
[all …]

Completed in 8 milliseconds