Searched refs:lzo_ctx (Results 1 – 2 of 2) sorted by relevance
25 struct lzo_ctx { struct31 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); in lzo_init() argument42 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); in lzo_exit()50 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); in lzo_compress()82 .cra_ctxsize = sizeof(struct lzo_ctx),
1045 static int snd_soc_lzo_prepare(struct snd_soc_lzo_ctx *lzo_ctx) in snd_soc_lzo_prepare() argument1047 lzo_ctx->wmem = kmalloc(LZO1X_MEM_COMPRESS, GFP_KERNEL); in snd_soc_lzo_prepare()1048 if (!lzo_ctx->wmem) in snd_soc_lzo_prepare()1053 static int snd_soc_lzo_compress(struct snd_soc_lzo_ctx *lzo_ctx) in snd_soc_lzo_compress() argument1058 ret = lzo1x_1_compress(lzo_ctx->src, lzo_ctx->src_len, in snd_soc_lzo_compress()1059 lzo_ctx->dst, &compress_size, lzo_ctx->wmem); in snd_soc_lzo_compress()1060 if (ret != LZO_E_OK || compress_size > lzo_ctx->dst_len) in snd_soc_lzo_compress()1062 lzo_ctx->dst_len = compress_size; in snd_soc_lzo_compress()1066 static int snd_soc_lzo_decompress(struct snd_soc_lzo_ctx *lzo_ctx) in snd_soc_lzo_decompress() argument1071 dst_len = lzo_ctx->dst_len; in snd_soc_lzo_decompress()[all …]