Lines Matching refs:tmpl
31 struct qce_alg_template *tmpl = to_cipher_tmpl(crypto_skcipher_reqtfm(req)); in qce_skcipher_done() local
32 struct qce_device *qce = tmpl->qce; in qce_skcipher_done()
59 qce->async_req_done(tmpl->qce, error); in qce_skcipher_done()
68 struct qce_alg_template *tmpl = to_cipher_tmpl(crypto_skcipher_reqtfm(req)); in qce_skcipher_async_req_handle() local
69 struct qce_device *qce = tmpl->qce; in qce_skcipher_async_req_handle()
146 ret = qce_start(async_req, tmpl->crypto_alg_type, req->cryptlen, 0); in qce_skcipher_async_req_handle()
223 struct qce_alg_template *tmpl = to_cipher_tmpl(tfm); in qce_skcipher_crypt() local
227 rctx->flags = tmpl->alg_flags; in qce_skcipher_crypt()
251 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base); in qce_skcipher_crypt()
383 struct qce_alg_template *tmpl; in qce_skcipher_register_one() local
387 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); in qce_skcipher_register_one()
388 if (!tmpl) in qce_skcipher_register_one()
391 alg = &tmpl->alg.skcipher; in qce_skcipher_register_one()
424 INIT_LIST_HEAD(&tmpl->entry); in qce_skcipher_register_one()
425 tmpl->crypto_alg_type = CRYPTO_ALG_TYPE_SKCIPHER; in qce_skcipher_register_one()
426 tmpl->alg_flags = def->flags; in qce_skcipher_register_one()
427 tmpl->qce = qce; in qce_skcipher_register_one()
431 kfree(tmpl); in qce_skcipher_register_one()
436 list_add_tail(&tmpl->entry, &skcipher_algs); in qce_skcipher_register_one()
443 struct qce_alg_template *tmpl, *n; in qce_skcipher_unregister() local
445 list_for_each_entry_safe(tmpl, n, &skcipher_algs, entry) { in qce_skcipher_unregister()
446 crypto_unregister_skcipher(&tmpl->alg.skcipher); in qce_skcipher_unregister()
447 list_del(&tmpl->entry); in qce_skcipher_unregister()
448 kfree(tmpl); in qce_skcipher_unregister()