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