Lines Matching refs:ctx

134 	struct stm32_cryp_ctx   *ctx;
254 static struct stm32_cryp *stm32_cryp_find_dev(struct stm32_cryp_ctx *ctx)
259 if (!ctx->cryp) {
264 ctx->cryp = cryp;
266 cryp = ctx->cryp;
311 stm32_cryp_write(c, CRYP_K1LR, be32_to_cpu(c->ctx->key[0]));
312 stm32_cryp_write(c, CRYP_K1RR, be32_to_cpu(c->ctx->key[1]));
315 for (i = c->ctx->keylen / sizeof(u32); i > 0; i--, r_id -= 4)
317 be32_to_cpu(c->ctx->key[i - 1]));
544 switch (cryp->ctx->keylen) {
650 struct stm32_cryp_ctx *ctx = crypto_skcipher_ctx(tfm);
654 ctx->enginectx.op.do_one_request = stm32_cryp_cipher_one_req;
655 ctx->enginectx.op.prepare_request = stm32_cryp_prepare_cipher_req;
656 ctx->enginectx.op.unprepare_request = NULL;
666 struct stm32_cryp_ctx *ctx = crypto_aead_ctx(tfm);
670 ctx->enginectx.op.do_one_request = stm32_cryp_aead_one_req;
671 ctx->enginectx.op.prepare_request = stm32_cryp_prepare_aead_req;
672 ctx->enginectx.op.unprepare_request = NULL;
679 struct stm32_cryp_ctx *ctx = crypto_skcipher_ctx(
682 struct stm32_cryp *cryp = stm32_cryp_find_dev(ctx);
694 struct stm32_cryp_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req));
696 struct stm32_cryp *cryp = stm32_cryp_find_dev(ctx);
709 struct stm32_cryp_ctx *ctx = crypto_skcipher_ctx(tfm);
711 memcpy(ctx->key, key, keylen);
712 ctx->keylen = keylen;
744 struct stm32_cryp_ctx *ctx = crypto_aead_ctx(tfm);
750 memcpy(ctx->key, key, keylen);
751 ctx->keylen = keylen;
986 struct stm32_cryp_ctx *ctx;
995 ctx = req ? crypto_skcipher_ctx(crypto_skcipher_reqtfm(req)) :
998 cryp = ctx->cryp;
1006 ctx->cryp = cryp;
1010 cryp->ctx = ctx;
1083 struct stm32_cryp_ctx *ctx = crypto_skcipher_ctx(
1085 struct stm32_cryp *cryp = ctx->cryp;
1105 struct stm32_cryp_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req));
1106 struct stm32_cryp *cryp = ctx->cryp;