Lines Matching refs:tmpl
83 inst->tmpl->free(inst); in crypto_free_instance()
93 struct crypto_template *tmpl = inst->tmpl; in crypto_destroy_instance() local
96 crypto_tmpl_put(tmpl); in crypto_destroy_instance()
124 struct crypto_template *tmpl = inst->tmpl; in crypto_remove_instance() local
133 if (!tmpl || !crypto_tmpl_get(tmpl)) in crypto_remove_instance()
466 int crypto_register_template(struct crypto_template *tmpl) in crypto_register_template() argument
473 crypto_check_module_sig(tmpl->module); in crypto_register_template()
476 if (q == tmpl) in crypto_register_template()
480 list_add(&tmpl->list, &crypto_template_list); in crypto_register_template()
488 void crypto_unregister_template(struct crypto_template *tmpl) in crypto_unregister_template() argument
497 BUG_ON(list_empty(&tmpl->list)); in crypto_unregister_template()
498 list_del_init(&tmpl->list); in crypto_unregister_template()
500 list = &tmpl->instances; in crypto_unregister_template()
519 struct crypto_template *q, *tmpl = NULL; in __crypto_lookup_template() local
528 tmpl = q; in __crypto_lookup_template()
533 return tmpl; in __crypto_lookup_template()
543 int crypto_register_instance(struct crypto_template *tmpl, in crypto_register_instance() argument
553 inst->alg.cra_module = tmpl->module; in crypto_register_instance()
562 hlist_add_head(&inst->list, &tmpl->instances); in crypto_register_instance()
563 inst->tmpl = tmpl; in crypto_register_instance()