Lines Matching refs:caam_ctx
80 struct caam_ctx { struct
176 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_set_sh_desc()
281 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc); in aead_setauthsize()
292 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_setkey()
358 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_edesc_alloc()
592 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in chachapoly_set_sh_desc()
625 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in chachapoly_setauthsize()
637 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in chachapoly_setkey()
653 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in gcm_set_sh_desc()
710 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc); in gcm_setauthsize()
726 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in gcm_setkey()
745 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4106_set_sh_desc()
805 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc); in rfc4106_setauthsize()
821 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4106_setkey()
846 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4543_set_sh_desc()
906 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc); in rfc4543_setauthsize()
920 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4543_setkey()
946 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_setkey()
1065 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in xts_skcipher_setkey()
1118 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_edesc_alloc()
1292 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_encrypt_done()
1313 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_decrypt_done()
1330 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_encrypt()
1358 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_decrypt()
1398 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_encrypt_done()
1436 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_decrypt_done()
1480 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_encrypt()
1530 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_decrypt()
1576 static int caam_cra_init(struct caam_ctx *ctx, struct caam_alg_entry *caam, in caam_cra_init()
1590 offsetof(struct caam_ctx, flc_dma), in caam_cra_init()
1609 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(tfm); in caam_cra_init_skcipher()
1653 static void caam_exit_common(struct caam_ctx *ctx) in caam_exit_common()
1656 offsetof(struct caam_ctx, flc_dma), ctx->dir, in caam_exit_common()
1662 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(tfm); in caam_cra_exit()
3016 alg->base.cra_ctxsize = sizeof(struct caam_ctx) + crypto_dma_padding(); in caam_skcipher_alg_init()
3030 alg->base.cra_ctxsize = sizeof(struct caam_ctx) + crypto_dma_padding(); in caam_aead_alg_init()
3082 u8 caam_ctx[MAX_CTX_LEN] ____cacheline_aligned; member
3090 u8 caam_ctx[MAX_CTX_LEN]; member
3126 state->ctx_dma = dma_map_single(dev, state->caam_ctx, ctx_len, flag); in ctx_map_to_qm_sg()
3416 memcpy(req->result, state->caam_ctx, digestsize); in ahash_done()
3420 DUMP_PREFIX_ADDRESS, 16, 4, state->caam_ctx, in ahash_done()
3454 DUMP_PREFIX_ADDRESS, 16, 4, state->caam_ctx, in ahash_done_bi()
3481 memcpy(req->result, state->caam_ctx, digestsize); in ahash_done_ctx_src()
3485 DUMP_PREFIX_ADDRESS, 16, 4, state->caam_ctx, in ahash_done_ctx_src()
3519 DUMP_PREFIX_ADDRESS, 16, 4, state->caam_ctx, in ahash_done_ctx_dst()
3878 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, digestsize, in ahash_digest()
3939 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, digestsize, in ahash_final_no_ctx()
4052 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, in ahash_update_no_ctx()
4163 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, digestsize, in ahash_finup_no_ctx()
4279 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, in ahash_update_first()
4378 memcpy(export->caam_ctx, state->caam_ctx, sizeof(export->caam_ctx)); in ahash_export()
4394 memcpy(state->caam_ctx, export->caam_ctx, sizeof(state->caam_ctx)); in ahash_import()