Lines Matching refs:in_sg
115 struct scatterlist *in_sg; member
305 dma_unmap_sg(dd->dev, dd->in_sg, 1, DMA_TO_DEVICE); in atmel_tdes_crypt_pdc_stop()
496 in = IS_ALIGNED((u32)dd->in_sg->offset, sizeof(u32)) && in atmel_tdes_crypt_start()
497 IS_ALIGNED(dd->in_sg->length, dd->ctx->block_size); in atmel_tdes_crypt_start()
502 if (sg_dma_len(dd->in_sg) != sg_dma_len(dd->out_sg)) in atmel_tdes_crypt_start()
508 count = min_t(size_t, dd->total, sg_dma_len(dd->in_sg)); in atmel_tdes_crypt_start()
511 err = dma_map_sg(dd->dev, dd->in_sg, 1, DMA_TO_DEVICE); in atmel_tdes_crypt_start()
521 dma_unmap_sg(dd->dev, dd->in_sg, 1, in atmel_tdes_crypt_start()
526 addr_in = sg_dma_address(dd->in_sg); in atmel_tdes_crypt_start()
533 count = atmel_tdes_sg_copy(&dd->in_sg, &dd->in_offset, in atmel_tdes_crypt_start()
550 dma_unmap_sg(dd->dev, dd->in_sg, 1, DMA_TO_DEVICE); in atmel_tdes_crypt_start()
630 dd->in_sg = req->src; in atmel_tdes_handle_queue()
661 dma_unmap_sg(dd->dev, dd->in_sg, 1, DMA_TO_DEVICE); in atmel_tdes_crypt_dma_stop()
1063 dd->in_sg = sg_next(dd->in_sg); in atmel_tdes_done_task()
1065 if (!dd->in_sg || !dd->out_sg) in atmel_tdes_done_task()