Home
last modified time | relevance | path

Searched refs:async_req (Results 1 – 25 of 29) sorted by relevance

12

/linux-6.1.9/crypto/
Dcrypto_engine.c74 struct crypto_async_request *async_req, *backlog; in crypto_pump_requests() local
120 async_req = crypto_dequeue_request(&engine->queue); in crypto_pump_requests()
121 if (!async_req) in crypto_pump_requests()
130 engine->cur_req = async_req; in crypto_pump_requests()
151 enginectx = crypto_tfm_ctx(async_req->tfm); in crypto_pump_requests()
154 ret = enginectx->op.prepare_request(engine, async_req); in crypto_pump_requests()
167 ret = enginectx->op.do_one_request(engine, async_req); in crypto_pump_requests()
190 async_req); in crypto_pump_requests()
201 crypto_enqueue_request_head(&engine->queue, async_req); in crypto_pump_requests()
211 ret = enginectx->op.unprepare_request(engine, async_req); in crypto_pump_requests()
[all …]
Drsa-pkcs1pad.c217 struct crypto_async_request async_req; in pkcs1pad_encrypt_sign_complete_cb() local
222 async_req.data = req->base.data; in pkcs1pad_encrypt_sign_complete_cb()
223 async_req.tfm = crypto_akcipher_tfm(crypto_akcipher_reqtfm(req)); in pkcs1pad_encrypt_sign_complete_cb()
224 async_req.flags = child_async_req->flags; in pkcs1pad_encrypt_sign_complete_cb()
225 req->base.complete(&async_req, in pkcs1pad_encrypt_sign_complete_cb()
335 struct crypto_async_request async_req; in pkcs1pad_decrypt_complete_cb() local
340 async_req.data = req->base.data; in pkcs1pad_decrypt_complete_cb()
341 async_req.tfm = crypto_akcipher_tfm(crypto_akcipher_reqtfm(req)); in pkcs1pad_decrypt_complete_cb()
342 async_req.flags = child_async_req->flags; in pkcs1pad_decrypt_complete_cb()
343 req->base.complete(&async_req, pkcs1pad_decrypt_complete(req, err)); in pkcs1pad_decrypt_complete_cb()
[all …]
/linux-6.1.9/drivers/crypto/qce/
Dcore.c63 static int qce_handle_request(struct crypto_async_request *async_req) in qce_handle_request() argument
67 u32 type = crypto_tfm_alg_type(async_req->tfm); in qce_handle_request()
73 ret = ops->async_req_handle(async_req); in qce_handle_request()
83 struct crypto_async_request *async_req, *backlog; in qce_handle_queue() local
99 async_req = crypto_dequeue_request(&qce->queue); in qce_handle_queue()
100 if (async_req) in qce_handle_queue()
101 qce->req = async_req; in qce_handle_queue()
105 if (!async_req) in qce_handle_queue()
114 err = qce_handle_request(async_req); in qce_handle_queue()
Dcommon.c146 static int qce_setup_regs_ahash(struct crypto_async_request *async_req) in qce_setup_regs_ahash() argument
148 struct ahash_request *req = ahash_request_cast(async_req); in qce_setup_regs_ahash()
149 struct crypto_ahash *ahash = __crypto_ahash_cast(async_req->tfm); in qce_setup_regs_ahash()
151 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); in qce_setup_regs_ahash()
154 unsigned int blocksize = crypto_tfm_alg_blocksize(async_req->tfm); in qce_setup_regs_ahash()
313 static int qce_setup_regs_skcipher(struct crypto_async_request *async_req) in qce_setup_regs_skcipher() argument
315 struct skcipher_request *req = skcipher_request_cast(async_req); in qce_setup_regs_skcipher()
317 struct qce_cipher_ctx *ctx = crypto_tfm_ctx(async_req->tfm); in qce_setup_regs_skcipher()
419 static int qce_setup_regs_aead(struct crypto_async_request *async_req) in qce_setup_regs_aead() argument
421 struct aead_request *req = aead_request_cast(async_req); in qce_setup_regs_aead()
[all …]
Dsha.c38 struct crypto_async_request *async_req = data; in qce_ahash_done() local
39 struct ahash_request *req = ahash_request_cast(async_req); in qce_ahash_done()
42 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); in qce_ahash_done()
75 static int qce_ahash_async_req_handle(struct crypto_async_request *async_req) in qce_ahash_async_req_handle() argument
77 struct ahash_request *req = ahash_request_cast(async_req); in qce_ahash_async_req_handle()
79 struct qce_sha_ctx *ctx = crypto_tfm_ctx(async_req->tfm); in qce_ahash_async_req_handle()
80 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); in qce_ahash_async_req_handle()
112 &rctx->result_sg, 1, qce_ahash_done, async_req); in qce_ahash_async_req_handle()
118 ret = qce_start(async_req, tmpl->crypto_alg_type); in qce_ahash_async_req_handle()
Dskcipher.c29 struct crypto_async_request *async_req = data; in qce_skcipher_done() local
30 struct skcipher_request *req = skcipher_request_cast(async_req); in qce_skcipher_done()
64 qce_skcipher_async_req_handle(struct crypto_async_request *async_req) in qce_skcipher_async_req_handle() argument
66 struct skcipher_request *req = skcipher_request_cast(async_req); in qce_skcipher_async_req_handle()
146 qce_skcipher_done, async_req); in qce_skcipher_async_req_handle()
152 ret = qce_start(async_req, tmpl->crypto_alg_type); in qce_skcipher_async_req_handle()
Daead.c25 struct crypto_async_request *async_req = data; in qce_aead_done() local
26 struct aead_request *req = aead_request_cast(async_req); in qce_aead_done()
28 struct qce_aead_ctx *ctx = crypto_tfm_ctx(async_req->tfm); in qce_aead_done()
408 qce_aead_async_req_handle(struct crypto_async_request *async_req) in qce_aead_async_req_handle() argument
410 struct aead_request *req = aead_request_cast(async_req); in qce_aead_async_req_handle()
413 struct qce_aead_ctx *ctx = crypto_tfm_ctx(async_req->tfm); in qce_aead_async_req_handle()
472 qce_aead_done, async_req); in qce_aead_async_req_handle()
478 ret = qce_start(async_req, tmpl->crypto_alg_type); in qce_aead_async_req_handle()
Dcore.h57 int (*async_req_handle)(struct crypto_async_request *async_req);
Dcommon.h102 int qce_start(struct crypto_async_request *async_req, u32 type);
/linux-6.1.9/drivers/crypto/ccp/
Dccp-crypto-aes.c22 static int ccp_aes_complete(struct crypto_async_request *async_req, int ret) in ccp_aes_complete() argument
24 struct skcipher_request *req = skcipher_request_cast(async_req); in ccp_aes_complete()
131 static int ccp_aes_rfc3686_complete(struct crypto_async_request *async_req, in ccp_aes_rfc3686_complete() argument
134 struct skcipher_request *req = skcipher_request_cast(async_req); in ccp_aes_rfc3686_complete()
140 return ccp_aes_complete(async_req, ret); in ccp_aes_rfc3686_complete()
Dccp-crypto-des3.c21 static int ccp_des3_complete(struct crypto_async_request *async_req, int ret) in ccp_des3_complete() argument
23 struct skcipher_request *req = skcipher_request_cast(async_req); in ccp_des3_complete()
Dccp-crypto-aes-xts.c62 static int ccp_aes_xts_complete(struct crypto_async_request *async_req, int ret) in ccp_aes_xts_complete() argument
64 struct skcipher_request *req = skcipher_request_cast(async_req); in ccp_aes_xts_complete()
Dccp-crypto-rsa.c44 static int ccp_rsa_complete(struct crypto_async_request *async_req, int ret) in ccp_rsa_complete() argument
46 struct akcipher_request *req = akcipher_request_cast(async_req); in ccp_rsa_complete()
Dccp-crypto-aes-cmac.c23 static int ccp_aes_cmac_complete(struct crypto_async_request *async_req, in ccp_aes_cmac_complete() argument
26 struct ahash_request *req = ahash_request_cast(async_req); in ccp_aes_cmac_complete()
Dccp-crypto-sha.c27 static int ccp_sha_complete(struct crypto_async_request *async_req, int ret) in ccp_sha_complete() argument
29 struct ahash_request *req = ahash_request_cast(async_req); in ccp_sha_complete()
/linux-6.1.9/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-cipher.c115 static int sun8i_ce_cipher_prepare(struct crypto_engine *engine, void *async_req) in sun8i_ce_cipher_prepare() argument
117 struct skcipher_request *areq = container_of(async_req, struct skcipher_request, base); in sun8i_ce_cipher_prepare()
314 static int sun8i_ce_cipher_unprepare(struct crypto_engine *engine, void *async_req) in sun8i_ce_cipher_unprepare() argument
316 struct skcipher_request *areq = container_of(async_req, struct skcipher_request, base); in sun8i_ce_cipher_unprepare()
/linux-6.1.9/drivers/crypto/
Dsahara.c1039 struct crypto_async_request *async_req; in sahara_queue_manage() local
1048 async_req = crypto_dequeue_request(&dev->queue); in sahara_queue_manage()
1054 if (async_req) { in sahara_queue_manage()
1055 if (crypto_tfm_alg_type(async_req->tfm) == in sahara_queue_manage()
1058 ahash_request_cast(async_req); in sahara_queue_manage()
1063 skcipher_request_cast(async_req); in sahara_queue_manage()
1068 async_req->complete(async_req, ret); in sahara_queue_manage()
Ds5p-sss.c1374 struct crypto_async_request *async_req, *backlog; in s5p_hash_handle_queue() local
1390 async_req = crypto_dequeue_request(&dd->hash_queue); in s5p_hash_handle_queue()
1391 if (async_req) in s5p_hash_handle_queue()
1396 if (!async_req) in s5p_hash_handle_queue()
1402 req = ahash_request_cast(async_req); in s5p_hash_handle_queue()
1978 struct crypto_async_request *async_req, *backlog; in s5p_tasklet_cb() local
1984 async_req = crypto_dequeue_request(&dev->queue); in s5p_tasklet_cb()
1986 if (!async_req) { in s5p_tasklet_cb()
1996 dev->req = skcipher_request_cast(async_req); in s5p_tasklet_cb()
Dimg-hash.c503 struct crypto_async_request *async_req, *backlog; in img_hash_handle_queue() local
519 async_req = crypto_dequeue_request(&hdev->queue); in img_hash_handle_queue()
520 if (async_req) in img_hash_handle_queue()
525 if (!async_req) in img_hash_handle_queue()
531 req = ahash_request_cast(async_req); in img_hash_handle_queue()
Datmel-tdes.c599 struct crypto_async_request *async_req, *backlog; in atmel_tdes_handle_queue() local
613 async_req = crypto_dequeue_request(&dd->queue); in atmel_tdes_handle_queue()
614 if (async_req) in atmel_tdes_handle_queue()
618 if (!async_req) in atmel_tdes_handle_queue()
624 req = skcipher_request_cast(async_req); in atmel_tdes_handle_queue()
Dhifn_795x.c1915 struct crypto_async_request *async_req; in hifn_flush() local
1931 while ((async_req = crypto_dequeue_request(&dev->queue))) { in hifn_flush()
1932 req = skcipher_request_cast(async_req); in hifn_flush()
2042 struct crypto_async_request *async_req, *backlog; in hifn_process_queue() local
2050 async_req = crypto_dequeue_request(&dev->queue); in hifn_process_queue()
2053 if (!async_req) in hifn_process_queue()
2059 req = skcipher_request_cast(async_req); in hifn_process_queue()
/linux-6.1.9/drivers/net/usb/
Drtl8150.c141 struct async_req { struct
169 struct async_req *req = (struct async_req *)urb->context; in async_set_reg_cb()
182 struct async_req *req; in async_set_registers()
184 req = kmalloc(sizeof(struct async_req), GFP_ATOMIC); in async_set_registers()
/linux-6.1.9/drivers/nvme/host/
Dtcp.c170 struct nvme_tcp_request async_req; member
219 return req == &req->queue->ctrl->async_req; in nvme_tcp_async_req()
1277 struct nvme_tcp_request *async = &ctrl->async_req; in nvme_tcp_free_async_req()
1285 struct nvme_tcp_request *async = &ctrl->async_req; in nvme_tcp_alloc_async_req()
1698 if (to_tcp_ctrl(ctrl)->async_req.pdu) { in nvme_tcp_free_admin_queue()
1701 to_tcp_ctrl(ctrl)->async_req.pdu = NULL; in nvme_tcp_free_admin_queue()
2249 struct nvme_tcp_cmd_pdu *pdu = ctrl->async_req.pdu; in nvme_tcp_submit_async_event()
2265 ctrl->async_req.state = NVME_TCP_SEND_CMD_PDU; in nvme_tcp_submit_async_event()
2266 ctrl->async_req.offset = 0; in nvme_tcp_submit_async_event()
2267 ctrl->async_req.curr_bio = NULL; in nvme_tcp_submit_async_event()
[all …]
/linux-6.1.9/drivers/crypto/amcc/
Dcrypto4xx_core.c527 req = skcipher_request_cast(pd_uinfo->async_req); in crypto4xx_cipher_done()
559 ahash_req = ahash_request_cast(pd_uinfo->async_req); in crypto4xx_ahash_done()
575 struct aead_request *aead_req = container_of(pd_uinfo->async_req, in crypto4xx_aead_done()
640 switch (crypto_tfm_alg_type(pd_uinfo->async_req->tfm)) { in crypto4xx_pd_done()
816 pd_uinfo->async_req = req; in crypto4xx_build_pd()
Dcrypto4xx_core.h71 struct crypto_async_request *async_req; /* base crypto request member

12