/drivers/crypto/ |
D | talitos.c | 793 struct aead_request *areq) in ipsec_esp_unmap() argument 801 talitos_unmap_sg_chain(dev, areq->assoc, DMA_TO_DEVICE); in ipsec_esp_unmap() 802 else if (areq->assoclen) in ipsec_esp_unmap() 804 dma_unmap_sg(dev, areq->assoc, in ipsec_esp_unmap() 808 talitos_sg_unmap(dev, edesc, areq->src, areq->dst); in ipsec_esp_unmap() 822 struct aead_request *areq = context; in ipsec_esp_encrypt_done() local 823 struct crypto_aead *authenc = crypto_aead_reqtfm(areq); in ipsec_esp_encrypt_done() 831 ipsec_esp_unmap(dev, edesc, areq); in ipsec_esp_encrypt_done() 838 sg = sg_last(areq->dst, edesc->dst_nents); in ipsec_esp_encrypt_done() 845 aead_request_complete(areq, err); in ipsec_esp_encrypt_done() [all …]
|
D | picoxcell_crypto.c | 323 struct aead_request *areq = container_of(req->req, struct aead_request, in spacc_aead_make_ddts() local 327 unsigned ivsize = crypto_aead_ivsize(crypto_aead_reqtfm(areq)); in spacc_aead_make_ddts() 328 unsigned nents = sg_count(areq->src, areq->cryptlen); in spacc_aead_make_ddts() 332 u8 *iv = giv ? giv : areq->iv; in spacc_aead_make_ddts() 347 assoc_ents = dma_map_sg(engine->dev, areq->assoc, in spacc_aead_make_ddts() 348 sg_count(areq->assoc, areq->assoclen), DMA_TO_DEVICE); in spacc_aead_make_ddts() 349 if (areq->src != areq->dst) { in spacc_aead_make_ddts() 350 src_ents = dma_map_sg(engine->dev, areq->src, nents, in spacc_aead_make_ddts() 352 dst_ents = dma_map_sg(engine->dev, areq->dst, nents, in spacc_aead_make_ddts() 355 src_ents = dma_map_sg(engine->dev, areq->src, nents, in spacc_aead_make_ddts() [all …]
|
D | ixp4xx_crypto.c | 1199 memcpy(req->areq.iv, ctx->salt, ivsize); in aead_givencrypt() 1207 return aead_perform(&req->areq, 1, req->areq.assoclen, in aead_givencrypt() 1208 req->areq.cryptlen +ivsize, req->giv); in aead_givencrypt()
|
/drivers/crypto/qat/qat_common/ |
D | qat_algs.c | 714 struct aead_request *areq = qat_req->areq; in qat_alg_callback() local 721 areq->base.complete(&areq->base, res); in qat_alg_callback() 724 static int qat_alg_dec(struct aead_request *areq) in qat_alg_dec() argument 726 struct crypto_aead *aead_tfm = crypto_aead_reqtfm(areq); in qat_alg_dec() 729 struct qat_crypto_request *qat_req = aead_request_ctx(areq); in qat_alg_dec() 736 ret = qat_alg_sgl_to_bufl(ctx->inst, areq->assoc, areq->src, areq->dst, in qat_alg_dec() 737 areq->iv, AES_BLOCK_SIZE, qat_req); in qat_alg_dec() 744 qat_req->areq = areq; in qat_alg_dec() 749 cipher_param->cipher_length = areq->cryptlen - digst_size; in qat_alg_dec() 750 cipher_param->cipher_offset = areq->assoclen + AES_BLOCK_SIZE; in qat_alg_dec() [all …]
|
D | qat_crypto.h | 80 struct aead_request *areq; member
|
/drivers/crypto/ux500/cryp/ |
D | cryp_core.c | 824 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 …]
|
/drivers/mmc/core/ |
D | core.c | 420 err = host->areq->err_check(host->card, in mmc_wait_for_data_req_done() 421 host->areq); in mmc_wait_for_data_req_done() 539 struct mmc_async_req *areq, int *error) in mmc_start_req() argument 543 struct mmc_async_req *data = host->areq; in mmc_start_req() 546 if (areq) in mmc_start_req() 547 mmc_pre_req(host, areq->mrq, !host->areq); in mmc_start_req() 549 if (host->areq) { in mmc_start_req() 550 err = mmc_wait_for_data_req_done(host, host->areq->mrq, areq); in mmc_start_req() 564 ((mmc_resp_type(host->areq->mrq->cmd) == MMC_RSP_R1) || in mmc_start_req() 565 (mmc_resp_type(host->areq->mrq->cmd) == MMC_RSP_R1B)) && in mmc_start_req() [all …]
|
/drivers/crypto/caam/ |
D | jr.h | 15 void *areq), 16 void *areq);
|
D | jr.c | 321 u32 status, void *areq), in caam_jr_enqueue() argument 322 void *areq) in caam_jr_enqueue() 352 head_entry->cbkarg = areq; in caam_jr_enqueue()
|
D | caamalg.c | 1481 struct aead_request *req = &greq->areq; in aead_giv_edesc_alloc() 1593 static int aead_givencrypt(struct aead_givcrypt_request *areq) in aead_givencrypt() argument 1595 struct aead_request *req = &areq->areq; in aead_givencrypt() 1605 edesc = aead_giv_edesc_alloc(areq, DESC_JOB_IO_LEN * in aead_givencrypt() 1638 static int aead_null_givencrypt(struct aead_givcrypt_request *areq) in aead_null_givencrypt() argument 1640 return aead_encrypt(&areq->areq); in aead_null_givencrypt()
|
/drivers/mmc/card/ |
D | block.c | 1464 struct mmc_async_req *areq) in mmc_blk_err_check() argument 1466 struct mmc_queue_req *mq_mrq = container_of(areq, struct mmc_queue_req, in mmc_blk_err_check() 1569 struct mmc_async_req *areq) in mmc_blk_packed_err_check() argument 1571 struct mmc_queue_req *mq_rq = container_of(areq, struct mmc_queue_req, in mmc_blk_packed_err_check() 1581 check = mmc_blk_err_check(card, areq); in mmc_blk_packed_err_check() 2109 struct mmc_async_req *areq; in mmc_blk_issue_rw_rq() local 2141 areq = &mq->mqrq_cur->mmc_active; in mmc_blk_issue_rw_rq() 2143 areq = NULL; in mmc_blk_issue_rw_rq() 2144 areq = mmc_start_req(card->host, areq, (int *) &status); in mmc_blk_issue_rw_rq() 2145 if (!areq) { in mmc_blk_issue_rw_rq() [all …]
|
D | mmc_test.c | 169 struct mmc_async_req areq; member 717 struct mmc_async_req *areq) in mmc_test_check_result_async() argument 720 container_of(areq, struct mmc_test_async_req, areq); in mmc_test_check_result_async() 724 return mmc_test_check_result(test_async->test, areq->mrq); in mmc_test_check_result_async() 795 struct mmc_async_req *cur_areq = &test_areq[0].areq; in mmc_test_nonblock_transfer() 796 struct mmc_async_req *other_areq = &test_areq[1].areq; in mmc_test_nonblock_transfer()
|