Lines Matching refs:ctx
179 struct stm32_cryp_ctx *ctx;
317 static struct stm32_cryp *stm32_cryp_find_dev(struct stm32_cryp_ctx *ctx)
322 if (!ctx->cryp) {
327 ctx->cryp = cryp;
329 cryp = ctx->cryp;
464 stm32_cryp_write(c, c->caps->k1l, be32_to_cpu(c->ctx->key[0]));
465 stm32_cryp_write(c, c->caps->k1r, be32_to_cpu(c->ctx->key[1]));
478 ux500_swizzle_key((u8 *)c->ctx->key,
479 (u8 *)tmpkey, c->ctx->keylen);
482 for (i = 0; i < c->ctx->keylen / sizeof(u32); i++, r_id += 4)
489 for (i = c->ctx->keylen / sizeof(u32); i > 0; i--, r_id -= 4)
490 stm32_cryp_write(c, r_id, be32_to_cpu(c->ctx->key[i - 1]));
712 switch (cryp->ctx->keylen) {
848 struct stm32_cryp_ctx *ctx = crypto_skcipher_ctx(
851 struct stm32_cryp *cryp = stm32_cryp_find_dev(ctx);
863 struct stm32_cryp_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req));
865 struct stm32_cryp *cryp = stm32_cryp_find_dev(ctx);
878 struct stm32_cryp_ctx *ctx = crypto_skcipher_ctx(tfm);
880 memcpy(ctx->key, key, keylen);
881 ctx->keylen = keylen;
913 struct stm32_cryp_ctx *ctx = crypto_aead_ctx(tfm);
919 memcpy(ctx->key, key, keylen);
920 ctx->keylen = keylen;
1155 struct stm32_cryp_ctx *ctx;
1164 ctx = req ? crypto_skcipher_ctx(crypto_skcipher_reqtfm(req)) :
1167 cryp = ctx->cryp;
1172 ctx->cryp = cryp;
1176 cryp->ctx = ctx;
1239 struct stm32_cryp_ctx *ctx = crypto_skcipher_ctx(
1241 struct stm32_cryp *cryp = ctx->cryp;
1254 struct stm32_cryp_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req));
1255 struct stm32_cryp *cryp = ctx->cryp;