Lines Matching defs:ctx
20 void *ctx;
22 ctx = kvmalloc(LZO1X_MEM_COMPRESS, GFP_KERNEL);
23 if (!ctx)
26 return ctx;
31 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm);
33 ctx->lzo_comp_mem = lzo_alloc_ctx(NULL);
34 if (IS_ERR(ctx->lzo_comp_mem))
40 static void lzo_free_ctx(struct crypto_scomp *tfm, void *ctx)
42 kvfree(ctx);
47 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm);
49 lzo_free_ctx(NULL, ctx->lzo_comp_mem);
53 u8 *dst, unsigned int *dlen, void *ctx)
58 err = lzo1x_1_compress(src, slen, dst, &tmp_len, ctx);
70 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm);
72 return __lzo_compress(src, slen, dst, dlen, ctx->lzo_comp_mem);
77 void *ctx)
79 return __lzo_compress(src, slen, dst, dlen, ctx);
105 void *ctx)