Lines Matching refs:t_alg
1596 struct cc_crypto_alg *t_alg; in cc_create_alg() local
1599 t_alg = kzalloc(sizeof(*t_alg), GFP_KERNEL); in cc_create_alg()
1600 if (!t_alg) in cc_create_alg()
1603 alg = &t_alg->skcipher_alg; in cc_create_alg()
1620 t_alg->cipher_mode = tmpl->cipher_mode; in cc_create_alg()
1621 t_alg->flow_mode = tmpl->flow_mode; in cc_create_alg()
1622 t_alg->data_unit = tmpl->data_unit; in cc_create_alg()
1624 return t_alg; in cc_create_alg()
1629 struct cc_crypto_alg *t_alg, *n; in cc_cipher_free() local
1634 list_for_each_entry_safe(t_alg, n, &cipher_handle->alg_list, in cc_cipher_free()
1636 crypto_unregister_skcipher(&t_alg->skcipher_alg); in cc_cipher_free()
1637 list_del(&t_alg->entry); in cc_cipher_free()
1638 kfree(t_alg); in cc_cipher_free()
1649 struct cc_crypto_alg *t_alg; in cc_cipher_alloc() local
1671 t_alg = cc_create_alg(&skcipher_algs[alg], dev); in cc_cipher_alloc()
1672 if (IS_ERR(t_alg)) { in cc_cipher_alloc()
1673 rc = PTR_ERR(t_alg); in cc_cipher_alloc()
1678 t_alg->drvdata = drvdata; in cc_cipher_alloc()
1682 rc = crypto_register_skcipher(&t_alg->skcipher_alg); in cc_cipher_alloc()
1684 t_alg->skcipher_alg.base.cra_driver_name, rc); in cc_cipher_alloc()
1687 t_alg->skcipher_alg.base.cra_driver_name); in cc_cipher_alloc()
1688 kfree(t_alg); in cc_cipher_alloc()
1691 list_add_tail(&t_alg->entry, in cc_cipher_alloc()
1694 t_alg->skcipher_alg.base.cra_driver_name); in cc_cipher_alloc()