Searched refs:zstrm (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/drivers/block/zram/ |
D | zcomp.c | 36 static void zcomp_strm_free(struct zcomp_strm *zstrm) in zcomp_strm_free() argument 38 if (!IS_ERR_OR_NULL(zstrm->tfm)) in zcomp_strm_free() 39 crypto_free_comp(zstrm->tfm); in zcomp_strm_free() 40 free_pages((unsigned long)zstrm->buffer, 1); in zcomp_strm_free() 41 zstrm->tfm = NULL; in zcomp_strm_free() 42 zstrm->buffer = NULL; in zcomp_strm_free() 49 static int zcomp_strm_init(struct zcomp_strm *zstrm, struct zcomp *comp) in zcomp_strm_init() argument 51 zstrm->tfm = crypto_alloc_comp(comp->name, 0, 0); in zcomp_strm_init() 56 zstrm->buffer = (void *)__get_free_pages(GFP_KERNEL | __GFP_ZERO, 1); in zcomp_strm_init() 57 if (IS_ERR_OR_NULL(zstrm->tfm) || !zstrm->buffer) { in zcomp_strm_init() [all …]
|
D | zcomp.h | 36 int zcomp_compress(struct zcomp_strm *zstrm, 39 int zcomp_decompress(struct zcomp_strm *zstrm,
|
D | zram_drv.c | 1248 struct zcomp_strm *zstrm; in __zram_bvec_read() local 1287 zstrm = zcomp_stream_get(zram->comp); in __zram_bvec_read() 1297 ret = zcomp_decompress(zstrm, src, size, dst); in __zram_bvec_read() 1350 struct zcomp_strm *zstrm; in __zram_bvec_write() local 1366 zstrm = zcomp_stream_get(zram->comp); in __zram_bvec_write() 1368 ret = zcomp_compress(zstrm, src, &comp_len); in __zram_bvec_write() 1417 zstrm = zcomp_stream_get(zram->comp); in __zram_bvec_write() 1431 src = zstrm->buffer; in __zram_bvec_write()
|