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 | 1884 struct caam_hash_alg *t_alg, *n; in caam_algapi_hash_exit() local 1889 list_for_each_entry_safe(t_alg, n, &hash_list, entry) { in caam_algapi_hash_exit() 1890 crypto_unregister_ahash(&t_alg->ahash_alg); in caam_algapi_hash_exit() 1891 list_del(&t_alg->entry); in caam_algapi_hash_exit() 1892 kfree(t_alg); in caam_algapi_hash_exit() 1900 struct caam_hash_alg *t_alg; in caam_hash_alloc() local 1904 t_alg = kzalloc(sizeof(*t_alg), GFP_KERNEL); in caam_hash_alloc() 1905 if (!t_alg) { in caam_hash_alloc() 1910 t_alg->ahash_alg = template->template_ahash; in caam_hash_alloc() 1911 halg = &t_alg->ahash_alg; in caam_hash_alloc() [all …]
|
D | caamalg_qi.c | 2562 struct caam_aead_alg *t_alg = driver_aeads + i; in caam_qi_algapi_exit() local 2564 if (t_alg->registered) in caam_qi_algapi_exit() 2565 crypto_unregister_aead(&t_alg->aead); in caam_qi_algapi_exit() 2569 struct caam_skcipher_alg *t_alg = driver_algs + i; in caam_qi_algapi_exit() local 2571 if (t_alg->registered) in caam_qi_algapi_exit() 2572 crypto_unregister_skcipher(&t_alg->skcipher); in caam_qi_algapi_exit() 2576 static void caam_skcipher_alg_init(struct caam_skcipher_alg *t_alg) in caam_skcipher_alg_init() argument 2578 struct skcipher_alg *alg = &t_alg->skcipher; in caam_skcipher_alg_init() 2590 static void caam_aead_alg_init(struct caam_aead_alg *t_alg) in caam_aead_alg_init() argument 2592 struct aead_alg *alg = &t_alg->aead; in caam_aead_alg_init() [all …]
|
D | caamalg_qi2.c | 3006 static void caam_skcipher_alg_init(struct caam_skcipher_alg *t_alg) in caam_skcipher_alg_init() argument 3008 struct skcipher_alg *alg = &t_alg->skcipher; in caam_skcipher_alg_init() 3020 static void caam_aead_alg_init(struct caam_aead_alg *t_alg) in caam_aead_alg_init() argument 3022 struct aead_alg *alg = &t_alg->aead; in caam_aead_alg_init() 4623 struct caam_hash_alg *t_alg; in caam_hash_alloc() local 4627 t_alg = kzalloc(sizeof(*t_alg), GFP_KERNEL); in caam_hash_alloc() 4628 if (!t_alg) in caam_hash_alloc() 4631 t_alg->ahash_alg = template->template_ahash; in caam_hash_alloc() 4632 halg = &t_alg->ahash_alg; in caam_hash_alloc() 4645 t_alg->ahash_alg.setkey = NULL; in caam_hash_alloc() [all …]
|
D | caamalg.c | 3475 struct caam_aead_alg *t_alg = driver_aeads + i; in caam_algapi_exit() local 3477 if (t_alg->registered) in caam_algapi_exit() 3478 crypto_unregister_aead(&t_alg->aead); in caam_algapi_exit() 3482 struct caam_skcipher_alg *t_alg = driver_algs + i; in caam_algapi_exit() local 3484 if (t_alg->registered) in caam_algapi_exit() 3485 crypto_unregister_skcipher(&t_alg->skcipher); in caam_algapi_exit() 3489 static void caam_skcipher_alg_init(struct caam_skcipher_alg *t_alg) in caam_skcipher_alg_init() argument 3491 struct skcipher_alg *alg = &t_alg->skcipher; in caam_skcipher_alg_init() 3503 static void caam_aead_alg_init(struct caam_aead_alg *t_alg) in caam_aead_alg_init() argument 3505 struct aead_alg *alg = &t_alg->aead; in caam_aead_alg_init() [all …]
|