Lines Matching refs:ctx
20 void *ctx; in lz4hc_alloc_ctx() local
22 ctx = vmalloc(LZ4HC_MEM_COMPRESS); in lz4hc_alloc_ctx()
23 if (!ctx) in lz4hc_alloc_ctx()
26 return ctx; in lz4hc_alloc_ctx()
31 struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm); in lz4hc_init() local
33 ctx->lz4hc_comp_mem = lz4hc_alloc_ctx(NULL); in lz4hc_init()
34 if (IS_ERR(ctx->lz4hc_comp_mem)) in lz4hc_init()
40 static void lz4hc_free_ctx(struct crypto_scomp *tfm, void *ctx) in lz4hc_free_ctx() argument
42 vfree(ctx); in lz4hc_free_ctx()
47 struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm); in lz4hc_exit() local
49 lz4hc_free_ctx(NULL, ctx->lz4hc_comp_mem); in lz4hc_exit()
53 u8 *dst, unsigned int *dlen, void *ctx) in __lz4hc_compress_crypto() argument
56 *dlen, LZ4HC_DEFAULT_CLEVEL, ctx); in __lz4hc_compress_crypto()
67 void *ctx) in lz4hc_scompress() argument
69 return __lz4hc_compress_crypto(src, slen, dst, dlen, ctx); in lz4hc_scompress()
76 struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm); in lz4hc_compress_crypto() local
79 ctx->lz4hc_comp_mem); in lz4hc_compress_crypto()
83 u8 *dst, unsigned int *dlen, void *ctx) in __lz4hc_decompress_crypto() argument
96 void *ctx) in lz4hc_sdecompress() argument