Home
last modified time | relevance | path

Searched refs:sg_dst (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.10/drivers/crypto/rockchip/
Drk3288_crypto.c69 struct scatterlist *sg_dst, in check_alignment() argument
76 if (!sg_dst) in check_alignment()
78 out = IS_ALIGNED((uint32_t)sg_dst->offset, 4) && in check_alignment()
79 IS_ALIGNED((uint32_t)sg_dst->length, align_mask); in check_alignment()
82 return (align && (sg_src->length == sg_dst->length)); in check_alignment()
87 struct scatterlist *sg_dst) in rk_load_data() argument
92 check_alignment(sg_src, sg_dst, dev->align_size) : in rk_load_data()
105 if (sg_dst) { in rk_load_data()
106 if (!dma_map_sg(dev->dev, sg_dst, 1, DMA_FROM_DEVICE)) { in rk_load_data()
114 dev->addr_out = sg_dma_address(sg_dst); in rk_load_data()
[all …]
Drk3288_crypto_skcipher.c263 err = dev->load_data(dev, dev->sg_src, dev->sg_dst); in rk_set_data_start()
281 dev->sg_dst = req->dst; in rk_ablk_start()
303 memcpy(req->iv, sg_virt(dev->sg_dst) + in rk_iv_copyback()
304 dev->sg_dst->length - ivsize, ivsize); in rk_iv_copyback()
324 new_iv = page_address(sg_page(dev->sg_dst)) + in rk_update_iv()
325 dev->sg_dst->offset + dev->sg_dst->length - ivsize; in rk_update_iv()
364 dev->sg_dst = sg_next(dev->sg_dst); in rk_ablk_rx()
Drk3288_crypto.h205 struct scatterlist *sg_dst; member
226 struct scatterlist *sg_dst);
Drk3288_crypto_ahash.c204 dev->sg_dst = NULL; in rk_ahash_start()
/Linux-v5.10/arch/arm/crypto/
Daes-ce-glue.c273 struct scatterlist sg_src[2], sg_dst[2]; in cts_cbc_encrypt() local
303 dst = scatterwalk_ffwd(sg_dst, req->dst, in cts_cbc_encrypt()
331 struct scatterlist sg_src[2], sg_dst[2]; in cts_cbc_decrypt() local
361 dst = scatterwalk_ffwd(sg_dst, req->dst, in cts_cbc_decrypt()
450 struct scatterlist sg_src[2], sg_dst[2]; in xts_encrypt() local
498 dst = scatterwalk_ffwd(sg_dst, req->dst, req->cryptlen); in xts_encrypt()
522 struct scatterlist sg_src[2], sg_dst[2]; in xts_decrypt() local
570 dst = scatterwalk_ffwd(sg_dst, req->dst, req->cryptlen); in xts_decrypt()
/Linux-v5.10/arch/arm64/crypto/
Daes-glue.c278 struct scatterlist sg_src[2], sg_dst[2]; in cts_cbc_encrypt() local
307 dst = scatterwalk_ffwd(sg_dst, req->dst, in cts_cbc_encrypt()
335 struct scatterlist sg_src[2], sg_dst[2]; in cts_cbc_decrypt() local
364 dst = scatterwalk_ffwd(sg_dst, req->dst, in cts_cbc_decrypt()
513 struct scatterlist sg_src[2], sg_dst[2]; in xts_encrypt() local
561 dst = scatterwalk_ffwd(sg_dst, req->dst, req->cryptlen); in xts_encrypt()
585 struct scatterlist sg_src[2], sg_dst[2]; in xts_decrypt() local
633 dst = scatterwalk_ffwd(sg_dst, req->dst, req->cryptlen); in xts_decrypt()
Daes-neonbs-glue.c325 struct scatterlist sg_src[2], sg_dst[2]; in __xts_crypt() local
397 dst = scatterwalk_ffwd(sg_dst, req->dst, req->cryptlen); in __xts_crypt()
/Linux-v5.10/drivers/crypto/
Ds5p-sss.c310 struct scatterlist *sg_dst; member
509 dma_unmap_sg(dev->dev, dev->sg_dst, 1, DMA_FROM_DEVICE); in s5p_unset_outdata()
551 dev->sg_dst = sg; in s5p_set_outdata()
582 if (!sg_is_last(dev->sg_dst)) { in s5p_aes_tx()
583 ret = s5p_set_outdata(dev, sg_next(dev->sg_dst)); in s5p_aes_tx()
691 if (sg_is_last(dev->sg_dst)) in s5p_aes_interrupt()
747 s5p_set_dma_outdata(dev, dev->sg_dst); in s5p_aes_interrupt()
1958 s5p_set_dma_outdata(dev, dev->sg_dst); in s5p_aes_crypt_start()
/Linux-v5.10/drivers/crypto/ux500/cryp/
Dcryp.h216 struct scatterlist *sg_dst; member
Dcryp_core.c557 ctx->device->dma.sg_dst = sg; in cryp_set_dma_transfer()
559 ctx->device->dma.sg_dst, in cryp_set_dma_transfer()
574 ctx->device->dma.sg_dst, in cryp_set_dma_transfer()
615 dma_unmap_sg(chan->device->dev, ctx->device->dma.sg_dst, in cryp_dma_done()
/Linux-v5.10/drivers/dma/
Dste_dma40.c2111 struct scatterlist *sg_src, struct scatterlist *sg_dst, in d40_prep_sg_log() argument
2127 ret = d40_log_sg_to_lli(sg_dst, sg_len, in d40_prep_sg_log()
2139 struct scatterlist *sg_src, struct scatterlist *sg_dst, in d40_prep_sg_phy() argument
2158 ret = d40_phy_sg_to_lli(sg_dst, sg_len, dst_dev_addr, in d40_prep_sg_phy()
2210 struct scatterlist *sg_dst, unsigned int sg_len, in d40_prep_sg() argument
2244 ret = d40_prep_sg_log(chan, desc, sg_src, sg_dst, in d40_prep_sg()
2247 ret = d40_prep_sg_phy(chan, desc, sg_src, sg_dst, in d40_prep_sg()