Lines Matching refs:sdesc
512 struct sprd_dma_desc *sdesc) in sprd_dma_set_chn_config() argument
514 struct sprd_dma_chn_hw *cfg = &sdesc->chn_hw; in sprd_dma_set_chn_config()
575 static bool sprd_dma_check_trans_done(struct sprd_dma_desc *sdesc, in sprd_dma_check_trans_done() argument
593 struct sprd_dma_desc *sdesc; in dma_irq_handle() local
606 sdesc = schan->cur_desc; in dma_irq_handle()
607 if (!sdesc) { in dma_irq_handle()
619 vchan_cyclic_callback(&sdesc->vd); in dma_irq_handle()
622 trans_done = sprd_dma_check_trans_done(sdesc, int_type, in dma_irq_handle()
625 vchan_cookie_complete(&sdesc->vd); in dma_irq_handle()
678 struct sprd_dma_desc *sdesc = to_sprd_dma_desc(vd); in sprd_dma_tx_status() local
679 struct sprd_dma_chn_hw *hw = &sdesc->chn_hw; in sprd_dma_tx_status()
690 struct sprd_dma_desc *sdesc = schan->cur_desc; in sprd_dma_tx_status() local
692 if (sdesc->dir == DMA_DEV_TO_MEM) in sprd_dma_tx_status()
901 struct sprd_dma_desc *sdesc; in sprd_dma_prep_dma_memcpy() local
906 sdesc = kzalloc(sizeof(*sdesc), GFP_NOWAIT); in sprd_dma_prep_dma_memcpy()
907 if (!sdesc) in sprd_dma_prep_dma_memcpy()
910 hw = &sdesc->chn_hw; in sprd_dma_prep_dma_memcpy()
948 return vchan_tx_prep(&schan->vc, &sdesc->vd, flags); in sprd_dma_prep_dma_memcpy()
960 struct sprd_dma_desc *sdesc; in sprd_dma_prep_slave_sg() local
991 sdesc = kzalloc(sizeof(*sdesc), GFP_NOWAIT); in sprd_dma_prep_slave_sg()
992 if (!sdesc) in sprd_dma_prep_slave_sg()
995 sdesc->dir = dir; in sprd_dma_prep_slave_sg()
1024 kfree(sdesc); in sprd_dma_prep_slave_sg()
1029 ret = sprd_dma_fill_desc(chan, &sdesc->chn_hw, 0, 0, start_src, in sprd_dma_prep_slave_sg()
1032 kfree(sdesc); in sprd_dma_prep_slave_sg()
1036 return vchan_tx_prep(&schan->vc, &sdesc->vd, flags); in sprd_dma_prep_slave_sg()
1098 struct sprd_dma_desc *sdesc = to_sprd_dma_desc(vd); in sprd_dma_free_desc() local
1100 kfree(sdesc); in sprd_dma_free_desc()