Searched refs:t_alg (Results 1 – 8 of 8) sorted by relevance
/drivers/crypto/ |
D | talitos.c | 3143 struct talitos_crypto_alg *t_alg, *n; in talitos_remove() local 3146 list_for_each_entry_safe(t_alg, n, &priv->alg_list, entry) { in talitos_remove() 3147 switch (t_alg->algt.type) { in talitos_remove() 3149 crypto_unregister_skcipher(&t_alg->algt.alg.skcipher); in talitos_remove() 3152 crypto_unregister_aead(&t_alg->algt.alg.aead); in talitos_remove() 3155 crypto_unregister_ahash(&t_alg->algt.alg.hash); in talitos_remove() 3158 list_del(&t_alg->entry); in talitos_remove() 3182 struct talitos_crypto_alg *t_alg; in talitos_alg_alloc() local 3185 t_alg = devm_kzalloc(dev, sizeof(struct talitos_crypto_alg), in talitos_alg_alloc() 3187 if (!t_alg) in talitos_alg_alloc() [all …]
|
/drivers/crypto/ccree/ |
D | cc_cipher.c | 1419 struct cc_crypto_alg *t_alg; in cc_create_alg() local 1422 t_alg = devm_kzalloc(dev, sizeof(*t_alg), GFP_KERNEL); in cc_create_alg() 1423 if (!t_alg) in cc_create_alg() 1426 alg = &t_alg->skcipher_alg; in cc_create_alg() 1443 t_alg->cipher_mode = tmpl->cipher_mode; in cc_create_alg() 1444 t_alg->flow_mode = tmpl->flow_mode; in cc_create_alg() 1446 return t_alg; in cc_create_alg() 1451 struct cc_crypto_alg *t_alg, *n; in cc_cipher_free() local 1454 list_for_each_entry_safe(t_alg, n, &drvdata->alg_list, entry) { in cc_cipher_free() 1455 crypto_unregister_skcipher(&t_alg->skcipher_alg); in cc_cipher_free() [all …]
|
D | cc_aead.c | 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() [all …]
|
D | cc_hash.c | 1999 struct cc_hash_alg *t_alg; in cc_hash_alloc() local 2009 t_alg = cc_alloc_hash_alg(&driver_hash[alg], dev, true); in cc_hash_alloc() 2010 if (IS_ERR(t_alg)) { in cc_hash_alloc() 2011 rc = PTR_ERR(t_alg); in cc_hash_alloc() 2016 t_alg->drvdata = drvdata; in cc_hash_alloc() 2018 rc = crypto_register_ahash(&t_alg->ahash_alg); in cc_hash_alloc() 2025 list_add_tail(&t_alg->entry, &hash_handle->hash_list); in cc_hash_alloc() 2032 t_alg = cc_alloc_hash_alg(&driver_hash[alg], dev, false); in cc_hash_alloc() 2033 if (IS_ERR(t_alg)) { in cc_hash_alloc() 2034 rc = PTR_ERR(t_alg); in cc_hash_alloc() [all …]
|
/drivers/crypto/caam/ |
D | caamhash.c | 1885 struct caam_hash_alg *t_alg, *n; in caam_algapi_hash_exit() local 1890 list_for_each_entry_safe(t_alg, n, &hash_list, entry) { in caam_algapi_hash_exit() 1891 crypto_engine_unregister_ahash(&t_alg->ahash_alg); in caam_algapi_hash_exit() 1892 list_del(&t_alg->entry); in caam_algapi_hash_exit() 1893 kfree(t_alg); in caam_algapi_hash_exit() 1901 struct caam_hash_alg *t_alg; in caam_hash_alloc() local 1905 t_alg = kzalloc(sizeof(*t_alg), GFP_KERNEL); in caam_hash_alloc() 1906 if (!t_alg) in caam_hash_alloc() 1909 t_alg->ahash_alg.base = template->template_ahash; in caam_hash_alloc() 1910 halg = &t_alg->ahash_alg.base; in caam_hash_alloc() [all …]
|
D | caamalg_qi.c | 2578 struct caam_aead_alg *t_alg = driver_aeads + i; in caam_qi_algapi_exit() local 2580 if (t_alg->registered) in caam_qi_algapi_exit() 2581 crypto_unregister_aead(&t_alg->aead); in caam_qi_algapi_exit() 2585 struct caam_skcipher_alg *t_alg = driver_algs + i; in caam_qi_algapi_exit() local 2587 if (t_alg->registered) in caam_qi_algapi_exit() 2588 crypto_unregister_skcipher(&t_alg->skcipher); in caam_qi_algapi_exit() 2592 static void caam_skcipher_alg_init(struct caam_skcipher_alg *t_alg) in caam_skcipher_alg_init() argument 2594 struct skcipher_alg *alg = &t_alg->skcipher; in caam_skcipher_alg_init() 2606 static void caam_aead_alg_init(struct caam_aead_alg *t_alg) in caam_aead_alg_init() argument 2608 struct aead_alg *alg = &t_alg->aead; in caam_aead_alg_init() [all …]
|
D | caamalg_qi2.c | 3010 static void caam_skcipher_alg_init(struct caam_skcipher_alg *t_alg) in caam_skcipher_alg_init() argument 3012 struct skcipher_alg *alg = &t_alg->skcipher; in caam_skcipher_alg_init() 3024 static void caam_aead_alg_init(struct caam_aead_alg *t_alg) in caam_aead_alg_init() argument 3026 struct aead_alg *alg = &t_alg->aead; in caam_aead_alg_init() 4632 struct caam_hash_alg *t_alg; in caam_hash_alloc() local 4636 t_alg = kzalloc(sizeof(*t_alg), GFP_KERNEL); in caam_hash_alloc() 4637 if (!t_alg) in caam_hash_alloc() 4640 t_alg->ahash_alg = template->template_ahash; in caam_hash_alloc() 4641 halg = &t_alg->ahash_alg; in caam_hash_alloc() 4654 t_alg->ahash_alg.setkey = NULL; in caam_hash_alloc() [all …]
|
D | caamalg.c | 3695 struct caam_aead_alg *t_alg = driver_aeads + i; in caam_algapi_exit() local 3697 if (t_alg->registered) in caam_algapi_exit() 3698 crypto_engine_unregister_aead(&t_alg->aead); in caam_algapi_exit() 3702 struct caam_skcipher_alg *t_alg = driver_algs + i; in caam_algapi_exit() local 3704 if (t_alg->registered) in caam_algapi_exit() 3705 crypto_engine_unregister_skcipher(&t_alg->skcipher); in caam_algapi_exit() 3709 static void caam_skcipher_alg_init(struct caam_skcipher_alg *t_alg) in caam_skcipher_alg_init() argument 3711 struct skcipher_alg *alg = &t_alg->skcipher.base; in caam_skcipher_alg_init() 3723 static void caam_aead_alg_init(struct caam_aead_alg *t_alg) in caam_aead_alg_init() argument 3725 struct aead_alg *alg = &t_alg->aead.base; in caam_aead_alg_init() [all …]
|