Lines Matching refs:caam_ctx
106 struct caam_ctx { struct
134 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_null_set_sh_desc() argument
187 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_set_sh_desc()
315 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in aead_setauthsize()
325 struct caam_ctx *ctx = crypto_aead_ctx(aead); in gcm_set_sh_desc()
375 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in gcm_setauthsize()
390 struct caam_ctx *ctx = crypto_aead_ctx(aead); in rfc4106_set_sh_desc()
443 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in rfc4106_setauthsize()
458 struct caam_ctx *ctx = crypto_aead_ctx(aead); in rfc4543_set_sh_desc()
511 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in rfc4543_setauthsize()
524 struct caam_ctx *ctx = crypto_aead_ctx(aead); in chachapoly_set_sh_desc()
550 struct caam_ctx *ctx = crypto_aead_ctx(aead); in chachapoly_setauthsize()
562 struct caam_ctx *ctx = crypto_aead_ctx(aead); in chachapoly_setkey()
578 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_setkey()
659 struct caam_ctx *ctx = crypto_aead_ctx(aead); in gcm_setkey()
680 struct caam_ctx *ctx = crypto_aead_ctx(aead); in rfc4106_setkey()
706 struct caam_ctx *ctx = crypto_aead_ctx(aead); in rfc4543_setkey()
732 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_setkey()
835 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in xts_skcipher_setkey()
1060 struct caam_ctx *ctx = crypto_aead_ctx(aead); in init_aead_job()
1121 struct caam_ctx *ctx = crypto_aead_ctx(aead); in init_gcm_job()
1188 struct caam_ctx *ctx = crypto_aead_ctx(aead); in init_authenc_job()
1237 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in init_skcipher_job()
1293 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_edesc_alloc()
1460 struct caam_ctx *ctx = crypto_aead_ctx(aead); in chachapoly_crypt()
1494 struct caam_ctx *ctx = crypto_aead_ctx(aead); in aead_crypt()
1527 struct caam_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in aead_do_one_req()
1550 struct caam_ctx *ctx = crypto_aead_ctx(aead); in gcm_crypt()
1597 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_edesc_alloc()
1756 struct caam_ctx *ctx = crypto_skcipher_ctx(crypto_skcipher_reqtfm(req)); in skcipher_do_one_req()
1787 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_crypt()
3344 static int caam_init_common(struct caam_ctx *ctx, struct caam_alg_entry *caam, in caam_init_common()
3349 const size_t sh_desc_enc_offset = offsetof(struct caam_ctx, in caam_init_common()
3365 offsetof(struct caam_ctx, in caam_init_common()
3376 ctx->sh_desc_dec_dma = dma_addr + offsetof(struct caam_ctx, in caam_init_common()
3379 ctx->key_dma = dma_addr + offsetof(struct caam_ctx, key) - in caam_init_common()
3394 struct caam_ctx *ctx = crypto_skcipher_ctx(tfm); in caam_cra_init()
3431 struct caam_ctx *ctx = crypto_aead_ctx(tfm); in caam_aead_init()
3440 static void caam_exit_common(struct caam_ctx *ctx) in caam_exit_common()
3443 offsetof(struct caam_ctx, sh_desc_enc_dma) - in caam_exit_common()
3444 offsetof(struct caam_ctx, sh_desc_enc), in caam_exit_common()
3451 struct caam_ctx *ctx = crypto_skcipher_ctx(tfm); in caam_cra_exit()
3488 alg->base.cra_ctxsize = sizeof(struct caam_ctx); in caam_skcipher_alg_init()
3502 alg->base.cra_ctxsize = sizeof(struct caam_ctx); in caam_aead_alg_init()