Home
last modified time | relevance | path

Searched refs:in_sg (Results 1 – 2 of 2) sorted by relevance

/linux-3.4.99/drivers/crypto/
Dtegra-aes.c174 struct scatterlist *in_sg; member
401 struct scatterlist *in_sg, *out_sg; in tegra_aes_handle_req() local
433 dd->in_sg = req->src; in tegra_aes_handle_req()
437 in_sg = dd->in_sg; in tegra_aes_handle_req()
480 ret = dma_map_sg(dd->dev, in_sg, 1, DMA_TO_DEVICE); in tegra_aes_handle_req()
489 dma_unmap_sg(dd->dev, dd->in_sg, in tegra_aes_handle_req()
494 addr_in = sg_dma_address(in_sg); in tegra_aes_handle_req()
497 count = min_t(int, sg_dma_len(in_sg), dma_max); in tegra_aes_handle_req()
498 WARN_ON(sg_dma_len(in_sg) != sg_dma_len(out_sg)); in tegra_aes_handle_req()
505 dma_unmap_sg(dd->dev, in_sg, 1, DMA_TO_DEVICE); in tegra_aes_handle_req()
[all …]
Domap-aes.c114 struct scatterlist *in_sg; member
483 if (sg_is_last(dd->in_sg) && sg_is_last(dd->out_sg)) { in omap_aes_crypt_dma_start()
485 in = IS_ALIGNED((u32)dd->in_sg->offset, sizeof(u32)); in omap_aes_crypt_dma_start()
492 count = min(dd->total, sg_dma_len(dd->in_sg)); in omap_aes_crypt_dma_start()
502 err = dma_map_sg(dd->dev, dd->in_sg, 1, DMA_TO_DEVICE); in omap_aes_crypt_dma_start()
511 dma_unmap_sg(dd->dev, dd->in_sg, 1, DMA_TO_DEVICE); in omap_aes_crypt_dma_start()
515 addr_in = sg_dma_address(dd->in_sg); in omap_aes_crypt_dma_start()
522 count = sg_copy(&dd->in_sg, &dd->in_offset, dd->buf_in, in omap_aes_crypt_dma_start()
536 dma_unmap_sg(dd->dev, dd->in_sg, 1, DMA_TO_DEVICE); in omap_aes_crypt_dma_start()
569 dma_unmap_sg(dd->dev, dd->in_sg, 1, DMA_TO_DEVICE); in omap_aes_crypt_dma_stop()
[all …]