Searched refs:lzo_ctx (Results 1 – 2 of 2) sorted by relevance
38 static int regcache_lzo_prepare(struct regcache_lzo_ctx *lzo_ctx) in regcache_lzo_prepare() argument40 lzo_ctx->wmem = kmalloc(LZO1X_MEM_COMPRESS, GFP_KERNEL); in regcache_lzo_prepare()41 if (!lzo_ctx->wmem) in regcache_lzo_prepare()46 static int regcache_lzo_compress(struct regcache_lzo_ctx *lzo_ctx) in regcache_lzo_compress() argument51 ret = lzo1x_1_compress(lzo_ctx->src, lzo_ctx->src_len, in regcache_lzo_compress()52 lzo_ctx->dst, &compress_size, lzo_ctx->wmem); in regcache_lzo_compress()53 if (ret != LZO_E_OK || compress_size > lzo_ctx->dst_len) in regcache_lzo_compress()55 lzo_ctx->dst_len = compress_size; in regcache_lzo_compress()59 static int regcache_lzo_decompress(struct regcache_lzo_ctx *lzo_ctx) in regcache_lzo_decompress() argument64 dst_len = lzo_ctx->dst_len; in regcache_lzo_decompress()[all …]
27 struct lzo_ctx { struct44 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); in lzo_init() argument60 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); in lzo_exit()83 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); in lzo_compress()126 .cra_ctxsize = sizeof(struct lzo_ctx),