Lines Matching refs:in_sg
152 struct scatterlist *in_sg; member
377 struct scatterlist *in_sg, struct scatterlist *out_sg, in omap_des_crypt_dma() argument
387 scatterwalk_start(&dd->in_walk, dd->in_sg); in omap_des_crypt_dma()
396 dma_sync_sg_for_device(dd->dev, dd->in_sg, in_sg_len, DMA_TO_DEVICE); in omap_des_crypt_dma()
415 tx_in = dmaengine_prep_slave_sg(dd->dma_lch_in, in_sg, in_sg_len, in omap_des_crypt_dma()
466 err = dma_map_sg(dd->dev, dd->in_sg, dd->in_sg_len, in omap_des_crypt_dma_start()
481 err = omap_des_crypt_dma(tfm, dd->in_sg, dd->out_sg, dd->in_sg_len, in omap_des_crypt_dma_start()
484 dma_unmap_sg(dd->dev, dd->in_sg, dd->in_sg_len, DMA_TO_DEVICE); in omap_des_crypt_dma_start()
543 dd->in_sg = req->src; in omap_des_prepare_req()
551 ret = omap_crypto_align_sg(&dd->in_sg, dd->total, DES_BLOCK_SIZE, in omap_des_prepare_req()
563 dd->in_sg_len = sg_nents_for_len(dd->in_sg, dd->total); in omap_des_prepare_req()
606 dma_unmap_sg(dd->dev, dd->in_sg, dd->in_sg_len, DMA_TO_DEVICE); in omap_des_done_task()
845 BUG_ON(!dd->in_sg); in omap_des_irq()
847 BUG_ON(_calc_walked(in) > dd->in_sg->length); in omap_des_irq()
849 src = sg_virt(dd->in_sg) + _calc_walked(in); in omap_des_irq()
855 if (dd->in_sg->length == _calc_walked(in)) { in omap_des_irq()
856 dd->in_sg = sg_next(dd->in_sg); in omap_des_irq()
857 if (dd->in_sg) { in omap_des_irq()
859 dd->in_sg); in omap_des_irq()
860 src = sg_virt(dd->in_sg) + in omap_des_irq()