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()
587 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_setkey()
668 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in gcm_setkey()
689 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4106_setkey()
715 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in rfc4543_setkey()
741 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_setkey()
844 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in xts_skcipher_setkey()
1075 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in init_aead_job()
1136 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in init_gcm_job()
1204 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in init_authenc_job()
1253 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in init_skcipher_job()
1309 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_edesc_alloc()
1475 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in chachapoly_crypt()
1509 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in aead_crypt()
1542 struct caam_ctx *ctx = crypto_aead_ctx_dma(crypto_aead_reqtfm(req)); in aead_do_one_req()
1568 struct caam_ctx *ctx = crypto_aead_ctx_dma(aead); in gcm_crypt()
1615 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_edesc_alloc()
1779 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(crypto_skcipher_reqtfm(req)); in skcipher_do_one_req()
1813 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_crypt()
3574 static int caam_init_common(struct caam_ctx *ctx, struct caam_alg_entry *caam, in caam_init_common()
3579 const size_t sh_desc_enc_offset = offsetof(struct caam_ctx, in caam_init_common()
3595 offsetof(struct caam_ctx, in caam_init_common()
3606 ctx->sh_desc_dec_dma = dma_addr + offsetof(struct caam_ctx, in caam_init_common()
3609 ctx->key_dma = dma_addr + offsetof(struct caam_ctx, key) - in caam_init_common()
3624 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(tfm); in caam_cra_init()
3659 struct caam_ctx *ctx = crypto_aead_ctx_dma(tfm); in caam_aead_init()
3666 static void caam_exit_common(struct caam_ctx *ctx) in caam_exit_common()
3669 offsetof(struct caam_ctx, sh_desc_enc_dma) - in caam_exit_common()
3670 offsetof(struct caam_ctx, sh_desc_enc), in caam_exit_common()
3677 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(tfm); in caam_cra_exit()
3714 alg->base.cra_ctxsize = sizeof(struct caam_ctx) + crypto_dma_padding(); in caam_skcipher_alg_init()
3728 alg->base.cra_ctxsize = sizeof(struct caam_ctx) + crypto_dma_padding(); in caam_aead_alg_init()