Lines Matching refs:out_sg
215 struct scatterlist *out_sg; member
924 dma_sync_sg_for_device(cryp->dev, cryp->out_sg, cryp->out_sg_len, DMA_FROM_DEVICE); in stm32_cryp_dma_callback()
926 if (cryp->in_sg != cryp->out_sg) in stm32_cryp_dma_callback()
929 dma_unmap_sg(cryp->dev, cryp->out_sg, cryp->out_sg_len, DMA_FROM_DEVICE); in stm32_cryp_dma_callback()
938 kfree(cryp->out_sg); in stm32_cryp_dma_callback()
942 if (cryp->out_sg != cryp->req->dst) in stm32_cryp_dma_callback()
943 kfree(cryp->out_sg); in stm32_cryp_dma_callback()
1019 if (cryp->in_sg != cryp->out_sg) { in stm32_cryp_dma_start()
1027 ret = dma_map_sg(cryp->dev, cryp->out_sg, cryp->out_sg_len, DMA_FROM_DEVICE); in stm32_cryp_dma_start()
1046 tx_out = dmaengine_prep_slave_sg(cryp->dma_lch_out, cryp->out_sg, cryp->out_sg_len, in stm32_cryp_dma_start()
1447 struct scatterlist *out_sg) in stm32_cryp_dma_check() argument
1461 ret = stm32_cryp_dma_check_sg(out_sg, cryp->payload_out, AES_BLOCK_SIZE); in stm32_cryp_dma_check()
1543 struct scatterlist *out_sg) in stm32_cryp_cipher_prepare() argument
1548 cryp->dma_mode = stm32_cryp_dma_check(cryp, in_sg, out_sg); in stm32_cryp_cipher_prepare()
1551 scatterwalk_start(&cryp->out_walk, out_sg); in stm32_cryp_cipher_prepare()
1568 ret = stm32_cryp_truncate_sg(&cryp->out_sg, &cryp->out_sg_len, out_sg, 0, in stm32_cryp_cipher_prepare()
1578 cryp->out_sg = out_sg; in stm32_cryp_cipher_prepare()
1585 ret = sg_nents_for_len(out_sg, cryp->payload_out); in stm32_cryp_cipher_prepare()
1595 struct scatterlist *out_sg) in stm32_cryp_aead_prepare() argument
1603 cryp->out_sg = NULL; in stm32_cryp_aead_prepare()
1642 ret = stm32_cryp_truncate_sg(&cryp->out_sg, &cryp->out_sg_len, out_sg, skip, align_size); in stm32_cryp_aead_prepare()
1650 ret2 = stm32_cryp_dma_check_sg(cryp->out_sg, align_size, AES_BLOCK_SIZE); in stm32_cryp_aead_prepare()
1655 kfree(cryp->out_sg); in stm32_cryp_aead_prepare()
1656 cryp->out_sg = NULL; in stm32_cryp_aead_prepare()
1672 struct scatterlist *in_sg, *out_sg; in stm32_cryp_prepare_req() local
1699 out_sg = req->dst; in stm32_cryp_prepare_req()
1701 ret = stm32_cryp_cipher_prepare(cryp, in_sg, out_sg); in stm32_cryp_prepare_req()
1737 out_sg = areq->dst; in stm32_cryp_prepare_req()
1740 scatterwalk_start(&cryp->out_walk, out_sg); in stm32_cryp_prepare_req()
1748 ret = stm32_cryp_aead_prepare(cryp, in_sg, out_sg); in stm32_cryp_prepare_req()