Lines Matching refs:t_alg
1332 struct cc_crypto_alg *t_alg; in cc_create_alg() local
1335 t_alg = kzalloc(sizeof(*t_alg), GFP_KERNEL); in cc_create_alg()
1336 if (!t_alg) in cc_create_alg()
1339 alg = &t_alg->skcipher_alg; in cc_create_alg()
1356 t_alg->cipher_mode = tmpl->cipher_mode; in cc_create_alg()
1357 t_alg->flow_mode = tmpl->flow_mode; in cc_create_alg()
1358 t_alg->data_unit = tmpl->data_unit; in cc_create_alg()
1360 return t_alg; in cc_create_alg()
1365 struct cc_crypto_alg *t_alg, *n; in cc_cipher_free() local
1370 list_for_each_entry_safe(t_alg, n, &cipher_handle->alg_list, in cc_cipher_free()
1372 crypto_unregister_skcipher(&t_alg->skcipher_alg); in cc_cipher_free()
1373 list_del(&t_alg->entry); in cc_cipher_free()
1374 kfree(t_alg); in cc_cipher_free()
1385 struct cc_crypto_alg *t_alg; in cc_cipher_alloc() local
1405 t_alg = cc_create_alg(&skcipher_algs[alg], dev); in cc_cipher_alloc()
1406 if (IS_ERR(t_alg)) { in cc_cipher_alloc()
1407 rc = PTR_ERR(t_alg); in cc_cipher_alloc()
1412 t_alg->drvdata = drvdata; in cc_cipher_alloc()
1416 rc = crypto_register_skcipher(&t_alg->skcipher_alg); in cc_cipher_alloc()
1418 t_alg->skcipher_alg.base.cra_driver_name, rc); in cc_cipher_alloc()
1421 t_alg->skcipher_alg.base.cra_driver_name); in cc_cipher_alloc()
1422 kfree(t_alg); in cc_cipher_alloc()
1425 list_add_tail(&t_alg->entry, in cc_cipher_alloc()
1428 t_alg->skcipher_alg.base.cra_driver_name); in cc_cipher_alloc()