Lines Matching refs:tmpl
69 inst->tmpl->free(inst); in crypto_free_instance()
79 struct crypto_template *tmpl = inst->tmpl; in crypto_destroy_instance() local
82 crypto_tmpl_put(tmpl); in crypto_destroy_instance()
110 struct crypto_template *tmpl = inst->tmpl; in crypto_remove_instance() local
119 if (!tmpl || !crypto_tmpl_get(tmpl)) in crypto_remove_instance()
456 int crypto_register_template(struct crypto_template *tmpl) in crypto_register_template() argument
463 crypto_check_module_sig(tmpl->module); in crypto_register_template()
466 if (q == tmpl) in crypto_register_template()
470 list_add(&tmpl->list, &crypto_template_list); in crypto_register_template()
496 void crypto_unregister_template(struct crypto_template *tmpl) in crypto_unregister_template() argument
505 BUG_ON(list_empty(&tmpl->list)); in crypto_unregister_template()
506 list_del_init(&tmpl->list); in crypto_unregister_template()
508 list = &tmpl->instances; in crypto_unregister_template()
536 struct crypto_template *q, *tmpl = NULL; in __crypto_lookup_template() local
545 tmpl = q; in __crypto_lookup_template()
550 return tmpl; in __crypto_lookup_template()
560 int crypto_register_instance(struct crypto_template *tmpl, in crypto_register_instance() argument
570 inst->alg.cra_module = tmpl->module; in crypto_register_instance()
579 hlist_add_head(&inst->list, &tmpl->instances); in crypto_register_instance()
580 inst->tmpl = tmpl; in crypto_register_instance()