Lines Matching refs:caam_ctx

73 struct caam_ctx {  struct
167 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_set_sh_desc()
272 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in aead_setauthsize()
283 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_setkey()
354 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_edesc_alloc()
588 struct caam_ctx *ctx = crypto_aead_ctx(aead); in chachapoly_set_sh_desc()
621 struct caam_ctx *ctx = crypto_aead_ctx(aead); in chachapoly_setauthsize()
633 struct caam_ctx *ctx = crypto_aead_ctx(aead); in chachapoly_setkey()
650 struct caam_ctx *ctx = crypto_aead_ctx(aead); in gcm_set_sh_desc()
707 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in gcm_setauthsize()
723 struct caam_ctx *ctx = crypto_aead_ctx(aead); in gcm_setkey()
744 struct caam_ctx *ctx = crypto_aead_ctx(aead); in rfc4106_set_sh_desc()
804 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in rfc4106_setauthsize()
820 struct caam_ctx *ctx = crypto_aead_ctx(aead); in rfc4106_setkey()
847 struct caam_ctx *ctx = crypto_aead_ctx(aead); in rfc4543_set_sh_desc()
907 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in rfc4543_setauthsize()
921 struct caam_ctx *ctx = crypto_aead_ctx(aead); in rfc4543_setkey()
949 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_setkey()
1080 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in xts_skcipher_setkey()
1122 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_edesc_alloc()
1296 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_encrypt_done()
1317 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_decrypt_done()
1334 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_encrypt()
1362 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_decrypt()
1402 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_encrypt_done()
1440 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_decrypt_done()
1476 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_encrypt()
1507 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_decrypt()
1533 static int caam_cra_init(struct caam_ctx *ctx, struct caam_alg_entry *caam, in caam_cra_init()
1547 offsetof(struct caam_ctx, flc_dma), in caam_cra_init()
1582 static void caam_exit_common(struct caam_ctx *ctx) in caam_exit_common()
1585 offsetof(struct caam_ctx, flc_dma), ctx->dir, in caam_exit_common()
2940 alg->base.cra_ctxsize = sizeof(struct caam_ctx); in caam_skcipher_alg_init()
2953 alg->base.cra_ctxsize = sizeof(struct caam_ctx); in caam_aead_alg_init()
3005 u8 caam_ctx[MAX_CTX_LEN] ____cacheline_aligned; member
3014 u8 caam_ctx[MAX_CTX_LEN]; member
3075 state->ctx_dma = dma_map_single(dev, state->caam_ctx, ctx_len, flag); in ctx_map_to_qm_sg()
3360 memcpy(req->result, state->caam_ctx, digestsize); in ahash_done()
3364 DUMP_PREFIX_ADDRESS, 16, 4, state->caam_ctx, in ahash_done()
3390 DUMP_PREFIX_ADDRESS, 16, 4, state->caam_ctx, in ahash_done_bi()
3417 memcpy(req->result, state->caam_ctx, digestsize); in ahash_done_ctx_src()
3421 DUMP_PREFIX_ADDRESS, 16, 4, state->caam_ctx, in ahash_done_ctx_src()
3447 DUMP_PREFIX_ADDRESS, 16, 4, state->caam_ctx, in ahash_done_ctx_dst()
3815 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, digestsize, in ahash_digest()
3876 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, digestsize, in ahash_final_no_ctx()
3995 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, in ahash_update_no_ctx()
4109 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, digestsize, in ahash_finup_no_ctx()
4228 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, in ahash_update_first()
4336 memcpy(export->caam_ctx, state->caam_ctx, sizeof(export->caam_ctx)); in ahash_export()
4352 memcpy(state->caam_ctx, export->caam_ctx, sizeof(state->caam_ctx)); in ahash_import()