Lines Matching refs:ce_algs

302 static struct sun8i_ce_alg_template ce_algs[] = {  variable
650 for (i = 0; i < ARRAY_SIZE(ce_algs); i++) { in sun8i_ce_debugfs_show()
651 if (!ce_algs[i].ce) in sun8i_ce_debugfs_show()
653 switch (ce_algs[i].type) { in sun8i_ce_debugfs_show()
656 ce_algs[i].alg.skcipher.base.base.cra_driver_name, in sun8i_ce_debugfs_show()
657 ce_algs[i].alg.skcipher.base.base.cra_name, in sun8i_ce_debugfs_show()
658 ce_algs[i].stat_req, ce_algs[i].stat_fb); in sun8i_ce_debugfs_show()
660 ce_algs[i].fbname); in sun8i_ce_debugfs_show()
662 ce_algs[i].stat_fb_len0); in sun8i_ce_debugfs_show()
664 ce_algs[i].stat_fb_mod16); in sun8i_ce_debugfs_show()
666 ce_algs[i].stat_fb_leniv); in sun8i_ce_debugfs_show()
668 ce_algs[i].stat_fb_srcali); in sun8i_ce_debugfs_show()
670 ce_algs[i].stat_fb_dstali); in sun8i_ce_debugfs_show()
672 ce_algs[i].stat_fb_srclen); in sun8i_ce_debugfs_show()
674 ce_algs[i].stat_fb_dstlen); in sun8i_ce_debugfs_show()
676 ce_algs[i].stat_fb_maxsg); in sun8i_ce_debugfs_show()
680 ce_algs[i].alg.hash.base.halg.base.cra_driver_name, in sun8i_ce_debugfs_show()
681 ce_algs[i].alg.hash.base.halg.base.cra_name, in sun8i_ce_debugfs_show()
682 ce_algs[i].stat_req, ce_algs[i].stat_fb); in sun8i_ce_debugfs_show()
684 ce_algs[i].fbname); in sun8i_ce_debugfs_show()
686 ce_algs[i].stat_fb_len0); in sun8i_ce_debugfs_show()
688 ce_algs[i].stat_fb_srclen); in sun8i_ce_debugfs_show()
690 ce_algs[i].stat_fb_srcali); in sun8i_ce_debugfs_show()
692 ce_algs[i].stat_fb_maxsg); in sun8i_ce_debugfs_show()
696 ce_algs[i].alg.rng.base.cra_driver_name, in sun8i_ce_debugfs_show()
697 ce_algs[i].alg.rng.base.cra_name, in sun8i_ce_debugfs_show()
698 ce_algs[i].stat_req, ce_algs[i].stat_bytes); in sun8i_ce_debugfs_show()
889 for (i = 0; i < ARRAY_SIZE(ce_algs); i++) { in sun8i_ce_register_algs()
890 ce_algs[i].ce = ce; in sun8i_ce_register_algs()
891 switch (ce_algs[i].type) { in sun8i_ce_register_algs()
893 id = ce_algs[i].ce_algo_id; in sun8i_ce_register_algs()
898 ce_algs[i].alg.skcipher.base.base.cra_name); in sun8i_ce_register_algs()
899 ce_algs[i].ce = NULL; in sun8i_ce_register_algs()
902 id = ce_algs[i].ce_blockmode; in sun8i_ce_register_algs()
906 ce_algs[i].alg.skcipher.base.base.cra_name); in sun8i_ce_register_algs()
907 ce_algs[i].ce = NULL; in sun8i_ce_register_algs()
911 ce_algs[i].alg.skcipher.base.base.cra_name); in sun8i_ce_register_algs()
912 err = crypto_engine_register_skcipher(&ce_algs[i].alg.skcipher); in sun8i_ce_register_algs()
915 ce_algs[i].alg.skcipher.base.base.cra_name); in sun8i_ce_register_algs()
916 ce_algs[i].ce = NULL; in sun8i_ce_register_algs()
921 id = ce_algs[i].ce_algo_id; in sun8i_ce_register_algs()
926 ce_algs[i].alg.hash.base.halg.base.cra_name); in sun8i_ce_register_algs()
927 ce_algs[i].ce = NULL; in sun8i_ce_register_algs()
931 ce_algs[i].alg.hash.base.halg.base.cra_name); in sun8i_ce_register_algs()
932 err = crypto_engine_register_ahash(&ce_algs[i].alg.hash); in sun8i_ce_register_algs()
935 ce_algs[i].alg.hash.base.halg.base.cra_name); in sun8i_ce_register_algs()
936 ce_algs[i].ce = NULL; in sun8i_ce_register_algs()
944 ce_algs[i].alg.rng.base.cra_name); in sun8i_ce_register_algs()
945 ce_algs[i].ce = NULL; in sun8i_ce_register_algs()
949 ce_algs[i].alg.rng.base.cra_name); in sun8i_ce_register_algs()
950 err = crypto_register_rng(&ce_algs[i].alg.rng); in sun8i_ce_register_algs()
953 ce_algs[i].alg.rng.base.cra_name); in sun8i_ce_register_algs()
954 ce_algs[i].ce = NULL; in sun8i_ce_register_algs()
958 ce_algs[i].ce = NULL; in sun8i_ce_register_algs()
969 for (i = 0; i < ARRAY_SIZE(ce_algs); i++) { in sun8i_ce_unregister_algs()
970 if (!ce_algs[i].ce) in sun8i_ce_unregister_algs()
972 switch (ce_algs[i].type) { in sun8i_ce_unregister_algs()
975 ce_algs[i].alg.skcipher.base.base.cra_name); in sun8i_ce_unregister_algs()
976 crypto_engine_unregister_skcipher(&ce_algs[i].alg.skcipher); in sun8i_ce_unregister_algs()
980 ce_algs[i].alg.hash.base.halg.base.cra_name); in sun8i_ce_unregister_algs()
981 crypto_engine_unregister_ahash(&ce_algs[i].alg.hash); in sun8i_ce_unregister_algs()
985 ce_algs[i].alg.rng.base.cra_name); in sun8i_ce_unregister_algs()
986 crypto_unregister_rng(&ce_algs[i].alg.rng); in sun8i_ce_unregister_algs()