Lines Matching refs:t_alg
1416 struct cc_crypto_alg *t_alg; in cc_create_alg() local
1419 t_alg = devm_kzalloc(dev, sizeof(*t_alg), GFP_KERNEL); in cc_create_alg()
1420 if (!t_alg) in cc_create_alg()
1423 alg = &t_alg->skcipher_alg; in cc_create_alg()
1440 t_alg->cipher_mode = tmpl->cipher_mode; in cc_create_alg()
1441 t_alg->flow_mode = tmpl->flow_mode; in cc_create_alg()
1443 return t_alg; in cc_create_alg()
1448 struct cc_crypto_alg *t_alg, *n; in cc_cipher_free() local
1451 list_for_each_entry_safe(t_alg, n, &drvdata->alg_list, entry) { in cc_cipher_free()
1452 crypto_unregister_skcipher(&t_alg->skcipher_alg); in cc_cipher_free()
1453 list_del(&t_alg->entry); in cc_cipher_free()
1460 struct cc_crypto_alg *t_alg; in cc_cipher_alloc() local
1477 t_alg = cc_create_alg(&skcipher_algs[alg], dev); in cc_cipher_alloc()
1478 if (IS_ERR(t_alg)) { in cc_cipher_alloc()
1479 rc = PTR_ERR(t_alg); in cc_cipher_alloc()
1484 t_alg->drvdata = drvdata; in cc_cipher_alloc()
1488 rc = crypto_register_skcipher(&t_alg->skcipher_alg); in cc_cipher_alloc()
1490 t_alg->skcipher_alg.base.cra_driver_name, rc); in cc_cipher_alloc()
1493 t_alg->skcipher_alg.base.cra_driver_name); in cc_cipher_alloc()
1497 list_add_tail(&t_alg->entry, &drvdata->alg_list); in cc_cipher_alloc()
1499 t_alg->skcipher_alg.base.cra_driver_name); in cc_cipher_alloc()