Lines Matching refs:caam_ctx
115 struct caam_ctx { struct
142 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_null_set_sh_desc() argument
196 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_set_sh_desc()
324 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc); in aead_setauthsize()
334 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in gcm_set_sh_desc()
384 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc); in gcm_setauthsize()
399 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4106_set_sh_desc()
452 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc); in rfc4106_setauthsize()
467 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4543_set_sh_desc()
520 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc); in rfc4543_setauthsize()
533 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in chachapoly_set_sh_desc()
559 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in chachapoly_setauthsize()
571 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in chachapoly_setkey()
588 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_setkey()
669 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in gcm_setkey()
690 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4106_setkey()
716 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4543_setkey()
742 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_setkey()
845 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in xts_skcipher_setkey()
1076 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in init_aead_job()
1137 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in init_gcm_job()
1205 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in init_authenc_job()
1254 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in init_skcipher_job()
1310 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_edesc_alloc()
1476 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in chachapoly_crypt()
1510 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_crypt()
1543 struct caam_ctx *ctx = crypto_aead_ctx_dma(crypto_aead_reqtfm(req)); in aead_do_one_req()
1569 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in gcm_crypt()
1616 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_edesc_alloc()
1780 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(crypto_skcipher_reqtfm(req)); in skcipher_do_one_req()
1814 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_crypt()
3575 static int caam_init_common(struct caam_ctx *ctx, struct caam_alg_entry *caam, in caam_init_common()
3580 const size_t sh_desc_enc_offset = offsetof(struct caam_ctx, in caam_init_common()
3596 offsetof(struct caam_ctx, in caam_init_common()
3607 ctx->sh_desc_dec_dma = dma_addr + offsetof(struct caam_ctx, in caam_init_common()
3610 ctx->key_dma = dma_addr + offsetof(struct caam_ctx, key) - in caam_init_common()
3625 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(tfm); in caam_cra_init()
3660 struct caam_ctx *ctx = crypto_aead_ctx_dma(tfm); in caam_aead_init()
3667 static void caam_exit_common(struct caam_ctx *ctx) in caam_exit_common()
3670 offsetof(struct caam_ctx, sh_desc_enc_dma) - in caam_exit_common()
3671 offsetof(struct caam_ctx, sh_desc_enc), in caam_exit_common()
3678 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(tfm); in caam_cra_exit()
3715 alg->base.cra_ctxsize = sizeof(struct caam_ctx) + crypto_dma_padding(); in caam_skcipher_alg_init()
3729 alg->base.cra_ctxsize = sizeof(struct caam_ctx) + crypto_dma_padding(); in caam_aead_alg_init()