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()
151 ret = qce_start(async_req, tmpl->crypto_alg_type, req->cryptlen, 0); in qce_skcipher_async_req_handle()
228 struct qce_alg_template *tmpl = to_cipher_tmpl(tfm); in qce_skcipher_crypt() local
232 rctx->flags = tmpl->alg_flags; in qce_skcipher_crypt()
256 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base); in qce_skcipher_crypt()
388 struct qce_alg_template *tmpl; in qce_skcipher_register_one() local
392 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); in qce_skcipher_register_one()
393 if (!tmpl) in qce_skcipher_register_one()
396 alg = &tmpl->alg.skcipher; in qce_skcipher_register_one()
429 INIT_LIST_HEAD(&tmpl->entry); in qce_skcipher_register_one()
430 tmpl->crypto_alg_type = CRYPTO_ALG_TYPE_SKCIPHER; in qce_skcipher_register_one()
431 tmpl->alg_flags = def->flags; in qce_skcipher_register_one()
432 tmpl->qce = qce; in qce_skcipher_register_one()
437 kfree(tmpl); in qce_skcipher_register_one()
441 list_add_tail(&tmpl->entry, &skcipher_algs); in qce_skcipher_register_one()
448 struct qce_alg_template *tmpl, *n; in qce_skcipher_unregister() local
450 list_for_each_entry_safe(tmpl, n, &skcipher_algs, entry) { in qce_skcipher_unregister()
451 crypto_unregister_skcipher(&tmpl->alg.skcipher); in qce_skcipher_unregister()
452 list_del(&tmpl->entry); in qce_skcipher_unregister()
453 kfree(tmpl); in qce_skcipher_unregister()