Lines Matching refs:sdesc
512 struct sprd_dma_desc *sdesc)
514 struct sprd_dma_chn_hw *cfg = &sdesc->chn_hw;
575 static bool sprd_dma_check_trans_done(struct sprd_dma_desc *sdesc,
593 struct sprd_dma_desc *sdesc;
606 sdesc = schan->cur_desc;
607 if (!sdesc) {
619 vchan_cyclic_callback(&sdesc->vd);
622 trans_done = sprd_dma_check_trans_done(sdesc, int_type,
625 vchan_cookie_complete(&sdesc->vd);
678 struct sprd_dma_desc *sdesc = to_sprd_dma_desc(vd);
679 struct sprd_dma_chn_hw *hw = &sdesc->chn_hw;
690 struct sprd_dma_desc *sdesc = schan->cur_desc;
692 if (sdesc->dir == DMA_DEV_TO_MEM)
904 struct sprd_dma_desc *sdesc;
909 sdesc = kzalloc(sizeof(*sdesc), GFP_NOWAIT);
910 if (!sdesc)
913 hw = &sdesc->chn_hw;
951 return vchan_tx_prep(&schan->vc, &sdesc->vd, flags);
963 struct sprd_dma_desc *sdesc;
994 sdesc = kzalloc(sizeof(*sdesc), GFP_NOWAIT);
995 if (!sdesc)
998 sdesc->dir = dir;
1027 kfree(sdesc);
1032 ret = sprd_dma_fill_desc(chan, &sdesc->chn_hw, 0, 0, start_src,
1035 kfree(sdesc);
1039 return vchan_tx_prep(&schan->vc, &sdesc->vd, flags);
1101 struct sprd_dma_desc *sdesc = to_sprd_dma_desc(vd);
1103 kfree(sdesc);