Lines Matching refs:tmpl
22 struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); in qce_ablkcipher_done() local
23 struct qce_device *qce = tmpl->qce; in qce_ablkcipher_done()
48 qce->async_req_done(tmpl->qce, error); in qce_ablkcipher_done()
57 struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); in qce_ablkcipher_async_req_handle() local
58 struct qce_device *qce = tmpl->qce; in qce_ablkcipher_async_req_handle()
134 ret = qce_start(async_req, tmpl->crypto_alg_type, req->nbytes, 0); in qce_ablkcipher_async_req_handle()
216 struct qce_alg_template *tmpl = to_cipher_tmpl(tfm); in qce_ablkcipher_crypt() local
219 rctx->flags = tmpl->alg_flags; in qce_ablkcipher_crypt()
237 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base); in qce_ablkcipher_crypt()
357 struct qce_alg_template *tmpl; in qce_ablkcipher_register_one() local
361 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); in qce_ablkcipher_register_one()
362 if (!tmpl) in qce_ablkcipher_register_one()
365 alg = &tmpl->alg.crypto; in qce_ablkcipher_register_one()
391 INIT_LIST_HEAD(&tmpl->entry); in qce_ablkcipher_register_one()
392 tmpl->crypto_alg_type = CRYPTO_ALG_TYPE_ABLKCIPHER; in qce_ablkcipher_register_one()
393 tmpl->alg_flags = def->flags; in qce_ablkcipher_register_one()
394 tmpl->qce = qce; in qce_ablkcipher_register_one()
398 kfree(tmpl); in qce_ablkcipher_register_one()
403 list_add_tail(&tmpl->entry, &ablkcipher_algs); in qce_ablkcipher_register_one()
410 struct qce_alg_template *tmpl, *n; in qce_ablkcipher_unregister() local
412 list_for_each_entry_safe(tmpl, n, &ablkcipher_algs, entry) { in qce_ablkcipher_unregister()
413 crypto_unregister_alg(&tmpl->alg.crypto); in qce_ablkcipher_unregister()
414 list_del(&tmpl->entry); in qce_ablkcipher_unregister()
415 kfree(tmpl); in qce_ablkcipher_unregister()