Lines Matching refs:out_sg
118 struct scatterlist *out_sg; member
304 dma_unmap_sg(dd->dev, dd->out_sg, 1, DMA_FROM_DEVICE); in atmel_tdes_crypt_pdc_stop()
311 count = atmel_tdes_sg_copy(&dd->out_sg, &dd->out_offset, in atmel_tdes_crypt_pdc_stop()
498 out = IS_ALIGNED((u32)dd->out_sg->offset, sizeof(u32)) && in atmel_tdes_crypt_start()
499 IS_ALIGNED(dd->out_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()
509 count = min_t(size_t, count, sg_dma_len(dd->out_sg)); in atmel_tdes_crypt_start()
517 err = dma_map_sg(dd->dev, dd->out_sg, 1, in atmel_tdes_crypt_start()
527 addr_out = sg_dma_address(dd->out_sg); in atmel_tdes_crypt_start()
551 dma_unmap_sg(dd->dev, dd->out_sg, 1, DMA_TO_DEVICE); in atmel_tdes_crypt_start()
632 dd->out_sg = req->dst; in atmel_tdes_handle_queue()
660 dma_unmap_sg(dd->dev, dd->out_sg, 1, DMA_FROM_DEVICE); in atmel_tdes_crypt_dma_stop()
667 count = atmel_tdes_sg_copy(&dd->out_sg, &dd->out_offset, in atmel_tdes_crypt_dma_stop()
1064 dd->out_sg = sg_next(dd->out_sg); in atmel_tdes_done_task()
1065 if (!dd->in_sg || !dd->out_sg) in atmel_tdes_done_task()