Lines Matching refs:desc_sw
415 struct xgene_dma_desc_sw *desc_sw, in xgene_dma_prep_xor_desc() argument
424 desc1 = &desc_sw->desc1; in xgene_dma_prep_xor_desc()
425 desc2 = &desc_sw->desc2; in xgene_dma_prep_xor_desc()
454 desc_sw->flags |= XGENE_DMA_FLAG_64B_DESC; in xgene_dma_prep_xor_desc()
595 struct xgene_dma_desc_sw *desc_sw) in xgene_chan_xfer_request() argument
611 memcpy(desc_hw, &desc_sw->desc1, sizeof(*desc_hw)); in xgene_chan_xfer_request()
617 if (desc_sw->flags & XGENE_DMA_FLAG_64B_DESC) { in xgene_chan_xfer_request()
623 memcpy(desc_hw, &desc_sw->desc2, sizeof(*desc_hw)); in xgene_chan_xfer_request()
627 chan->pending += ((desc_sw->flags & in xgene_chan_xfer_request()
631 iowrite32((desc_sw->flags & XGENE_DMA_FLAG_64B_DESC) ? in xgene_chan_xfer_request()
643 struct xgene_dma_desc_sw *desc_sw, *_desc_sw; in xgene_chan_xfer_ld_pending() local
658 list_for_each_entry_safe(desc_sw, _desc_sw, &chan->ld_pending, node) { in xgene_chan_xfer_ld_pending()
668 xgene_chan_xfer_request(chan, desc_sw); in xgene_chan_xfer_ld_pending()
674 list_move_tail(&desc_sw->node, &chan->ld_running); in xgene_chan_xfer_ld_pending()
690 struct xgene_dma_desc_sw *desc_sw, *_desc_sw; in xgene_dma_cleanup_descriptors() local
703 list_for_each_entry_safe(desc_sw, _desc_sw, &chan->ld_running, node) { in xgene_dma_cleanup_descriptors()
728 XGENE_DMA_DESC_DUMP(&desc_sw->desc1, in xgene_dma_cleanup_descriptors()
731 if (desc_sw->flags & XGENE_DMA_FLAG_64B_DESC) in xgene_dma_cleanup_descriptors()
732 XGENE_DMA_DESC_DUMP(&desc_sw->desc2, in xgene_dma_cleanup_descriptors()
749 chan->pending -= ((desc_sw->flags & in xgene_dma_cleanup_descriptors()
756 list_move_tail(&desc_sw->node, &ld_completed); in xgene_dma_cleanup_descriptors()
769 list_for_each_entry_safe(desc_sw, _desc_sw, &ld_completed, node) { in xgene_dma_cleanup_descriptors()
770 xgene_dma_run_tx_complete_actions(chan, desc_sw); in xgene_dma_cleanup_descriptors()
771 xgene_dma_clean_running_descriptor(chan, desc_sw); in xgene_dma_cleanup_descriptors()