Lines Matching refs:sdesc

379 				    struct sprd_dma_desc *sdesc)  in sprd_dma_set_chn_config()  argument
381 struct sprd_dma_chn_hw *cfg = &sdesc->chn_hw; in sprd_dma_set_chn_config()
430 static bool sprd_dma_check_trans_done(struct sprd_dma_desc *sdesc, in sprd_dma_check_trans_done() argument
448 struct sprd_dma_desc *sdesc; in dma_irq_handle() local
464 sdesc = schan->cur_desc; in dma_irq_handle()
467 trans_done = sprd_dma_check_trans_done(sdesc, int_type, in dma_irq_handle()
470 vchan_cookie_complete(&sdesc->vd); in dma_irq_handle()
523 struct sprd_dma_desc *sdesc = to_sprd_dma_desc(vd); in sprd_dma_tx_status() local
524 struct sprd_dma_chn_hw *hw = &sdesc->chn_hw; in sprd_dma_tx_status()
585 struct sprd_dma_desc *sdesc, in sprd_dma_fill_desc() argument
593 struct sprd_dma_chn_hw *hw = &sdesc->chn_hw; in sprd_dma_fill_desc()
684 struct sprd_dma_desc *sdesc; in sprd_dma_prep_dma_memcpy() local
689 sdesc = kzalloc(sizeof(*sdesc), GFP_NOWAIT); in sprd_dma_prep_dma_memcpy()
690 if (!sdesc) in sprd_dma_prep_dma_memcpy()
693 hw = &sdesc->chn_hw; in sprd_dma_prep_dma_memcpy()
731 return vchan_tx_prep(&schan->vc, &sdesc->vd, flags); in sprd_dma_prep_dma_memcpy()
742 struct sprd_dma_desc *sdesc; in sprd_dma_prep_slave_sg() local
751 sdesc = kzalloc(sizeof(*sdesc), GFP_NOWAIT); in sprd_dma_prep_slave_sg()
752 if (!sdesc) in sprd_dma_prep_slave_sg()
767 ret = sprd_dma_fill_desc(chan, sdesc, src, dst, len, dir, flags, in sprd_dma_prep_slave_sg()
770 kfree(sdesc); in sprd_dma_prep_slave_sg()
774 return vchan_tx_prep(&schan->vc, &sdesc->vd, flags); in sprd_dma_prep_slave_sg()
832 struct sprd_dma_desc *sdesc = to_sprd_dma_desc(vd); in sprd_dma_free_desc() local
834 kfree(sdesc); in sprd_dma_free_desc()