/drivers/crypto/caam/ |
D | caampkc.c | 25 dma_unmap_sg(dev, req->dst, edesc->dst_nents, DMA_FROM_DEVICE); in rsa_io_unmap() 104 int src_nents, dst_nents; in rsa_edesc_alloc() local 107 dst_nents = sg_nents_for_len(req->dst, req->dst_len); in rsa_edesc_alloc() 111 if (dst_nents > 1) in rsa_edesc_alloc() 112 sec4_sg_len += dst_nents; in rsa_edesc_alloc() 128 sgc = dma_map_sg(dev, req->dst, dst_nents, DMA_FROM_DEVICE); in rsa_edesc_alloc() 141 if (dst_nents > 1) in rsa_edesc_alloc() 142 sg_to_sec4_sg_last(req->dst, dst_nents, in rsa_edesc_alloc() 147 edesc->dst_nents = dst_nents; in rsa_edesc_alloc() 164 dma_unmap_sg(dev, req->dst, dst_nents, DMA_FROM_DEVICE); in rsa_edesc_alloc() [all …]
|
D | caamalg.c | 1892 int dst_nents; member 1912 int dst_nents; member 1922 int dst_nents, in caam_unmap() argument 1928 dma_unmap_sg(dev, dst, dst_nents ? : 1, DMA_FROM_DEVICE); in caam_unmap() 1945 edesc->src_nents, edesc->dst_nents, 0, 0, in aead_unmap() 1957 edesc->src_nents, edesc->dst_nents, in ablkcipher_unmap() 2036 edesc->dst_nents > 1 ? 100 : req->nbytes, 1, true); in ablkcipher_encrypt_done() 2076 edesc->dst_nents > 1 ? 100 : req->nbytes, 1, true); in ablkcipher_decrypt_done() 2132 if (!edesc->dst_nents) { in init_aead_job() 2272 if (!edesc->dst_nents) { in init_ablkcipher_job() [all …]
|
D | caampkc.h | 55 int dst_nents; member
|
/drivers/crypto/qce/ |
D | ablkcipher.c | 48 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_ablkcipher_done() 83 rctx->dst_nents = sg_nents_for_len(req->dst, req->nbytes); in qce_ablkcipher_async_req_handle() 85 rctx->dst_nents = rctx->src_nents; in qce_ablkcipher_async_req_handle() 90 if (rctx->dst_nents < 0) { in qce_ablkcipher_async_req_handle() 92 return -rctx->dst_nents; in qce_ablkcipher_async_req_handle() 95 rctx->dst_nents += 1; in qce_ablkcipher_async_req_handle() 100 ret = sg_alloc_table(&rctx->dst_tbl, rctx->dst_nents, gfp); in qce_ablkcipher_async_req_handle() 121 ret = dma_map_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_ablkcipher_async_req_handle() 135 rctx->dst_sg, rctx->dst_nents, in qce_ablkcipher_async_req_handle() 154 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_ablkcipher_async_req_handle()
|
D | cipher.h | 47 int dst_nents; member
|
/drivers/crypto/ |
D | talitos.c | 904 int dst_nents; member 925 unsigned int dst_nents = edesc->dst_nents ? : 1; in talitos_sg_unmap() local 927 if (is_sec1 && dst && dst_nents > 1) { in talitos_sg_unmap() 930 sg_pcopy_from_buffer(dst, dst_nents, edesc->buf + offset, len, in talitos_sg_unmap() 937 if (dst && (dst_nents == 1 || !is_sec1)) in talitos_sg_unmap() 938 dma_unmap_sg(dev, dst, dst_nents, DMA_FROM_DEVICE); in talitos_sg_unmap() 967 unsigned int dst_nents = edesc->dst_nents ? : 1; in ipsec_esp_unmap() local 969 sg_pcopy_to_buffer(areq->dst, dst_nents, ctx->iv, ivsize, in ipsec_esp_unmap() 1000 edesc->dst_nents + 2]; in ipsec_esp_encrypt_done() 1001 sg = sg_last(areq->dst, edesc->dst_nents); in ipsec_esp_encrypt_done() [all …]
|
D | mxc-scc.c | 157 size_t dst_nents; member 182 ctx->dst_nents * 8); in mxc_scc_get_data() 183 len = sg_pcopy_from_buffer(ablkreq->dst, ctx->dst_nents, in mxc_scc_get_data() 227 ctx->dst_nents = nents; in mxc_scc_ablkcipher_req_init()
|
D | picoxcell_crypto.c | 330 int src_nents, dst_nents; in spacc_aead_make_ddts() local 346 dst_nents = 0; in spacc_aead_make_ddts() 348 dst_nents = sg_nents_for_len(areq->dst, total); in spacc_aead_make_ddts() 349 if (dst_nents < 0) { in spacc_aead_make_ddts() 351 return dst_nents; in spacc_aead_make_ddts() 368 if (dst_nents) { in spacc_aead_make_ddts() 374 dst_ents = dma_map_sg(engine->dev, areq->dst, dst_nents, in spacc_aead_make_ddts()
|
/drivers/crypto/ccp/ |
D | ccp-dmaengine.c | 321 unsigned int dst_nents, in ccp_create_desc() argument 342 if (!dst_nents || !src_nents) in ccp_create_desc() 373 dst_nents--; in ccp_create_desc() 374 if (!dst_nents) in ccp_create_desc() 475 unsigned int dst_nents, struct scatterlist *src_sg, in ccp_prep_dma_sg() argument 484 __func__, src_sg, src_nents, dst_sg, dst_nents, flags); in ccp_prep_dma_sg() 486 desc = ccp_create_desc(dma_chan, dst_sg, dst_nents, src_sg, src_nents, in ccp_prep_dma_sg()
|
/drivers/crypto/marvell/ |
D | cipher.c | 65 dma_unmap_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_ablkcipher_dma_cleanup() 125 len = sg_pcopy_from_buffer(req->dst, creq->dst_nents, in mv_cesa_ablkcipher_std_process() 327 ret = dma_map_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_ablkcipher_dma_req_init() 389 dma_unmap_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_ablkcipher_dma_req_init() 431 creq->dst_nents = sg_nents_for_len(req->dst, req->nbytes); in mv_cesa_ablkcipher_req_init() 432 if (creq->dst_nents < 0) { in mv_cesa_ablkcipher_req_init() 434 return creq->dst_nents; in mv_cesa_ablkcipher_req_init()
|
D | cesa.h | 564 int dst_nents; member
|
/drivers/crypto/chelsio/ |
D | chcr_crypto.h | 133 unsigned int dst_nents; member
|
D | chcr_algo.c | 122 ABLK_CTX(ctx)->dst_nents, DMA_FROM_DEVICE); in chcr_handle_resp() 477 ablkctx->dst_nents = ch_nents(req->dst, &dst_bufsize); in create_cipher_wr() 484 phys_dsgl = get_space_for_phys_dsgl(ablkctx->dst_nents); in create_cipher_wr() 535 sg_param.nents = ablkctx->dst_nents; in create_cipher_wr()
|
/drivers/dma/ |
D | fsldma.c | 826 struct scatterlist *dst_sg, unsigned int dst_nents, in fsl_dma_prep_sg() argument 837 if (dst_nents == 0 || src_nents == 0) in fsl_dma_prep_sg() 896 if (dst_nents == 0) in fsl_dma_prep_sg() 904 dst_nents--; in fsl_dma_prep_sg()
|
D | xgene-dma.c | 896 u32 dst_nents, struct scatterlist *src_sg, in xgene_dma_prep_sg() argument 908 if (unlikely(!dst_nents || !src_nents)) in xgene_dma_prep_sg() 919 dst_nents--; in xgene_dma_prep_sg() 958 if (dst_nents == 0) in xgene_dma_prep_sg() 966 dst_nents--; in xgene_dma_prep_sg()
|
D | at_hdmac.c | 1219 struct scatterlist *dst_sg, unsigned int dst_nents, in atc_prep_dma_sg() argument 1236 if (unlikely(dst_nents == 0 || src_nents == 0)) in atc_prep_dma_sg() 1257 if (!dst_sg || !dst_nents) in atc_prep_dma_sg() 1264 dst_nents--; in atc_prep_dma_sg()
|
D | nbpfaxi.c | 985 struct scatterlist *dst_sg, unsigned int dst_nents, in nbpf_prep_memcpy_sg() argument 991 if (dst_nents != src_nents) in nbpf_prep_memcpy_sg()
|
D | ste_dma40.c | 2489 struct scatterlist *dst_sg, unsigned int dst_nents, in d40_prep_memcpy_sg() argument 2493 if (dst_nents != src_nents) in d40_prep_memcpy_sg()
|