Home
last modified time | relevance | path

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

/linux-5.19.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.h206 struct scatterlist *sg_dst; member
227 struct scatterlist *sg_dst);
Drk3288_crypto_ahash.c204 dev->sg_dst = NULL; in rk_ahash_start()
/linux-5.19.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-5.19.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()
487 struct scatterlist sg_src[2], sg_dst[2]; in xts_encrypt() local
535 dst = scatterwalk_ffwd(sg_dst, req->dst, req->cryptlen); in xts_encrypt()
559 struct scatterlist sg_src[2], sg_dst[2]; in xts_decrypt() local
607 dst = scatterwalk_ffwd(sg_dst, req->dst, req->cryptlen); in xts_decrypt()
Daes-neonbs-glue.c272 struct scatterlist sg_src[2], sg_dst[2]; in __xts_crypt() local
346 dst = scatterwalk_ffwd(sg_dst, req->dst, req->cryptlen); in __xts_crypt()
/linux-5.19.10/arch/x86/crypto/
Daesni-intel_glue.c372 struct scatterlist sg_src[2], sg_dst[2]; in cts_cbc_encrypt() local
401 dst = scatterwalk_ffwd(sg_dst, req->dst, in cts_cbc_encrypt()
428 struct scatterlist sg_src[2], sg_dst[2]; in cts_cbc_decrypt() local
457 dst = scatterwalk_ffwd(sg_dst, req->dst, in cts_cbc_decrypt()
903 struct scatterlist sg_src[2], sg_dst[2]; in xts_crypt() local
908 dst = scatterwalk_ffwd(sg_dst, req->dst, req->cryptlen); in xts_crypt()
/linux-5.19.10/drivers/crypto/
Ds5p-sss.c312 struct scatterlist *sg_dst; member
507 dma_unmap_sg(dev->dev, dev->sg_dst, 1, DMA_FROM_DEVICE); in s5p_unset_outdata()
549 dev->sg_dst = sg; in s5p_set_outdata()
580 if (!sg_is_last(dev->sg_dst)) { in s5p_aes_tx()
581 ret = s5p_set_outdata(dev, sg_next(dev->sg_dst)); in s5p_aes_tx()
689 if (sg_is_last(dev->sg_dst)) in s5p_aes_interrupt()
745 s5p_set_dma_outdata(dev, dev->sg_dst); in s5p_aes_interrupt()
1956 s5p_set_dma_outdata(dev, dev->sg_dst); in s5p_aes_crypt_start()
/linux-5.19.10/drivers/crypto/ux500/cryp/
Dcryp.h216 struct scatterlist *sg_dst; member
Dcryp_core.c558 ctx->device->dma.sg_dst = sg; in cryp_set_dma_transfer()
560 ctx->device->dma.sg_dst, in cryp_set_dma_transfer()
575 ctx->device->dma.sg_dst, in cryp_set_dma_transfer()
616 dma_unmap_sg(chan->device->dev, ctx->device->dma.sg_dst, in cryp_dma_done()
/linux-5.19.10/drivers/dma/
Dste_dma40.c2110 struct scatterlist *sg_src, struct scatterlist *sg_dst, in d40_prep_sg_log() argument
2126 ret = d40_log_sg_to_lli(sg_dst, sg_len, in d40_prep_sg_log()
2138 struct scatterlist *sg_src, struct scatterlist *sg_dst, in d40_prep_sg_phy() argument
2157 ret = d40_phy_sg_to_lli(sg_dst, sg_len, dst_dev_addr, in d40_prep_sg_phy()
2209 struct scatterlist *sg_dst, unsigned int sg_len, in d40_prep_sg() argument
2243 ret = d40_prep_sg_log(chan, desc, sg_src, sg_dst, in d40_prep_sg()
2246 ret = d40_prep_sg_phy(chan, desc, sg_src, sg_dst, in d40_prep_sg()