zstrm              35 drivers/block/zram/zcomp.c static void zcomp_strm_free(struct zcomp_strm *zstrm)
zstrm              37 drivers/block/zram/zcomp.c 	if (!IS_ERR_OR_NULL(zstrm->tfm))
zstrm              38 drivers/block/zram/zcomp.c 		crypto_free_comp(zstrm->tfm);
zstrm              39 drivers/block/zram/zcomp.c 	free_pages((unsigned long)zstrm->buffer, 1);
zstrm              40 drivers/block/zram/zcomp.c 	kfree(zstrm);
zstrm              49 drivers/block/zram/zcomp.c 	struct zcomp_strm *zstrm = kmalloc(sizeof(*zstrm), GFP_KERNEL);
zstrm              50 drivers/block/zram/zcomp.c 	if (!zstrm)
zstrm              53 drivers/block/zram/zcomp.c 	zstrm->tfm = crypto_alloc_comp(comp->name, 0, 0);
zstrm              58 drivers/block/zram/zcomp.c 	zstrm->buffer = (void *)__get_free_pages(GFP_KERNEL | __GFP_ZERO, 1);
zstrm              59 drivers/block/zram/zcomp.c 	if (IS_ERR_OR_NULL(zstrm->tfm) || !zstrm->buffer) {
zstrm              60 drivers/block/zram/zcomp.c 		zcomp_strm_free(zstrm);
zstrm              61 drivers/block/zram/zcomp.c 		zstrm = NULL;
zstrm              63 drivers/block/zram/zcomp.c 	return zstrm;
zstrm             124 drivers/block/zram/zcomp.c int zcomp_compress(struct zcomp_strm *zstrm,
zstrm             143 drivers/block/zram/zcomp.c 	return crypto_comp_compress(zstrm->tfm,
zstrm             145 drivers/block/zram/zcomp.c 			zstrm->buffer, dst_len);
zstrm             148 drivers/block/zram/zcomp.c int zcomp_decompress(struct zcomp_strm *zstrm,
zstrm             153 drivers/block/zram/zcomp.c 	return crypto_comp_decompress(zstrm->tfm,
zstrm             161 drivers/block/zram/zcomp.c 	struct zcomp_strm *zstrm;
zstrm             166 drivers/block/zram/zcomp.c 	zstrm = zcomp_strm_alloc(comp);
zstrm             167 drivers/block/zram/zcomp.c 	if (IS_ERR_OR_NULL(zstrm)) {
zstrm             171 drivers/block/zram/zcomp.c 	*per_cpu_ptr(comp->stream, cpu) = zstrm;
zstrm             178 drivers/block/zram/zcomp.c 	struct zcomp_strm *zstrm;
zstrm             180 drivers/block/zram/zcomp.c 	zstrm = *per_cpu_ptr(comp->stream, cpu);
zstrm             181 drivers/block/zram/zcomp.c 	if (!IS_ERR_OR_NULL(zstrm))
zstrm             182 drivers/block/zram/zcomp.c 		zcomp_strm_free(zstrm);
zstrm              33 drivers/block/zram/zcomp.h int zcomp_compress(struct zcomp_strm *zstrm,
zstrm              36 drivers/block/zram/zcomp.h int zcomp_decompress(struct zcomp_strm *zstrm,
zstrm            1256 drivers/block/zram/zram_drv.c 		struct zcomp_strm *zstrm = zcomp_stream_get(zram->comp);
zstrm            1259 drivers/block/zram/zram_drv.c 		ret = zcomp_decompress(zstrm, src, size, dst);
zstrm            1314 drivers/block/zram/zram_drv.c 	struct zcomp_strm *zstrm;
zstrm            1330 drivers/block/zram/zram_drv.c 	zstrm = zcomp_stream_get(zram->comp);
zstrm            1332 drivers/block/zram/zram_drv.c 	ret = zcomp_compress(zstrm, src, &comp_len);
zstrm            1385 drivers/block/zram/zram_drv.c 	src = zstrm->buffer;