Lines Matching refs:ctx
21 void *ctx; in lz4_alloc_ctx() local
23 ctx = vmalloc(LZ4_MEM_COMPRESS); in lz4_alloc_ctx()
24 if (!ctx) in lz4_alloc_ctx()
27 return ctx; in lz4_alloc_ctx()
32 struct lz4_ctx *ctx = crypto_tfm_ctx(tfm); in lz4_init() local
34 ctx->lz4_comp_mem = lz4_alloc_ctx(NULL); in lz4_init()
35 if (IS_ERR(ctx->lz4_comp_mem)) in lz4_init()
41 static void lz4_free_ctx(struct crypto_scomp *tfm, void *ctx) in lz4_free_ctx() argument
43 vfree(ctx); in lz4_free_ctx()
48 struct lz4_ctx *ctx = crypto_tfm_ctx(tfm); in lz4_exit() local
50 lz4_free_ctx(NULL, ctx->lz4_comp_mem); in lz4_exit()
54 u8 *dst, unsigned int *dlen, void *ctx) in __lz4_compress_crypto() argument
57 slen, *dlen, ctx); in __lz4_compress_crypto()
68 void *ctx) in lz4_scompress() argument
70 return __lz4_compress_crypto(src, slen, dst, dlen, ctx); in lz4_scompress()
76 struct lz4_ctx *ctx = crypto_tfm_ctx(tfm); in lz4_compress_crypto() local
78 return __lz4_compress_crypto(src, slen, dst, dlen, ctx->lz4_comp_mem); in lz4_compress_crypto()
82 u8 *dst, unsigned int *dlen, void *ctx) in __lz4_decompress_crypto() argument
95 void *ctx) in lz4_sdecompress() argument