Lines Matching refs:ss_algs
167 static struct sun8i_ss_alg_template ss_algs[] = { variable
488 for (i = 0; i < ARRAY_SIZE(ss_algs); i++) { in sun8i_ss_debugfs_show()
489 if (!ss_algs[i].ss) in sun8i_ss_debugfs_show()
491 switch (ss_algs[i].type) { in sun8i_ss_debugfs_show()
494 ss_algs[i].alg.skcipher.base.base.cra_driver_name, in sun8i_ss_debugfs_show()
495 ss_algs[i].alg.skcipher.base.base.cra_name, in sun8i_ss_debugfs_show()
496 ss_algs[i].stat_req, ss_algs[i].stat_fb); in sun8i_ss_debugfs_show()
499 ss_algs[i].fbname); in sun8i_ss_debugfs_show()
501 ss_algs[i].stat_fb_len); in sun8i_ss_debugfs_show()
503 ss_algs[i].stat_fb_sglen); in sun8i_ss_debugfs_show()
505 ss_algs[i].stat_fb_align); in sun8i_ss_debugfs_show()
507 ss_algs[i].stat_fb_sgnum); in sun8i_ss_debugfs_show()
511 ss_algs[i].alg.rng.base.cra_driver_name, in sun8i_ss_debugfs_show()
512 ss_algs[i].alg.rng.base.cra_name, in sun8i_ss_debugfs_show()
513 ss_algs[i].stat_req, ss_algs[i].stat_bytes); in sun8i_ss_debugfs_show()
517 ss_algs[i].alg.hash.base.halg.base.cra_driver_name, in sun8i_ss_debugfs_show()
518 ss_algs[i].alg.hash.base.halg.base.cra_name, in sun8i_ss_debugfs_show()
519 ss_algs[i].stat_req, ss_algs[i].stat_fb); in sun8i_ss_debugfs_show()
521 ss_algs[i].fbname); in sun8i_ss_debugfs_show()
523 ss_algs[i].stat_fb_len); in sun8i_ss_debugfs_show()
525 ss_algs[i].stat_fb_sglen); in sun8i_ss_debugfs_show()
527 ss_algs[i].stat_fb_align); in sun8i_ss_debugfs_show()
529 ss_algs[i].stat_fb_sgnum); in sun8i_ss_debugfs_show()
684 for (i = 0; i < ARRAY_SIZE(ss_algs); i++) { in sun8i_ss_register_algs()
685 ss_algs[i].ss = ss; in sun8i_ss_register_algs()
686 switch (ss_algs[i].type) { in sun8i_ss_register_algs()
688 id = ss_algs[i].ss_algo_id; in sun8i_ss_register_algs()
693 ss_algs[i].alg.skcipher.base.base.cra_name); in sun8i_ss_register_algs()
694 ss_algs[i].ss = NULL; in sun8i_ss_register_algs()
697 id = ss_algs[i].ss_blockmode; in sun8i_ss_register_algs()
701 ss_algs[i].alg.skcipher.base.base.cra_name); in sun8i_ss_register_algs()
702 ss_algs[i].ss = NULL; in sun8i_ss_register_algs()
706 ss_algs[i].alg.skcipher.base.base.cra_name); in sun8i_ss_register_algs()
707 err = crypto_engine_register_skcipher(&ss_algs[i].alg.skcipher); in sun8i_ss_register_algs()
710 ss_algs[i].alg.skcipher.base.base.cra_name); in sun8i_ss_register_algs()
711 ss_algs[i].ss = NULL; in sun8i_ss_register_algs()
716 err = crypto_register_rng(&ss_algs[i].alg.rng); in sun8i_ss_register_algs()
719 ss_algs[i].alg.rng.base.cra_name); in sun8i_ss_register_algs()
720 ss_algs[i].ss = NULL; in sun8i_ss_register_algs()
724 id = ss_algs[i].ss_algo_id; in sun8i_ss_register_algs()
729 ss_algs[i].alg.hash.base.halg.base.cra_name); in sun8i_ss_register_algs()
730 ss_algs[i].ss = NULL; in sun8i_ss_register_algs()
734 ss_algs[i].alg.hash.base.halg.base.cra_name); in sun8i_ss_register_algs()
735 err = crypto_engine_register_ahash(&ss_algs[i].alg.hash); in sun8i_ss_register_algs()
738 ss_algs[i].alg.hash.base.halg.base.cra_name); in sun8i_ss_register_algs()
739 ss_algs[i].ss = NULL; in sun8i_ss_register_algs()
744 ss_algs[i].ss = NULL; in sun8i_ss_register_algs()
755 for (i = 0; i < ARRAY_SIZE(ss_algs); i++) { in sun8i_ss_unregister_algs()
756 if (!ss_algs[i].ss) in sun8i_ss_unregister_algs()
758 switch (ss_algs[i].type) { in sun8i_ss_unregister_algs()
761 ss_algs[i].alg.skcipher.base.base.cra_name); in sun8i_ss_unregister_algs()
762 crypto_engine_unregister_skcipher(&ss_algs[i].alg.skcipher); in sun8i_ss_unregister_algs()
766 ss_algs[i].alg.rng.base.cra_name); in sun8i_ss_unregister_algs()
767 crypto_unregister_rng(&ss_algs[i].alg.rng); in sun8i_ss_unregister_algs()
771 ss_algs[i].alg.hash.base.halg.base.cra_name); in sun8i_ss_unregister_algs()
772 crypto_engine_unregister_ahash(&ss_algs[i].alg.hash); in sun8i_ss_unregister_algs()