Lines Matching refs:tmpl

29 	struct qce_alg_template *tmpl = to_aead_tmpl(crypto_aead_reqtfm(req));  in qce_aead_done()  local
30 struct qce_device *qce = tmpl->qce; in qce_aead_done()
96 struct qce_alg_template *tmpl = to_aead_tmpl(crypto_aead_reqtfm(req)); in qce_aead_prepare_result_buf() local
97 struct qce_device *qce = tmpl->qce; in qce_aead_prepare_result_buf()
116 struct qce_alg_template *tmpl = to_aead_tmpl(crypto_aead_reqtfm(req)); in qce_aead_prepare_dst_buf() local
117 struct qce_device *qce = tmpl->qce; in qce_aead_prepare_dst_buf()
304 struct qce_alg_template *tmpl = to_aead_tmpl(crypto_aead_reqtfm(req)); in qce_aead_prepare_buf() local
305 struct qce_device *qce = tmpl->qce; in qce_aead_prepare_buf()
414 struct qce_alg_template *tmpl = to_aead_tmpl(crypto_aead_reqtfm(req)); in qce_aead_async_req_handle() local
415 struct qce_device *qce = tmpl->qce; in qce_aead_async_req_handle()
478 ret = qce_start(async_req, tmpl->crypto_alg_type); in qce_aead_async_req_handle()
507 struct qce_alg_template *tmpl = to_aead_tmpl(tfm); in qce_aead_crypt() local
510 rctx->flags = tmpl->alg_flags; in qce_aead_crypt()
552 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base); in qce_aead_crypt()
761 struct qce_alg_template *tmpl; in qce_aead_register_one() local
765 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); in qce_aead_register_one()
766 if (!tmpl) in qce_aead_register_one()
769 alg = &tmpl->alg.aead; in qce_aead_register_one()
798 INIT_LIST_HEAD(&tmpl->entry); in qce_aead_register_one()
799 tmpl->crypto_alg_type = CRYPTO_ALG_TYPE_AEAD; in qce_aead_register_one()
800 tmpl->alg_flags = def->flags; in qce_aead_register_one()
801 tmpl->qce = qce; in qce_aead_register_one()
806 kfree(tmpl); in qce_aead_register_one()
810 list_add_tail(&tmpl->entry, &aead_algs); in qce_aead_register_one()
817 struct qce_alg_template *tmpl, *n; in qce_aead_unregister() local
819 list_for_each_entry_safe(tmpl, n, &aead_algs, entry) { in qce_aead_unregister()
820 crypto_unregister_aead(&tmpl->alg.aead); in qce_aead_unregister()
821 list_del(&tmpl->entry); in qce_aead_unregister()
822 kfree(tmpl); in qce_aead_unregister()