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)
901 struct sprd_dma_desc *sdesc;
906 sdesc = kzalloc(sizeof(*sdesc), GFP_NOWAIT);
907 if (!sdesc)
910 hw = &sdesc->chn_hw;
948 return vchan_tx_prep(&schan->vc, &sdesc->vd, flags);
960 struct sprd_dma_desc *sdesc;
991 sdesc = kzalloc(sizeof(*sdesc), GFP_NOWAIT);
992 if (!sdesc)
995 sdesc->dir = dir;
1024 kfree(sdesc);
1029 ret = sprd_dma_fill_desc(chan, &sdesc->chn_hw, 0, 0, start_src,
1032 kfree(sdesc);
1036 return vchan_tx_prep(&schan->vc, &sdesc->vd, flags);
1098 struct sprd_dma_desc *sdesc = to_sprd_dma_desc(vd);
1100 kfree(sdesc);