• Home
  • Raw
  • Download

Lines Matching refs:t_alg

3475 		struct caam_aead_alg *t_alg = driver_aeads + i;  in caam_algapi_exit()  local
3477 if (t_alg->registered) in caam_algapi_exit()
3478 crypto_unregister_aead(&t_alg->aead); in caam_algapi_exit()
3482 struct caam_skcipher_alg *t_alg = driver_algs + i; in caam_algapi_exit() local
3484 if (t_alg->registered) in caam_algapi_exit()
3485 crypto_unregister_skcipher(&t_alg->skcipher); in caam_algapi_exit()
3489 static void caam_skcipher_alg_init(struct caam_skcipher_alg *t_alg) in caam_skcipher_alg_init() argument
3491 struct skcipher_alg *alg = &t_alg->skcipher; in caam_skcipher_alg_init()
3503 static void caam_aead_alg_init(struct caam_aead_alg *t_alg) in caam_aead_alg_init() argument
3505 struct aead_alg *alg = &t_alg->aead; in caam_aead_alg_init()
3570 struct caam_skcipher_alg *t_alg = driver_algs + i; in caam_algapi_init() local
3571 u32 alg_sel = t_alg->caam.class1_alg_type & OP_ALG_ALGSEL_MASK; in caam_algapi_init()
3588 (t_alg->caam.class1_alg_type & OP_ALG_AAI_MASK) == in caam_algapi_init()
3592 caam_skcipher_alg_init(t_alg); in caam_algapi_init()
3594 err = crypto_register_skcipher(&t_alg->skcipher); in caam_algapi_init()
3597 t_alg->skcipher.base.cra_driver_name); in caam_algapi_init()
3601 t_alg->registered = true; in caam_algapi_init()
3606 struct caam_aead_alg *t_alg = driver_aeads + i; in caam_algapi_init() local
3607 u32 c1_alg_sel = t_alg->caam.class1_alg_type & in caam_algapi_init()
3609 u32 c2_alg_sel = t_alg->caam.class2_alg_type & in caam_algapi_init()
3611 u32 alg_aai = t_alg->caam.class1_alg_type & OP_ALG_AAI_MASK; in caam_algapi_init()
3641 (!md_inst || t_alg->aead.maxauthsize > md_limit)) in caam_algapi_init()
3644 caam_aead_alg_init(t_alg); in caam_algapi_init()
3646 err = crypto_register_aead(&t_alg->aead); in caam_algapi_init()
3649 t_alg->aead.base.cra_driver_name); in caam_algapi_init()
3653 t_alg->registered = true; in caam_algapi_init()