Lines Matching refs:tmpl
76 struct crypto_template *tmpl = inst->tmpl; in crypto_destroy_instance_workfn() local
79 crypto_tmpl_put(tmpl); in crypto_destroy_instance_workfn()
128 struct crypto_template *tmpl = inst->tmpl; in crypto_remove_instance() local
135 if (!tmpl || !crypto_tmpl_get(tmpl)) in crypto_remove_instance()
502 int crypto_register_template(struct crypto_template *tmpl) in crypto_register_template() argument
509 crypto_check_module_sig(tmpl->module); in crypto_register_template()
512 if (q == tmpl) in crypto_register_template()
516 list_add(&tmpl->list, &crypto_template_list); in crypto_register_template()
542 void crypto_unregister_template(struct crypto_template *tmpl) in crypto_unregister_template() argument
551 BUG_ON(list_empty(&tmpl->list)); in crypto_unregister_template()
552 list_del_init(&tmpl->list); in crypto_unregister_template()
554 list = &tmpl->instances; in crypto_unregister_template()
582 struct crypto_template *q, *tmpl = NULL; in __crypto_lookup_template() local
591 tmpl = q; in __crypto_lookup_template()
596 return tmpl; in __crypto_lookup_template()
606 int crypto_register_instance(struct crypto_template *tmpl, in crypto_register_instance() argument
619 inst->alg.cra_module = tmpl->module; in crypto_register_instance()
650 hlist_add_head(&inst->list, &tmpl->instances); in crypto_register_instance()
651 inst->tmpl = tmpl; in crypto_register_instance()