Lines Matching defs:ctx
33 void *ctx;
35 ctx = kmalloc(SW842_MEM_COMPRESS, GFP_KERNEL);
36 if (!ctx)
39 return ctx;
44 struct crypto842_ctx *ctx = crypto_tfm_ctx(tfm);
46 ctx->wmem = crypto842_alloc_ctx(NULL);
47 if (IS_ERR(ctx->wmem))
53 static void crypto842_free_ctx(struct crypto_scomp *tfm, void *ctx)
55 kfree(ctx);
60 struct crypto842_ctx *ctx = crypto_tfm_ctx(tfm);
62 crypto842_free_ctx(NULL, ctx->wmem);
69 struct crypto842_ctx *ctx = crypto_tfm_ctx(tfm);
71 return sw842_compress(src, slen, dst, dlen, ctx->wmem);
76 u8 *dst, unsigned int *dlen, void *ctx)
78 return sw842_compress(src, slen, dst, dlen, ctx);
90 u8 *dst, unsigned int *dlen, void *ctx)