Home
last modified time | relevance | path

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

/drivers/block/zram/
Dzcomp.c37 static void zcomp_strm_free(struct zcomp_strm *zstrm) in zcomp_strm_free() argument
39 if (!IS_ERR_OR_NULL(zstrm->tfm)) in zcomp_strm_free()
40 crypto_free_comp(zstrm->tfm); in zcomp_strm_free()
41 vfree(zstrm->buffer); in zcomp_strm_free()
42 zstrm->tfm = NULL; in zcomp_strm_free()
43 zstrm->buffer = NULL; in zcomp_strm_free()
50 static int zcomp_strm_init(struct zcomp_strm *zstrm, struct zcomp *comp) in zcomp_strm_init() argument
52 zstrm->tfm = crypto_alloc_comp(comp->name, 0, 0); in zcomp_strm_init()
57 zstrm->buffer = vzalloc(2 * PAGE_SIZE); in zcomp_strm_init()
58 if (IS_ERR_OR_NULL(zstrm->tfm) || !zstrm->buffer) { in zcomp_strm_init()
[all …]
Dzcomp.h36 int zcomp_compress(struct zcomp_strm *zstrm,
39 int zcomp_decompress(struct zcomp_strm *zstrm,
Dzram_drv.c1315 struct zcomp_strm *zstrm; in zram_read_from_zspool() local
1338 zstrm = zcomp_stream_get(zram->comps[prio]); in zram_read_from_zspool()
1349 ret = zcomp_decompress(zstrm, src, size, dst); in zram_read_from_zspool()
1419 struct zcomp_strm *zstrm; in zram_write_page() local
1434 zstrm = zcomp_stream_get(zram->comps[ZRAM_PRIMARY_COMP]); in zram_write_page()
1436 ret = zcomp_compress(zstrm, src, &comp_len); in zram_write_page()
1486 zstrm = zcomp_stream_get(zram->comps[ZRAM_PRIMARY_COMP]); in zram_write_page()
1500 src = zstrm->buffer; in zram_write_page()
1578 struct zcomp_strm *zstrm = NULL; in zram_recompress() local
1621 zstrm = zcomp_stream_get(zram->comps[prio]); in zram_recompress()
[all …]