Lines Matching refs:dchan
52 return container_of(chan, struct tsi721_bdma_chan, dchan); in to_tsi721_chan()
77 struct device *dev = bdma_chan->dchan.device->dev; in tsi721_bdma_ch_init()
83 struct tsi721_device *priv = to_tsi721(bdma_chan->dchan.device); in tsi721_bdma_ch_init()
218 struct tsi721_device *priv = to_tsi721(bdma_chan->dchan.device); in tsi721_bdma_ch_free()
242 dma_free_coherent(bdma_chan->dchan.device->dev, in tsi721_bdma_ch_free()
248 dma_free_coherent(bdma_chan->dchan.device->dev, in tsi721_bdma_ch_free()
313 dev_err(bdma_chan->dchan.device->dev, in tsi721_start_dma()
319 dev_err(bdma_chan->dchan.device->dev, in tsi721_start_dma()
324 dev_dbg(bdma_chan->dchan.device->dev, in tsi721_start_dma()
416 struct dma_chan *dchan = desc->txd.chan; in tsi721_submit_sg() local
417 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); in tsi721_submit_sg()
430 dev_err(bdma_chan->dchan.device->dev, in tsi721_submit_sg()
442 sys_size = dma_to_mport(bdma_chan->dchan.device)->sys_size; in tsi721_submit_sg()
454 dev_dbg(dchan->device->dev, "%s: BD ring status: rdi=%d wri=%d\n", in tsi721_submit_sg()
459 dev_dbg(dchan->device->dev, "sg%d/%d addr: 0x%llx len: %d\n", in tsi721_submit_sg()
464 dev_err(dchan->device->dev, in tsi721_submit_sg()
482 dev_dbg(dchan->device->dev, in tsi721_submit_sg()
490 dev_dbg(dchan->device->dev, in tsi721_submit_sg()
501 dev_err(dchan->device->dev, in tsi721_submit_sg()
506 dev_dbg(dchan->device->dev, "bd_ptr = %p did=%d raddr=0x%llx\n", in tsi721_submit_sg()
522 dev_dbg(dchan->device->dev, "%s: last desc final len: %d\n", in tsi721_submit_sg()
542 dev_dbg(bdma_chan->dchan.device->dev, "%s: Enter\n", __func__); in tsi721_advance_work()
559 dev_dbg(bdma_chan->dchan.device->dev, in tsi721_advance_work()
565 dev_dbg(bdma_chan->dchan.device->dev, "%s: Exit\n", __func__); in tsi721_advance_work()
574 dev_dbg(bdma_chan->dchan.device->dev, "%s: DMAC%d_INT = 0x%x\n", in tsi721_dma_tasklet()
581 dev_err(bdma_chan->dchan.device->dev, in tsi721_dma_tasklet()
587 dev_err(bdma_chan->dchan.device->dev, in tsi721_dma_tasklet()
632 dev_err(bdma_chan->dchan.device->dev, in tsi721_tx_submit()
652 static int tsi721_alloc_chan_resources(struct dma_chan *dchan) in tsi721_alloc_chan_resources() argument
654 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); in tsi721_alloc_chan_resources()
658 dev_dbg(dchan->device->dev, "%s: for channel %d\n", in tsi721_alloc_chan_resources()
666 dev_err(dchan->device->dev, "Unable to initialize data DMA" in tsi721_alloc_chan_resources()
675 dev_err(dchan->device->dev, in tsi721_alloc_chan_resources()
684 dma_async_tx_descriptor_init(&desc[i].txd, dchan); in tsi721_alloc_chan_resources()
690 dma_cookie_init(dchan); in tsi721_alloc_chan_resources()
700 struct tsi721_device *priv = to_tsi721(bdma_chan->dchan.device); in tsi721_sync_dma_irq()
713 static void tsi721_free_chan_resources(struct dma_chan *dchan) in tsi721_free_chan_resources() argument
715 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); in tsi721_free_chan_resources()
717 dev_dbg(dchan->device->dev, "%s: for channel %d\n", in tsi721_free_chan_resources()
736 enum dma_status tsi721_tx_status(struct dma_chan *dchan, dma_cookie_t cookie, in tsi721_tx_status() argument
739 return dma_cookie_status(dchan, cookie, txstate); in tsi721_tx_status()
742 static void tsi721_issue_pending(struct dma_chan *dchan) in tsi721_issue_pending() argument
744 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); in tsi721_issue_pending()
746 dev_dbg(dchan->device->dev, "%s: Enter\n", __func__); in tsi721_issue_pending()
756 struct dma_async_tx_descriptor *tsi721_prep_rio_sg(struct dma_chan *dchan, in tsi721_prep_rio_sg() argument
761 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); in tsi721_prep_rio_sg()
768 dev_err(dchan->device->dev, "%s: No SG list\n", __func__); in tsi721_prep_rio_sg()
772 dev_dbg(dchan->device->dev, "%s: %s\n", __func__, in tsi721_prep_rio_sg()
791 dev_err(dchan->device->dev, in tsi721_prep_rio_sg()
818 static int tsi721_terminate_all(struct dma_chan *dchan) in tsi721_terminate_all() argument
820 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); in tsi721_terminate_all()
825 dev_dbg(dchan->device->dev, "%s: Entry\n", __func__); in tsi721_terminate_all()
870 bdma_chan->dchan.device = &mport->dma; in tsi721_register_dma()
871 bdma_chan->dchan.cookie = 1; in tsi721_register_dma()
872 bdma_chan->dchan.chan_id = i; in tsi721_register_dma()
884 list_add_tail(&bdma_chan->dchan.device_node, in tsi721_register_dma()