Lines Matching defs:caam_ctx

66  * struct caam_ctx - per-session context
80 struct caam_ctx {
176 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead);
281 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc);
292 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead);
358 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead);
592 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead);
625 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead);
637 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead);
653 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead);
710 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc);
726 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead);
745 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead);
805 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc);
821 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead);
846 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead);
906 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc);
920 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead);
946 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher);
1065 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher);
1118 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher);
1292 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead);
1313 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead);
1330 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead);
1358 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead);
1398 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher);
1436 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher);
1480 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher);
1530 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher);
1576 static int caam_cra_init(struct caam_ctx *ctx, struct caam_alg_entry *caam,
1590 offsetof(struct caam_ctx, flc_dma),
1609 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(tfm);
1653 static void caam_exit_common(struct caam_ctx *ctx)
1656 offsetof(struct caam_ctx, flc_dma), ctx->dir,
1662 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(tfm);
3016 alg->base.cra_ctxsize = sizeof(struct caam_ctx) + crypto_dma_padding();
3030 alg->base.cra_ctxsize = sizeof(struct caam_ctx) + crypto_dma_padding();
3082 u8 caam_ctx[MAX_CTX_LEN] ____cacheline_aligned;
3090 u8 caam_ctx[MAX_CTX_LEN];
3120 /* Map state->caam_ctx, and add it to link table */
3126 state->ctx_dma = dma_map_single(dev, state->caam_ctx, ctx_len, flag);
3416 memcpy(req->result, state->caam_ctx, digestsize);
3420 DUMP_PREFIX_ADDRESS, 16, 4, state->caam_ctx,
3454 DUMP_PREFIX_ADDRESS, 16, 4, state->caam_ctx,
3481 memcpy(req->result, state->caam_ctx, digestsize);
3485 DUMP_PREFIX_ADDRESS, 16, 4, state->caam_ctx,
3519 DUMP_PREFIX_ADDRESS, 16, 4, state->caam_ctx,
3878 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, digestsize,
3939 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, digestsize,
4052 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx,
4163 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, digestsize,
4279 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx,
4378 memcpy(export->caam_ctx, state->caam_ctx, sizeof(export->caam_ctx));
4394 memcpy(state->caam_ctx, export->caam_ctx, sizeof(state->caam_ctx));