/linux-4.1.27/drivers/crypto/qce/ |
H A D | common.c | 230 static int qce_setup_regs_ahash(struct crypto_async_request *async_req, qce_setup_regs_ahash() argument 233 struct ahash_request *req = ahash_request_cast(async_req); qce_setup_regs_ahash() 234 struct crypto_ahash *ahash = __crypto_ahash_cast(async_req->tfm); qce_setup_regs_ahash() 236 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); qce_setup_regs_ahash() 239 unsigned int blocksize = crypto_tfm_alg_blocksize(async_req->tfm); qce_setup_regs_ahash() 315 static int qce_setup_regs_ablkcipher(struct crypto_async_request *async_req, qce_setup_regs_ablkcipher() argument 318 struct ablkcipher_request *req = ablkcipher_request_cast(async_req); qce_setup_regs_ablkcipher() 320 struct qce_cipher_ctx *ctx = crypto_tfm_ctx(async_req->tfm); qce_setup_regs_ablkcipher() 321 struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); qce_setup_regs_ablkcipher() 396 int qce_start(struct crypto_async_request *async_req, u32 type, u32 totallen, qce_start() argument 401 return qce_setup_regs_ablkcipher(async_req, totallen, offset); qce_start() 403 return qce_setup_regs_ahash(async_req, totallen, offset); qce_start()
|
H A D | core.c | 62 static int qce_handle_request(struct crypto_async_request *async_req) qce_handle_request() argument 66 u32 type = crypto_tfm_alg_type(async_req->tfm); qce_handle_request() 72 ret = ops->async_req_handle(async_req); qce_handle_request() 82 struct crypto_async_request *async_req, *backlog; qce_handle_queue() local 98 async_req = crypto_dequeue_request(&qce->queue); qce_handle_queue() 99 if (async_req) qce_handle_queue() 100 qce->req = async_req; qce_handle_queue() 104 if (!async_req) qce_handle_queue() 113 err = qce_handle_request(async_req); qce_handle_queue()
|
H A D | ablkcipher.c | 27 struct crypto_async_request *async_req = data; qce_ablkcipher_done() local 28 struct ablkcipher_request *req = ablkcipher_request_cast(async_req); qce_ablkcipher_done() 30 struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); qce_ablkcipher_done() 62 qce_ablkcipher_async_req_handle(struct crypto_async_request *async_req) qce_ablkcipher_async_req_handle() argument 64 struct ablkcipher_request *req = ablkcipher_request_cast(async_req); qce_ablkcipher_async_req_handle() 67 struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); qce_ablkcipher_async_req_handle() 136 qce_ablkcipher_done, async_req); qce_ablkcipher_async_req_handle() 142 ret = qce_start(async_req, tmpl->crypto_alg_type, req->nbytes, 0); qce_ablkcipher_async_req_handle()
|
H A D | sha.c | 39 struct crypto_async_request *async_req = data; qce_ahash_done() local 40 struct ahash_request *req = ahash_request_cast(async_req); qce_ahash_done() 43 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); qce_ahash_done() 77 static int qce_ahash_async_req_handle(struct crypto_async_request *async_req) qce_ahash_async_req_handle() argument 79 struct ahash_request *req = ahash_request_cast(async_req); qce_ahash_async_req_handle() 81 struct qce_sha_ctx *ctx = crypto_tfm_ctx(async_req->tfm); qce_ahash_async_req_handle() 82 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); qce_ahash_async_req_handle() 109 &rctx->result_sg, 1, qce_ahash_done, async_req); qce_ahash_async_req_handle() 115 ret = qce_start(async_req, tmpl->crypto_alg_type, 0, 0); qce_ahash_async_req_handle()
|
H A D | core.h | 65 int (*async_req_handle)(struct crypto_async_request *async_req);
|
H A D | common.h | 99 int qce_start(struct crypto_async_request *async_req, u32 type, u32 totallen,
|
/linux-4.1.27/drivers/crypto/ccp/ |
H A D | ccp-crypto-aes.c | 25 static int ccp_aes_complete(struct crypto_async_request *async_req, int ret) ccp_aes_complete() argument 27 struct ablkcipher_request *req = ablkcipher_request_cast(async_req); ccp_aes_complete() 143 static int ccp_aes_rfc3686_complete(struct crypto_async_request *async_req, ccp_aes_rfc3686_complete() argument 146 struct ablkcipher_request *req = ablkcipher_request_cast(async_req); ccp_aes_rfc3686_complete() 152 return ccp_aes_complete(async_req, ret); ccp_aes_rfc3686_complete()
|
H A D | ccp-crypto-aes-xts.c | 84 static int ccp_aes_xts_complete(struct crypto_async_request *async_req, int ret) ccp_aes_xts_complete() argument 86 struct ablkcipher_request *req = ablkcipher_request_cast(async_req); ccp_aes_xts_complete()
|
H A D | ccp-crypto-aes-cmac.c | 26 static int ccp_aes_cmac_complete(struct crypto_async_request *async_req, ccp_aes_cmac_complete() argument 29 struct ahash_request *req = ahash_request_cast(async_req); ccp_aes_cmac_complete()
|
H A D | ccp-crypto-sha.c | 26 static int ccp_sha_complete(struct crypto_async_request *async_req, int ret) ccp_sha_complete() argument 28 struct ahash_request *req = ahash_request_cast(async_req); ccp_sha_complete()
|
/linux-4.1.27/drivers/crypto/ |
H A D | s5p-sss.c | 484 struct crypto_async_request *async_req, *backlog; s5p_tasklet_cb() local 490 async_req = crypto_dequeue_request(&dev->queue); s5p_tasklet_cb() 492 if (!async_req) { s5p_tasklet_cb() 502 dev->req = ablkcipher_request_cast(async_req); s5p_tasklet_cb()
|
H A D | mv_cesa.c | 597 struct crypto_async_request *async_req = NULL; queue_manag() local 608 async_req = crypto_dequeue_request(&cpg->queue); queue_manag() 609 if (async_req) { queue_manag() 621 if (async_req) { queue_manag() 622 if (crypto_tfm_alg_type(async_req->tfm) != queue_manag() 625 ablkcipher_request_cast(async_req); queue_manag() 629 ahash_request_cast(async_req); queue_manag() 632 async_req = NULL; queue_manag()
|
H A D | bfin_crc.c | 302 struct crypto_async_request *async_req, *backlog; bfin_crypto_crc_handle_queue() local 319 async_req = crypto_dequeue_request(&crc->queue); bfin_crypto_crc_handle_queue() 320 if (async_req) bfin_crypto_crc_handle_queue() 324 if (!async_req) bfin_crypto_crc_handle_queue() 330 req = ahash_request_cast(async_req); bfin_crypto_crc_handle_queue()
|
H A D | img-hash.c | 497 struct crypto_async_request *async_req, *backlog; img_hash_handle_queue() local 513 async_req = crypto_dequeue_request(&hdev->queue); img_hash_handle_queue() 514 if (async_req) img_hash_handle_queue() 519 if (!async_req) img_hash_handle_queue() 525 req = ahash_request_cast(async_req); img_hash_handle_queue()
|
H A D | sahara.c | 1102 struct crypto_async_request *async_req; sahara_queue_manage() local 1111 async_req = crypto_dequeue_request(&dev->queue); sahara_queue_manage() 1117 if (async_req) { sahara_queue_manage() 1118 if (crypto_tfm_alg_type(async_req->tfm) == sahara_queue_manage() 1121 ahash_request_cast(async_req); sahara_queue_manage() 1126 ablkcipher_request_cast(async_req); sahara_queue_manage() 1131 async_req->complete(async_req, ret); sahara_queue_manage()
|
H A D | atmel-aes.c | 565 struct crypto_async_request *async_req, *backlog; atmel_aes_handle_queue() local 579 async_req = crypto_dequeue_request(&dd->queue); atmel_aes_handle_queue() 580 if (async_req) atmel_aes_handle_queue() 584 if (!async_req) atmel_aes_handle_queue() 590 req = ablkcipher_request_cast(async_req); atmel_aes_handle_queue()
|
H A D | atmel-sha.c | 832 struct crypto_async_request *async_req, *backlog; atmel_sha_handle_queue() local 847 async_req = crypto_dequeue_request(&dd->queue); atmel_sha_handle_queue() 848 if (async_req) atmel_sha_handle_queue() 853 if (!async_req) atmel_sha_handle_queue() 859 req = ahash_request_cast(async_req); atmel_sha_handle_queue()
|
H A D | atmel-tdes.c | 591 struct crypto_async_request *async_req, *backlog; atmel_tdes_handle_queue() local 605 async_req = crypto_dequeue_request(&dd->queue); atmel_tdes_handle_queue() 606 if (async_req) atmel_tdes_handle_queue() 610 if (!async_req) atmel_tdes_handle_queue() 616 req = ablkcipher_request_cast(async_req); atmel_tdes_handle_queue()
|
H A D | omap-aes.c | 610 struct crypto_async_request *async_req, *backlog; omap_aes_handle_queue() local 624 async_req = crypto_dequeue_request(&dd->queue); omap_aes_handle_queue() 625 if (async_req) omap_aes_handle_queue() 629 if (!async_req) omap_aes_handle_queue() 635 req = ablkcipher_request_cast(async_req); omap_aes_handle_queue()
|
H A D | omap-des.c | 592 struct crypto_async_request *async_req, *backlog; omap_des_handle_queue() local 606 async_req = crypto_dequeue_request(&dd->queue); omap_des_handle_queue() 607 if (async_req) omap_des_handle_queue() 611 if (!async_req) omap_des_handle_queue() 617 req = ablkcipher_request_cast(async_req); omap_des_handle_queue()
|
H A D | omap-sham.c | 1010 struct crypto_async_request *async_req, *backlog; omap_sham_handle_queue() local 1023 async_req = crypto_dequeue_request(&dd->queue); omap_sham_handle_queue() 1024 if (async_req) omap_sham_handle_queue() 1028 if (!async_req) omap_sham_handle_queue() 1034 req = ahash_request_cast(async_req); omap_sham_handle_queue()
|
H A D | hifn_795x.c | 2020 struct crypto_async_request *async_req; hifn_flush() local 2036 while ((async_req = crypto_dequeue_request(&dev->queue))) { hifn_flush() 2037 req = container_of(async_req, struct ablkcipher_request, base); hifn_flush() 2139 struct crypto_async_request *async_req, *backlog; hifn_process_queue() local 2147 async_req = crypto_dequeue_request(&dev->queue); hifn_process_queue() 2150 if (!async_req) hifn_process_queue() 2156 req = container_of(async_req, struct ablkcipher_request, base); hifn_process_queue()
|
/linux-4.1.27/drivers/net/usb/ |
H A D | rtl8150.c | 144 struct async_req { struct 172 struct async_req *req = (struct async_req *)urb->context; async_set_reg_cb() 185 struct async_req *req; async_set_registers() 187 req = kmalloc(sizeof(struct async_req), GFP_ATOMIC); async_set_registers()
|
/linux-4.1.27/drivers/crypto/amcc/ |
H A D | crypto4xx_core.h | 66 struct crypto_async_request *async_req; /* base crypto request member in struct:pd_uinfo
|
H A D | crypto4xx_core.c | 635 ablk_req = ablkcipher_request_cast(pd_uinfo->async_req); crypto4xx_ablkcipher_done() 659 ahash_req = ahash_request_cast(pd_uinfo->async_req); crypto4xx_ahash_done() 679 if (crypto_tfm_alg_type(pd_uinfo->async_req->tfm) == crypto4xx_pd_done() 857 pd_uinfo->async_req = req; crypto4xx_build_pd()
|
/linux-4.1.27/drivers/md/ |
H A D | dm-crypt.c | 882 static void kcryptd_async_done(struct crypto_async_request *async_req, 1342 static void kcryptd_async_done(struct crypto_async_request *async_req, kcryptd_async_done() argument 1345 struct dm_crypt_request *dmreq = async_req->data; kcryptd_async_done()
|