Home
last modified time | relevance | path

Searched refs:zstrm (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/drivers/block/zram/
Dzcomp.c38 static void zcomp_strm_free(struct zcomp_strm *zstrm) in zcomp_strm_free() argument
40 if (!IS_ERR_OR_NULL(zstrm->tfm)) in zcomp_strm_free()
41 crypto_free_comp(zstrm->tfm); in zcomp_strm_free()
42 free_pages((unsigned long)zstrm->buffer, 1); in zcomp_strm_free()
43 kfree(zstrm); in zcomp_strm_free()
52 struct zcomp_strm *zstrm = kmalloc(sizeof(*zstrm), GFP_KERNEL); in zcomp_strm_alloc() local
53 if (!zstrm) in zcomp_strm_alloc()
56 zstrm->tfm = crypto_alloc_comp(comp->name, 0, 0); in zcomp_strm_alloc()
61 zstrm->buffer = (void *)__get_free_pages(GFP_KERNEL | __GFP_ZERO, 1); in zcomp_strm_alloc()
62 if (IS_ERR_OR_NULL(zstrm->tfm) || !zstrm->buffer) { in zcomp_strm_alloc()
[all …]
Dzcomp.h37 int zcomp_compress(struct zcomp_strm *zstrm,
40 int zcomp_decompress(struct zcomp_strm *zstrm,
Dzram_drv.c1030 struct zcomp_strm *zstrm = zcomp_stream_get(zram->comp); in __zram_bvec_read() local
1033 ret = zcomp_decompress(zstrm, src, size, dst); in __zram_bvec_read()
1088 struct zcomp_strm *zstrm; in __zram_bvec_write() local
1105 zstrm = zcomp_stream_get(zram->comp); in __zram_bvec_write()
1107 ret = zcomp_compress(zstrm, src, &comp_len); in __zram_bvec_write()
1173 src = zstrm->buffer; in __zram_bvec_write()