/linux-4.1.27/drivers/crypto/qce/ |
H A D | cipher.h | 34 * @dst_nents: destination entries 49 int dst_nents; member in struct:qce_cipher_reqctx
|
H A D | ablkcipher.c | 49 qce_unmapsg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst, qce_ablkcipher_done() 86 rctx->dst_nents = qce_countsg(req->dst, req->nbytes, qce_ablkcipher_async_req_handle() 89 rctx->dst_nents = rctx->src_nents; qce_ablkcipher_async_req_handle() 93 rctx->dst_nents += 1; qce_ablkcipher_async_req_handle() 98 ret = sg_alloc_table(&rctx->dst_tbl, rctx->dst_nents, gfp); qce_ablkcipher_async_req_handle() 119 ret = qce_mapsg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst, qce_ablkcipher_async_req_handle() 135 rctx->dst_sg, rctx->dst_nents, qce_ablkcipher_async_req_handle() 155 qce_unmapsg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst, qce_ablkcipher_async_req_handle()
|
/linux-4.1.27/drivers/crypto/caam/ |
H A D | caamalg.c | 2084 * @dst_nents: number of segments in output scatterlist 2097 int dst_nents; member in struct:aead_edesc 2110 * @dst_nents: number of segments in output scatterlist 2121 int dst_nents; member in struct:ablkcipher_edesc 2132 bool src_chained, int dst_nents, bool dst_chained, caam_unmap() 2139 dma_unmap_sg_chained(dev, dst, dst_nents ? : 1, DMA_FROM_DEVICE, caam_unmap() 2164 edesc->src_nents, edesc->src_chained, edesc->dst_nents, aead_unmap() 2177 edesc->src_nents, edesc->src_chained, edesc->dst_nents, ablkcipher_unmap() 2301 edesc->dst_nents > 1 ? 100 : req->nbytes, 1); ablkcipher_encrypt_done() 2333 edesc->dst_nents > 1 ? 100 : req->nbytes, 1); ablkcipher_decrypt_done() 2410 if (!edesc->dst_nents) { init_aead_job() 2549 if (!edesc->dst_nents) { init_ablkcipher_job() 2620 int assoc_nents, src_nents, dst_nents = 0; aead_edesc_alloc() local 2635 dst_nents = sg_count(req->dst, aead_edesc_alloc() 2654 sgc = dma_map_sg_chained(jrdev, req->dst, dst_nents ? : 1, aead_edesc_alloc() 2689 sec4_sg_len += dst_nents; aead_edesc_alloc() 2705 edesc->dst_nents = dst_nents; aead_edesc_alloc() 2741 if (dst_nents) { aead_edesc_alloc() 2742 sg_to_sec4_sg_last(req->dst, dst_nents, aead_edesc_alloc() 2848 int assoc_nents, src_nents, dst_nents = 0; aead_giv_edesc_alloc() local 2862 dst_nents = sg_count(req->dst, req->cryptlen + ctx->authsize, aead_giv_edesc_alloc() 2873 sgc = dma_map_sg_chained(jrdev, req->dst, dst_nents ? : 1, aead_giv_edesc_alloc() 2907 if (dst_nents || iv_dma + ivsize != sg_dma_address(req->dst)) aead_giv_edesc_alloc() 2927 dst_nents = dst_nents ? : 1; aead_giv_edesc_alloc() 2928 sec4_sg_len += 1 + dst_nents; aead_giv_edesc_alloc() 2945 edesc->dst_nents = dst_nents; aead_giv_edesc_alloc() 2989 sg_to_sec4_sg_last(req->dst, dst_nents, aead_giv_edesc_alloc() 3065 int src_nents, dst_nents = 0, sec4_sg_bytes; ablkcipher_edesc_alloc() local 3077 dst_nents = sg_count(req->dst, req->nbytes, &dst_chained); ablkcipher_edesc_alloc() 3085 sgc = dma_map_sg_chained(jrdev, req->dst, dst_nents ? : 1, ablkcipher_edesc_alloc() 3103 sec4_sg_bytes = ((iv_contig ? 0 : 1) + src_nents + dst_nents) * ablkcipher_edesc_alloc() 3116 edesc->dst_nents = dst_nents; ablkcipher_edesc_alloc() 3130 if (dst_nents) { ablkcipher_edesc_alloc() 3131 sg_to_sec4_sg_last(req->dst, dst_nents, ablkcipher_edesc_alloc() 3244 int src_nents, dst_nents = 0, sec4_sg_bytes; ablkcipher_giv_edesc_alloc() local 3256 dst_nents = sg_count(req->dst, req->nbytes, &dst_chained); ablkcipher_giv_edesc_alloc() 3264 sgc = dma_map_sg_chained(jrdev, req->dst, dst_nents ? : 1, ablkcipher_giv_edesc_alloc() 3278 if (!dst_nents && iv_dma + ivsize == sg_dma_address(req->dst)) ablkcipher_giv_edesc_alloc() 3281 dst_nents = dst_nents ? : 1; ablkcipher_giv_edesc_alloc() 3282 sec4_sg_bytes = ((iv_contig ? 0 : 1) + src_nents + dst_nents) * ablkcipher_giv_edesc_alloc() 3295 edesc->dst_nents = dst_nents; ablkcipher_giv_edesc_alloc() 3311 sg_to_sec4_sg_last(req->dst, dst_nents, ablkcipher_giv_edesc_alloc() 2130 caam_unmap(struct device *dev, struct scatterlist *src, struct scatterlist *dst, int src_nents, bool src_chained, int dst_nents, bool dst_chained, dma_addr_t iv_dma, int ivsize, dma_addr_t sec4_sg_dma, int sec4_sg_bytes) caam_unmap() argument
|
/linux-4.1.27/drivers/crypto/ |
H A D | talitos.c | 709 * @dst_nents: number of segments in output scatterlist 719 * if decrypting (with authcheck), or either one of src_nents or dst_nents 726 int dst_nents; member in struct:talitos_edesc 766 unsigned int dst_nents = edesc->dst_nents ? : 1; talitos_sg_unmap() local 779 dma_unmap_sg(dev, dst, dst_nents, talitos_sg_unmap() 832 if (edesc->dst_nents) { ipsec_esp_encrypt_done() 834 edesc->dst_nents + 2 + ipsec_esp_encrypt_done() 836 sg = sg_last(areq->dst, edesc->dst_nents); ipsec_esp_encrypt_done() 865 edesc->dst_nents + 2 + ipsec_esp_decrypt_swauth_done() 870 sg = sg_last(req->dst, edesc->dst_nents ? : 1); ipsec_esp_decrypt_swauth_done() 962 int tbl_off = edesc->src_nents + edesc->dst_nents + 2; ipsec_esp() 1047 edesc->dst_nents ? : 1, ipsec_esp() 1070 (tbl_off + edesc->dst_nents + 1 + ipsec_esp() 1127 int assoc_nents = 0, src_nents, dst_nents, alloc_len, dma_len; talitos_edesc_alloc() local 1160 dst_nents = dst ? src_nents : 0; talitos_edesc_alloc() 1165 dst_nents = sg_count(dst, cryptlen + (encrypt ? authsize : 0), talitos_edesc_alloc() 1167 dst_nents = (dst_nents == 1) ? 0 : dst_nents; talitos_edesc_alloc() 1176 if (assoc_nents || src_nents || dst_nents) { talitos_edesc_alloc() 1177 dma_len = (src_nents + dst_nents + 2 + assoc_nents) * talitos_edesc_alloc() 1203 edesc->dst_nents = dst_nents; talitos_edesc_alloc() 1265 ((!edesc->src_nents && !edesc->dst_nents) || aead_decrypt() 1285 edesc->dst_nents + 2 + aead_decrypt() 1425 edesc->dst_nents ? : 1, common_nonsnoop()
|
/linux-4.1.27/drivers/dma/ |
H A D | fsldma.c | 829 struct scatterlist *dst_sg, unsigned int dst_nents, fsl_dma_prep_sg() 840 if (dst_nents == 0 || src_nents == 0) fsl_dma_prep_sg() 899 if (dst_nents == 0) fsl_dma_prep_sg() 907 dst_nents--; fsl_dma_prep_sg() 828 fsl_dma_prep_sg(struct dma_chan *dchan, struct scatterlist *dst_sg, unsigned int dst_nents, struct scatterlist *src_sg, unsigned int src_nents, unsigned long flags) fsl_dma_prep_sg() argument
|
H A D | at_hdmac.c | 877 * @dst_nents: number of destination scatterlist entries 884 struct scatterlist *dst_sg, unsigned int dst_nents, atc_prep_dma_sg() 901 if (unlikely(dst_nents == 0 || src_nents == 0)) atc_prep_dma_sg() 922 if (!dst_sg || !dst_nents) atc_prep_dma_sg() 929 dst_nents--; atc_prep_dma_sg() 883 atc_prep_dma_sg(struct dma_chan *chan, struct scatterlist *dst_sg, unsigned int dst_nents, struct scatterlist *src_sg, unsigned int src_nents, unsigned long flags) atc_prep_dma_sg() argument
|
H A D | xgene-dma.c | 994 u32 dst_nents, struct scatterlist *src_sg, xgene_dma_prep_sg() 1006 if (unlikely(!dst_nents || !src_nents)) xgene_dma_prep_sg() 1017 dst_nents--; xgene_dma_prep_sg() 1056 if (dst_nents == 0) xgene_dma_prep_sg() 1064 dst_nents--; xgene_dma_prep_sg() 992 xgene_dma_prep_sg( struct dma_chan *dchan, struct scatterlist *dst_sg, u32 dst_nents, struct scatterlist *src_sg, u32 src_nents, unsigned long flags) xgene_dma_prep_sg() argument
|
H A D | nbpfaxi.c | 984 struct scatterlist *dst_sg, unsigned int dst_nents, nbpf_prep_memcpy_sg() 990 if (dst_nents != src_nents) nbpf_prep_memcpy_sg() 982 nbpf_prep_memcpy_sg( struct dma_chan *dchan, struct scatterlist *dst_sg, unsigned int dst_nents, struct scatterlist *src_sg, unsigned int src_nents, unsigned long flags) nbpf_prep_memcpy_sg() argument
|
H A D | ste_dma40.c | 2523 struct scatterlist *dst_sg, unsigned int dst_nents, d40_prep_memcpy_sg() 2527 if (dst_nents != src_nents) d40_prep_memcpy_sg() 2522 d40_prep_memcpy_sg(struct dma_chan *chan, struct scatterlist *dst_sg, unsigned int dst_nents, struct scatterlist *src_sg, unsigned int src_nents, unsigned long dma_flags) d40_prep_memcpy_sg() argument
|
/linux-4.1.27/include/linux/ |
H A D | dmaengine.h | 657 struct scatterlist *dst_sg, unsigned int dst_nents, 750 struct scatterlist *dst_sg, unsigned int dst_nents, dmaengine_prep_dma_sg() 754 return chan->device->device_prep_dma_sg(chan, dst_sg, dst_nents, dmaengine_prep_dma_sg() 748 dmaengine_prep_dma_sg( struct dma_chan *chan, struct scatterlist *dst_sg, unsigned int dst_nents, struct scatterlist *src_sg, unsigned int src_nents, unsigned long flags) dmaengine_prep_dma_sg() argument
|
/linux-4.1.27/drivers/misc/carma/ |
H A D | carma-fpga.c | 694 unsigned int dst_nents, src_nents; data_submit_dma() local 702 dst_nents = buf->sglen; data_submit_dma() 715 dst_sg, dst_nents, data_submit_dma()
|