Lines Matching refs:rk_cipher_algs
182 static struct rk_crypto_tmp *rk_cipher_algs[] = { variable
207 for (i = 0; i < ARRAY_SIZE(rk_cipher_algs); i++) { in rk_crypto_debugfs_show()
208 if (!rk_cipher_algs[i]->dev) in rk_crypto_debugfs_show()
210 switch (rk_cipher_algs[i]->type) { in rk_crypto_debugfs_show()
213 rk_cipher_algs[i]->alg.skcipher.base.base.cra_driver_name, in rk_crypto_debugfs_show()
214 rk_cipher_algs[i]->alg.skcipher.base.base.cra_name, in rk_crypto_debugfs_show()
215 rk_cipher_algs[i]->stat_req, rk_cipher_algs[i]->stat_fb); in rk_crypto_debugfs_show()
217 rk_cipher_algs[i]->stat_fb_len); in rk_crypto_debugfs_show()
219 rk_cipher_algs[i]->stat_fb_align); in rk_crypto_debugfs_show()
221 rk_cipher_algs[i]->stat_fb_sgdiff); in rk_crypto_debugfs_show()
225 rk_cipher_algs[i]->alg.hash.base.halg.base.cra_driver_name, in rk_crypto_debugfs_show()
226 rk_cipher_algs[i]->alg.hash.base.halg.base.cra_name, in rk_crypto_debugfs_show()
227 rk_cipher_algs[i]->stat_req, rk_cipher_algs[i]->stat_fb); in rk_crypto_debugfs_show()
257 for (i = 0; i < ARRAY_SIZE(rk_cipher_algs); i++) { in rk_crypto_register()
258 rk_cipher_algs[i]->dev = crypto_info; in rk_crypto_register()
259 switch (rk_cipher_algs[i]->type) { in rk_crypto_register()
262 rk_cipher_algs[i]->alg.skcipher.base.base.cra_name, in rk_crypto_register()
263 rk_cipher_algs[i]->alg.skcipher.base.base.cra_driver_name); in rk_crypto_register()
264 err = crypto_engine_register_skcipher(&rk_cipher_algs[i]->alg.skcipher); in rk_crypto_register()
268 rk_cipher_algs[i]->alg.hash.base.halg.base.cra_name, in rk_crypto_register()
269 rk_cipher_algs[i]->alg.hash.base.halg.base.cra_driver_name); in rk_crypto_register()
270 err = crypto_engine_register_ahash(&rk_cipher_algs[i]->alg.hash); in rk_crypto_register()
282 if (rk_cipher_algs[i]->type == CRYPTO_ALG_TYPE_SKCIPHER) in rk_crypto_register()
283 crypto_engine_unregister_skcipher(&rk_cipher_algs[k]->alg.skcipher); in rk_crypto_register()
285 crypto_engine_unregister_ahash(&rk_cipher_algs[i]->alg.hash); in rk_crypto_register()
294 for (i = 0; i < ARRAY_SIZE(rk_cipher_algs); i++) { in rk_crypto_unregister()
295 if (rk_cipher_algs[i]->type == CRYPTO_ALG_TYPE_SKCIPHER) in rk_crypto_unregister()
296 crypto_engine_unregister_skcipher(&rk_cipher_algs[i]->alg.skcipher); in rk_crypto_unregister()
298 crypto_engine_unregister_ahash(&rk_cipher_algs[i]->alg.hash); in rk_crypto_unregister()