Lines Matching refs:tmpl
32 struct qce_alg_template *tmpl = to_cipher_tmpl(crypto_skcipher_reqtfm(req)); in qce_skcipher_done() local
33 struct qce_device *qce = tmpl->qce; in qce_skcipher_done()
60 qce->async_req_done(tmpl->qce, error); in qce_skcipher_done()
69 struct qce_alg_template *tmpl = to_cipher_tmpl(crypto_skcipher_reqtfm(req)); in qce_skcipher_async_req_handle() local
70 struct qce_device *qce = tmpl->qce; in qce_skcipher_async_req_handle()
152 ret = qce_start(async_req, tmpl->crypto_alg_type); in qce_skcipher_async_req_handle()
261 struct qce_alg_template *tmpl = to_cipher_tmpl(tfm); in qce_skcipher_crypt() local
266 rctx->flags = tmpl->alg_flags; in qce_skcipher_crypt()
307 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base); in qce_skcipher_crypt()
439 struct qce_alg_template *tmpl; in qce_skcipher_register_one() local
443 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); in qce_skcipher_register_one()
444 if (!tmpl) in qce_skcipher_register_one()
447 alg = &tmpl->alg.skcipher; in qce_skcipher_register_one()
480 INIT_LIST_HEAD(&tmpl->entry); in qce_skcipher_register_one()
481 tmpl->crypto_alg_type = CRYPTO_ALG_TYPE_SKCIPHER; in qce_skcipher_register_one()
482 tmpl->alg_flags = def->flags; in qce_skcipher_register_one()
483 tmpl->qce = qce; in qce_skcipher_register_one()
488 kfree(tmpl); in qce_skcipher_register_one()
492 list_add_tail(&tmpl->entry, &skcipher_algs); in qce_skcipher_register_one()
499 struct qce_alg_template *tmpl, *n; in qce_skcipher_unregister() local
501 list_for_each_entry_safe(tmpl, n, &skcipher_algs, entry) { in qce_skcipher_unregister()
502 crypto_unregister_skcipher(&tmpl->alg.skcipher); in qce_skcipher_unregister()
503 list_del(&tmpl->entry); in qce_skcipher_unregister()
504 kfree(tmpl); in qce_skcipher_unregister()