Lines Matching refs:sdesc
56 struct shdma_desc *sdesc; in shdma_chan_xfer_ld_queue() local
63 list_for_each_entry(sdesc, &schan->ld_queue, node) in shdma_chan_xfer_ld_queue()
64 if (sdesc->mark == DESC_SUBMITTED) { in shdma_chan_xfer_ld_queue()
65 ops->start_xfer(schan, sdesc); in shdma_chan_xfer_ld_queue()
159 struct shdma_desc *sdesc; in shdma_get_desc() local
161 list_for_each_entry(sdesc, &schan->ld_free, node) in shdma_get_desc()
162 if (sdesc->mark != DESC_PREPARED) { in shdma_get_desc()
163 BUG_ON(sdesc->mark != DESC_IDLE); in shdma_get_desc()
164 list_del(&sdesc->node); in shdma_get_desc()
165 return sdesc; in shdma_get_desc()
829 struct shdma_desc *sdesc; in shdma_tx_status() local
831 list_for_each_entry(sdesc, &schan->ld_queue, node) in shdma_tx_status()
832 if (sdesc->cookie == cookie) { in shdma_tx_status()
853 struct shdma_desc *sdesc; in shdma_reset() local
875 list_for_each_entry(sdesc, &dl, node) { in shdma_reset()
876 struct dma_async_tx_descriptor *tx = &sdesc->async_tx; in shdma_reset()
878 sdesc->mark = DESC_IDLE; in shdma_reset()
914 struct shdma_desc *sdesc; in chan_irqt() local
917 list_for_each_entry(sdesc, &schan->ld_queue, node) { in chan_irqt()
918 if (sdesc->mark == DESC_SUBMITTED && in chan_irqt()
919 ops->desc_completed(schan, sdesc)) { in chan_irqt()
921 sdesc->async_tx.cookie, &sdesc->async_tx); in chan_irqt()
922 sdesc->mark = DESC_COMPLETED; in chan_irqt()