Lines Matching refs:tmpl
73 inst->tmpl->free(inst); in crypto_free_instance()
83 struct crypto_template *tmpl = inst->tmpl; in crypto_destroy_instance() local
86 crypto_tmpl_put(tmpl); in crypto_destroy_instance()
115 struct crypto_template *tmpl = inst->tmpl; in crypto_remove_instance() local
124 if (!tmpl || !crypto_tmpl_get(tmpl)) in crypto_remove_instance()
446 int crypto_register_template(struct crypto_template *tmpl) in crypto_register_template() argument
453 crypto_check_module_sig(tmpl->module); in crypto_register_template()
456 if (q == tmpl) in crypto_register_template()
460 list_add(&tmpl->list, &crypto_template_list); in crypto_register_template()
461 crypto_notify(CRYPTO_MSG_TMPL_REGISTER, tmpl); in crypto_register_template()
469 void crypto_unregister_template(struct crypto_template *tmpl) in crypto_unregister_template() argument
478 BUG_ON(list_empty(&tmpl->list)); in crypto_unregister_template()
479 list_del_init(&tmpl->list); in crypto_unregister_template()
481 list = &tmpl->instances; in crypto_unregister_template()
488 crypto_notify(CRYPTO_MSG_TMPL_UNREGISTER, tmpl); in crypto_unregister_template()
502 struct crypto_template *q, *tmpl = NULL; in __crypto_lookup_template() local
511 tmpl = q; in __crypto_lookup_template()
516 return tmpl; in __crypto_lookup_template()
526 int crypto_register_instance(struct crypto_template *tmpl, in crypto_register_instance() argument
536 inst->alg.cra_module = tmpl->module; in crypto_register_instance()
548 hlist_add_head(&inst->list, &tmpl->instances); in crypto_register_instance()
549 inst->tmpl = tmpl; in crypto_register_instance()