Lines Matching refs:t_alg
2563 struct cc_crypto_alg *t_alg; in cc_create_aead_alg() local
2566 t_alg = devm_kzalloc(dev, sizeof(*t_alg), GFP_KERNEL); in cc_create_aead_alg()
2567 if (!t_alg) in cc_create_aead_alg()
2584 t_alg->aead_alg = *alg; in cc_create_aead_alg()
2586 t_alg->cipher_mode = tmpl->cipher_mode; in cc_create_aead_alg()
2587 t_alg->flow_mode = tmpl->flow_mode; in cc_create_aead_alg()
2588 t_alg->auth_mode = tmpl->auth_mode; in cc_create_aead_alg()
2590 return t_alg; in cc_create_aead_alg()
2595 struct cc_crypto_alg *t_alg, *n; in cc_aead_free() local
2599 list_for_each_entry_safe(t_alg, n, &aead_handle->aead_list, entry) { in cc_aead_free()
2600 crypto_unregister_aead(&t_alg->aead_alg); in cc_aead_free()
2601 list_del(&t_alg->entry); in cc_aead_free()
2610 struct cc_crypto_alg *t_alg; in cc_aead_alloc() local
2638 t_alg = cc_create_aead_alg(&aead_algs[alg], dev); in cc_aead_alloc()
2639 if (IS_ERR(t_alg)) { in cc_aead_alloc()
2640 rc = PTR_ERR(t_alg); in cc_aead_alloc()
2645 t_alg->drvdata = drvdata; in cc_aead_alloc()
2646 rc = crypto_register_aead(&t_alg->aead_alg); in cc_aead_alloc()
2649 t_alg->aead_alg.base.cra_driver_name); in cc_aead_alloc()
2653 list_add_tail(&t_alg->entry, &aead_handle->aead_list); in cc_aead_alloc()
2655 t_alg->aead_alg.base.cra_driver_name); in cc_aead_alloc()