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()
652 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in gcm_set_sh_desc()
709 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc); in gcm_setauthsize()
725 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in gcm_setkey()
744 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4106_set_sh_desc()
804 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc); in rfc4106_setauthsize()
820 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4106_setkey()
845 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4543_set_sh_desc()
905 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc); in rfc4543_setauthsize()
919 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4543_setkey()
945 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_setkey()
1064 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in xts_skcipher_setkey()
1117 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_edesc_alloc()
1291 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_encrypt_done()
1312 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_decrypt_done()
1329 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_encrypt()
1357 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_decrypt()
1397 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_encrypt_done()
1435 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_decrypt_done()
1479 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_encrypt()
1529 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_decrypt()
1575 static int caam_cra_init(struct caam_ctx *ctx, struct caam_alg_entry *caam, in caam_cra_init()
1589 offsetof(struct caam_ctx, flc_dma), in caam_cra_init()
1608 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(tfm); in caam_cra_init_skcipher()
1652 static void caam_exit_common(struct caam_ctx *ctx) in caam_exit_common()
1655 offsetof(struct caam_ctx, flc_dma), ctx->dir, in caam_exit_common()
1661 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(tfm); in caam_cra_exit()
3015 alg->base.cra_ctxsize = sizeof(struct caam_ctx) + crypto_dma_padding(); in caam_skcipher_alg_init()
3029 alg->base.cra_ctxsize = sizeof(struct caam_ctx) + crypto_dma_padding(); in caam_aead_alg_init()
3081 u8 caam_ctx[MAX_CTX_LEN] ____cacheline_aligned; member
3089 u8 caam_ctx[MAX_CTX_LEN]; member
3125 state->ctx_dma = dma_map_single(dev, state->caam_ctx, ctx_len, flag); in ctx_map_to_qm_sg()
3415 memcpy(req->result, state->caam_ctx, digestsize); in ahash_done()
3419 DUMP_PREFIX_ADDRESS, 16, 4, state->caam_ctx, in ahash_done()
3453 DUMP_PREFIX_ADDRESS, 16, 4, state->caam_ctx, in ahash_done_bi()
3480 memcpy(req->result, state->caam_ctx, digestsize); in ahash_done_ctx_src()
3484 DUMP_PREFIX_ADDRESS, 16, 4, state->caam_ctx, in ahash_done_ctx_src()
3518 DUMP_PREFIX_ADDRESS, 16, 4, state->caam_ctx, in ahash_done_ctx_dst()
3877 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, digestsize, in ahash_digest()
3938 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, digestsize, in ahash_final_no_ctx()
4051 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, in ahash_update_no_ctx()
4162 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, digestsize, in ahash_finup_no_ctx()
4278 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, in ahash_update_first()
4377 memcpy(export->caam_ctx, state->caam_ctx, sizeof(export->caam_ctx)); in ahash_export()
4393 memcpy(state->caam_ctx, export->caam_ctx, sizeof(state->caam_ctx)); in ahash_import()