Home
last modified time | relevance | path

Searched refs:areq (Results 1 – 22 of 22) sorted by relevance

/linux-4.4.14/drivers/crypto/sunxi-ss/
Dsun4i-ss-cipher.c19 static int sun4i_ss_opti_poll(struct ablkcipher_request *areq) in sun4i_ss_opti_poll() argument
21 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_opti_poll()
25 struct sun4i_cipher_req_ctx *ctx = ablkcipher_request_ctx(areq); in sun4i_ss_opti_poll()
33 unsigned int ileft = areq->nbytes; in sun4i_ss_opti_poll()
34 unsigned int oleft = areq->nbytes; in sun4i_ss_opti_poll()
40 if (areq->nbytes == 0) in sun4i_ss_opti_poll()
43 if (!areq->info) { in sun4i_ss_opti_poll()
48 if (!areq->src || !areq->dst) { in sun4i_ss_opti_poll()
58 if (areq->info) { in sun4i_ss_opti_poll()
60 v = *(u32 *)(areq->info + i * 4); in sun4i_ss_opti_poll()
[all …]
Dsun4i-ss.h170 int sun4i_hash_init(struct ahash_request *areq);
171 int sun4i_hash_update(struct ahash_request *areq);
172 int sun4i_hash_final(struct ahash_request *areq);
173 int sun4i_hash_finup(struct ahash_request *areq);
174 int sun4i_hash_digest(struct ahash_request *areq);
175 int sun4i_hash_export_md5(struct ahash_request *areq, void *out);
176 int sun4i_hash_import_md5(struct ahash_request *areq, const void *in);
177 int sun4i_hash_export_sha1(struct ahash_request *areq, void *out);
178 int sun4i_hash_import_sha1(struct ahash_request *areq, const void *in);
180 int sun4i_ss_cbc_aes_encrypt(struct ablkcipher_request *areq);
[all …]
Dsun4i-ss-hash.c29 int sun4i_hash_init(struct ahash_request *areq) in sun4i_hash_init() argument
31 struct sun4i_req_ctx *op = ahash_request_ctx(areq); in sun4i_hash_init()
32 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun4i_hash_init()
47 int sun4i_hash_export_md5(struct ahash_request *areq, void *out) in sun4i_hash_export_md5() argument
49 struct sun4i_req_ctx *op = ahash_request_ctx(areq); in sun4i_hash_export_md5()
70 int sun4i_hash_import_md5(struct ahash_request *areq, const void *in) in sun4i_hash_import_md5() argument
72 struct sun4i_req_ctx *op = ahash_request_ctx(areq); in sun4i_hash_import_md5()
76 sun4i_hash_init(areq); in sun4i_hash_import_md5()
89 int sun4i_hash_export_sha1(struct ahash_request *areq, void *out) in sun4i_hash_export_sha1() argument
91 struct sun4i_req_ctx *op = ahash_request_ctx(areq); in sun4i_hash_export_sha1()
[all …]
/linux-4.4.14/drivers/crypto/
Dtalitos.c924 struct aead_request *areq) in ipsec_esp_unmap() argument
931 talitos_sg_unmap(dev, edesc, areq->src, areq->dst); in ipsec_esp_unmap()
945 struct aead_request *areq = context; in ipsec_esp_encrypt_done() local
946 struct crypto_aead *authenc = crypto_aead_reqtfm(areq); in ipsec_esp_encrypt_done()
954 ipsec_esp_unmap(dev, edesc, areq); in ipsec_esp_encrypt_done()
960 sg = sg_last(areq->dst, edesc->dst_nents); in ipsec_esp_encrypt_done()
967 aead_request_complete(areq, err); in ipsec_esp_encrypt_done()
1081 static int ipsec_esp(struct talitos_edesc *edesc, struct aead_request *areq, in ipsec_esp() argument
1086 struct crypto_aead *aead = crypto_aead_reqtfm(areq); in ipsec_esp()
1091 unsigned int cryptlen = areq->cryptlen; in ipsec_esp()
[all …]
Dpicoxcell_crypto.c324 static int spacc_aead_make_ddts(struct aead_request *areq) in spacc_aead_make_ddts() argument
326 struct crypto_aead *aead = crypto_aead_reqtfm(areq); in spacc_aead_make_ddts()
327 struct spacc_req *req = aead_request_ctx(areq); in spacc_aead_make_ddts()
335 total = areq->assoclen + areq->cryptlen; in spacc_aead_make_ddts()
339 src_nents = sg_count(areq->src, total); in spacc_aead_make_ddts()
344 if (areq->src != areq->dst) { in spacc_aead_make_ddts()
345 dst_nents = sg_count(areq->dst, total); in spacc_aead_make_ddts()
362 src_ents = dma_map_sg(engine->dev, areq->src, src_nents, in spacc_aead_make_ddts()
367 dst_ents = dma_map_sg(engine->dev, areq->dst, dst_nents, in spacc_aead_make_ddts()
371 dma_unmap_sg(engine->dev, areq->src, src_nents, in spacc_aead_make_ddts()
[all …]
/linux-4.4.14/crypto/
Dchacha20poly1305.c120 static void chacha_decrypt_done(struct crypto_async_request *areq, int err) in chacha_decrypt_done() argument
122 async_done_continue(areq->data, err, poly_verify_tag); in chacha_decrypt_done()
166 static void poly_tail_done(struct crypto_async_request *areq, int err) in poly_tail_done() argument
168 async_done_continue(areq->data, err, poly_tail_continue); in poly_tail_done()
200 static void poly_cipherpad_done(struct crypto_async_request *areq, int err) in poly_cipherpad_done() argument
202 async_done_continue(areq->data, err, poly_tail); in poly_cipherpad_done()
230 static void poly_cipher_done(struct crypto_async_request *areq, int err) in poly_cipher_done() argument
232 async_done_continue(areq->data, err, poly_cipherpad); in poly_cipher_done()
261 static void poly_adpad_done(struct crypto_async_request *areq, int err) in poly_adpad_done() argument
263 async_done_continue(areq->data, err, poly_cipher); in poly_adpad_done()
[all …]
Dahash.c317 struct ahash_request *areq = req->data; in ahash_op_unaligned_done() local
329 ahash_op_unaligned_finish(areq, err); in ahash_op_unaligned_done()
332 areq->base.complete(&areq->base, err); in ahash_op_unaligned_done()
396 struct ahash_request *areq = req->data; in ahash_def_finup_done2() local
398 ahash_def_finup_finish2(areq, err); in ahash_def_finup_done2()
400 areq->base.complete(&areq->base, err); in ahash_def_finup_done2()
419 struct ahash_request *areq = req->data; in ahash_def_finup_done1() local
421 err = ahash_def_finup_finish1(areq, err); in ahash_def_finup_done1()
423 areq->base.complete(&areq->base, err); in ahash_def_finup_done1()
Dgcm.c243 static void gcm_hash_len_done(struct crypto_async_request *areq, int err);
292 static void gcm_hash_len_done(struct crypto_async_request *areq, int err) in gcm_hash_len_done() argument
294 struct aead_request *req = areq->data; in gcm_hash_len_done()
313 static void gcm_hash_crypt_remain_done(struct crypto_async_request *areq, in gcm_hash_crypt_remain_done() argument
316 struct aead_request *req = areq->data; in gcm_hash_crypt_remain_done()
344 static void gcm_hash_crypt_done(struct crypto_async_request *areq, int err) in gcm_hash_crypt_done() argument
346 struct aead_request *req = areq->data; in gcm_hash_crypt_done()
372 static void gcm_hash_assoc_remain_done(struct crypto_async_request *areq, in gcm_hash_assoc_remain_done() argument
375 struct aead_request *req = areq->data; in gcm_hash_assoc_remain_done()
401 static void gcm_hash_assoc_done(struct crypto_async_request *areq, int err) in gcm_hash_assoc_done() argument
[all …]
Dauthenc.c118 static void authenc_geniv_ahash_done(struct crypto_async_request *areq, int err) in authenc_geniv_ahash_done() argument
120 struct aead_request *req = areq->data; in authenc_geniv_ahash_done()
172 struct aead_request *areq = req->data; in crypto_authenc_encrypt_done() local
177 err = crypto_authenc_genicv(areq, 0); in crypto_authenc_encrypt_done()
180 authenc_request_complete(areq, err); in crypto_authenc_encrypt_done()
272 static void authenc_verify_ahash_done(struct crypto_async_request *areq, in authenc_verify_ahash_done() argument
275 struct aead_request *req = areq->data; in authenc_verify_ahash_done()
Dauthencesn.c124 static void authenc_esn_geniv_ahash_done(struct crypto_async_request *areq, in authenc_esn_geniv_ahash_done() argument
127 struct aead_request *req = areq->data; in authenc_esn_geniv_ahash_done()
173 struct aead_request *areq = req->data; in crypto_authenc_esn_encrypt_done() local
176 err = crypto_authenc_esn_genicv(areq, 0); in crypto_authenc_esn_encrypt_done()
178 authenc_esn_request_complete(areq, err); in crypto_authenc_esn_encrypt_done()
267 static void authenc_esn_verify_ahash_done(struct crypto_async_request *areq, in authenc_esn_verify_ahash_done() argument
270 struct aead_request *req = areq->data; in authenc_esn_verify_ahash_done()
Dcryptd.c705 static void cryptd_aead_encrypt(struct crypto_async_request *areq, int err) in cryptd_aead_encrypt() argument
707 struct cryptd_aead_ctx *ctx = crypto_tfm_ctx(areq->tfm); in cryptd_aead_encrypt()
711 req = container_of(areq, struct aead_request, base); in cryptd_aead_encrypt()
715 static void cryptd_aead_decrypt(struct crypto_async_request *areq, int err) in cryptd_aead_decrypt() argument
717 struct cryptd_aead_ctx *ctx = crypto_tfm_ctx(areq->tfm); in cryptd_aead_decrypt()
721 req = container_of(areq, struct aead_request, base); in cryptd_aead_decrypt()
Dccm.c287 static void crypto_ccm_encrypt_done(struct crypto_async_request *areq, int err) in crypto_ccm_encrypt_done() argument
289 struct aead_request *req = areq->data; in crypto_ccm_encrypt_done()
383 static void crypto_ccm_decrypt_done(struct crypto_async_request *areq, in crypto_ccm_decrypt_done() argument
386 struct aead_request *req = areq->data; in crypto_ccm_decrypt_done()
Dpcrypt.c126 static void pcrypt_aead_done(struct crypto_async_request *areq, int err) in pcrypt_aead_done() argument
128 struct aead_request *req = areq->data; in pcrypt_aead_done()
/linux-4.4.14/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c119 struct akcipher_request *areq = (void *)(__force long)resp->opaque; in qat_rsa_cb() local
120 struct qat_rsa_request *req = PTR_ALIGN(akcipher_request_ctx(areq), 64); in qat_rsa_cb()
134 areq->dst_len = req->ctx->key_sz; in qat_rsa_cb()
138 while (!(*ptr) && areq->dst_len) { in qat_rsa_cb()
139 areq->dst_len--; in qat_rsa_cb()
143 if (areq->dst_len != req->ctx->key_sz) in qat_rsa_cb()
144 memmove(req->dst_align, ptr, areq->dst_len); in qat_rsa_cb()
146 scatterwalk_map_and_copy(req->dst_align, areq->dst, 0, in qat_rsa_cb()
147 areq->dst_len, 1); in qat_rsa_cb()
152 char *ptr = sg_virt(areq->dst); in qat_rsa_cb()
[all …]
Dqat_algs.c780 struct aead_request *areq = qat_req->aead_req; in qat_aead_alg_callback() local
787 areq->base.complete(&areq->base, res); in qat_aead_alg_callback()
795 struct ablkcipher_request *areq = qat_req->ablkcipher_req; in qat_ablkcipher_alg_callback() local
802 areq->base.complete(&areq->base, res); in qat_ablkcipher_alg_callback()
814 static int qat_alg_aead_dec(struct aead_request *areq) in qat_alg_aead_dec() argument
816 struct crypto_aead *aead_tfm = crypto_aead_reqtfm(areq); in qat_alg_aead_dec()
819 struct qat_crypto_request *qat_req = aead_request_ctx(areq); in qat_alg_aead_dec()
826 ret = qat_alg_sgl_to_bufl(ctx->inst, areq->src, areq->dst, qat_req); in qat_alg_aead_dec()
833 qat_req->aead_req = areq; in qat_alg_aead_dec()
839 cipher_param->cipher_length = areq->cryptlen - digst_size; in qat_alg_aead_dec()
[all …]
/linux-4.4.14/drivers/crypto/caam/
Djr.h15 void *areq),
16 void *areq);
Djr.c325 u32 status, void *areq), in caam_jr_enqueue() argument
326 void *areq) in caam_jr_enqueue()
356 head_entry->cbkarg = areq; in caam_jr_enqueue()
/linux-4.4.14/drivers/crypto/ux500/cryp/
Dcryp_core.c824 static int ablk_dma_crypt(struct ablkcipher_request *areq) in ablk_dma_crypt() argument
826 struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(areq); in ablk_dma_crypt()
836 ctx->datalen = areq->nbytes; in ablk_dma_crypt()
837 ctx->outlen = areq->nbytes; in ablk_dma_crypt()
848 ctx->device->dma.nents_src = get_nents(areq->src, ctx->datalen); in ablk_dma_crypt()
849 ctx->device->dma.nents_dst = get_nents(areq->dst, ctx->outlen); in ablk_dma_crypt()
854 bytes_written = cryp_dma_write(ctx, areq->src, ctx->datalen); in ablk_dma_crypt()
855 bytes_read = cryp_dma_read(ctx, areq->dst, bytes_written); in ablk_dma_crypt()
881 static int ablk_crypt(struct ablkcipher_request *areq) in ablk_crypt() argument
884 struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(areq); in ablk_crypt()
[all …]
/linux-4.4.14/drivers/mmc/core/
Dcore.c462 err = host->areq->err_check(host->card, in mmc_wait_for_data_req_done()
463 host->areq); in mmc_wait_for_data_req_done()
579 struct mmc_async_req *areq, int *error) in mmc_start_req() argument
583 struct mmc_async_req *data = host->areq; in mmc_start_req()
586 if (areq) in mmc_start_req()
587 mmc_pre_req(host, areq->mrq, !host->areq); in mmc_start_req()
589 if (host->areq) { in mmc_start_req()
590 err = mmc_wait_for_data_req_done(host, host->areq->mrq, areq); in mmc_start_req()
604 ((mmc_resp_type(host->areq->mrq->cmd) == MMC_RSP_R1) || in mmc_start_req()
605 (mmc_resp_type(host->areq->mrq->cmd) == MMC_RSP_R1B)) && in mmc_start_req()
[all …]
/linux-4.4.14/drivers/mmc/card/
Dblock.c1303 struct mmc_async_req *areq) in mmc_blk_err_check() argument
1305 struct mmc_queue_req *mq_mrq = container_of(areq, struct mmc_queue_req, in mmc_blk_err_check()
1415 struct mmc_async_req *areq) in mmc_blk_packed_err_check() argument
1417 struct mmc_queue_req *mq_rq = container_of(areq, struct mmc_queue_req, in mmc_blk_packed_err_check()
1427 check = mmc_blk_err_check(card, areq); in mmc_blk_packed_err_check()
1942 struct mmc_async_req *areq; in mmc_blk_issue_rw_rq() local
1971 areq = &mq->mqrq_cur->mmc_active; in mmc_blk_issue_rw_rq()
1973 areq = NULL; in mmc_blk_issue_rw_rq()
1974 areq = mmc_start_req(card->host, areq, (int *) &status); in mmc_blk_issue_rw_rq()
1975 if (!areq) { in mmc_blk_issue_rw_rq()
[all …]
Dmmc_test.c171 struct mmc_async_req areq; member
713 struct mmc_async_req *areq) in mmc_test_check_result_async() argument
716 container_of(areq, struct mmc_test_async_req, areq); in mmc_test_check_result_async()
720 return mmc_test_check_result(test_async->test, areq->mrq); in mmc_test_check_result_async()
791 struct mmc_async_req *cur_areq = &test_areq[0].areq; in mmc_test_nonblock_transfer()
792 struct mmc_async_req *other_areq = &test_areq[1].areq; in mmc_test_nonblock_transfer()
/linux-4.4.14/include/linux/mmc/
Dhost.h359 struct mmc_async_req *areq; /* active async req */ member