Lines Matching refs:t_alg

2460 	struct talitos_crypto_alg *t_alg, *n;  in talitos_remove()  local
2463 list_for_each_entry_safe(t_alg, n, &priv->alg_list, entry) { in talitos_remove()
2464 switch (t_alg->algt.type) { in talitos_remove()
2467 crypto_unregister_alg(&t_alg->algt.alg.crypto); in talitos_remove()
2470 crypto_unregister_ahash(&t_alg->algt.alg.hash); in talitos_remove()
2473 list_del(&t_alg->entry); in talitos_remove()
2474 kfree(t_alg); in talitos_remove()
2507 struct talitos_crypto_alg *t_alg; in talitos_alg_alloc() local
2510 t_alg = kzalloc(sizeof(struct talitos_crypto_alg), GFP_KERNEL); in talitos_alg_alloc()
2511 if (!t_alg) in talitos_alg_alloc()
2514 t_alg->algt = *template; in talitos_alg_alloc()
2516 switch (t_alg->algt.type) { in talitos_alg_alloc()
2518 alg = &t_alg->algt.alg.crypto; in talitos_alg_alloc()
2527 alg = &t_alg->algt.alg.crypto; in talitos_alg_alloc()
2538 alg = &t_alg->algt.alg.hash.halg.base; in talitos_alg_alloc()
2541 t_alg->algt.alg.hash.init = ahash_init; in talitos_alg_alloc()
2542 t_alg->algt.alg.hash.update = ahash_update; in talitos_alg_alloc()
2543 t_alg->algt.alg.hash.final = ahash_final; in talitos_alg_alloc()
2544 t_alg->algt.alg.hash.finup = ahash_finup; in talitos_alg_alloc()
2545 t_alg->algt.alg.hash.digest = ahash_digest; in talitos_alg_alloc()
2546 t_alg->algt.alg.hash.setkey = ahash_setkey; in talitos_alg_alloc()
2550 kfree(t_alg); in talitos_alg_alloc()
2556 t_alg->algt.alg.hash.init = ahash_init_sha224_swinit; in talitos_alg_alloc()
2557 t_alg->algt.desc_hdr_template = in talitos_alg_alloc()
2564 dev_err(dev, "unknown algorithm type %d\n", t_alg->algt.type); in talitos_alg_alloc()
2565 kfree(t_alg); in talitos_alg_alloc()
2575 t_alg->dev = dev; in talitos_alg_alloc()
2577 return t_alg; in talitos_alg_alloc()
2753 struct talitos_crypto_alg *t_alg; in talitos_probe() local
2756 t_alg = talitos_alg_alloc(dev, &driver_algs[i]); in talitos_probe()
2757 if (IS_ERR(t_alg)) { in talitos_probe()
2758 err = PTR_ERR(t_alg); in talitos_probe()
2764 switch (t_alg->algt.type) { in talitos_probe()
2768 &t_alg->algt.alg.crypto); in talitos_probe()
2769 name = t_alg->algt.alg.crypto.cra_driver_name; in talitos_probe()
2773 &t_alg->algt.alg.hash); in talitos_probe()
2775 t_alg->algt.alg.hash.halg.base.cra_driver_name; in talitos_probe()
2781 kfree(t_alg); in talitos_probe()
2783 list_add_tail(&t_alg->entry, &priv->alg_list); in talitos_probe()