Lines Matching refs:nr_src
74 int nr_src, nr_dst; member
644 if (sreq->nr_src > 0) in safexcel_handle_req_result()
645 dma_unmap_sg(priv->dev, src, sreq->nr_src, in safexcel_handle_req_result()
648 if (sreq->nr_src > 0) in safexcel_handle_req_result()
649 dma_unmap_sg(priv->dev, src, sreq->nr_src, in safexcel_handle_req_result()
696 sreq->nr_src = sg_nents_for_len(src, totlen_src); in safexcel_send_req()
721 sg_pcopy_to_buffer(src, sreq->nr_src, areq->iv, in safexcel_send_req()
737 sreq->nr_src = max(sreq->nr_src, sreq->nr_dst); in safexcel_send_req()
738 sreq->nr_dst = sreq->nr_src; in safexcel_send_req()
740 (sreq->nr_src <= 0))) { in safexcel_send_req()
745 if (sreq->nr_src > 0 && in safexcel_send_req()
746 !dma_map_sg(priv->dev, src, sreq->nr_src, DMA_BIDIRECTIONAL)) in safexcel_send_req()
749 if (unlikely(totlen_src && (sreq->nr_src <= 0))) { in safexcel_send_req()
755 if (sreq->nr_src > 0 && in safexcel_send_req()
756 !dma_map_sg(priv->dev, src, sreq->nr_src, DMA_TO_DEVICE)) in safexcel_send_req()
795 for_each_sg(src, sg, sreq->nr_src, i) { in safexcel_send_req()
902 if (sreq->nr_src > 0) in safexcel_send_req()
903 dma_unmap_sg(priv->dev, src, sreq->nr_src, in safexcel_send_req()
906 if (sreq->nr_src > 0) in safexcel_send_req()
907 dma_unmap_sg(priv->dev, src, sreq->nr_src, in safexcel_send_req()