Lines Matching refs:dchan
49 return container_of(chan, struct tsi721_bdma_chan, dchan); in to_tsi721_chan()
66 struct device *dev = bdma_chan->dchan.device->dev; in tsi721_bdma_ch_init()
72 struct tsi721_device *priv = to_tsi721(bdma_chan->dchan.device); in tsi721_bdma_ch_init()
75 tsi_debug(DMA, &bdma_chan->dchan.dev->device, "DMAC%d", bdma_chan->id); in tsi721_bdma_ch_init()
91 tsi_debug(DMA, &bdma_chan->dchan.dev->device, in tsi721_bdma_ch_init()
115 tsi_debug(DMA, &bdma_chan->dchan.dev->device, in tsi721_bdma_ch_init()
156 tsi_debug(DMA, &bdma_chan->dchan.dev->device, in tsi721_bdma_ch_init()
168 tsi_debug(DMA, &bdma_chan->dchan.dev->device, in tsi721_bdma_ch_init()
210 struct tsi721_device *priv = to_tsi721(bdma_chan->dchan.device); in tsi721_bdma_ch_free()
234 dma_free_coherent(bdma_chan->dchan.device->dev, in tsi721_bdma_ch_free()
240 dma_free_coherent(bdma_chan->dchan.device->dev, in tsi721_bdma_ch_free()
306 tsi_err(&bdma_chan->dchan.dev->device, in tsi721_start_dma()
313 tsi_err(&bdma_chan->dchan.dev->device, in tsi721_start_dma()
319 tsi_debug(DMA, &bdma_chan->dchan.dev->device, "DMAC%d (wrc=%d) %d", in tsi721_start_dma()
411 struct dma_chan *dchan = desc->txd.chan; in tsi721_submit_sg() local
412 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); in tsi721_submit_sg()
423 struct device *ch_dev = &dchan->dev->device; in tsi721_submit_sg()
438 sys_size = dma_to_mport(dchan->device)->sys_size; in tsi721_submit_sg()
537 tsi_debug(DMA, &bdma_chan->dchan.dev->device, "DMAC%d", bdma_chan->id); in tsi721_advance_work()
559 tsi_debug(DMA, &bdma_chan->dchan.dev->device, in tsi721_advance_work()
565 tsi_debug(DMA, &bdma_chan->dchan.dev->device, "DMAC%d Exit", in tsi721_advance_work()
575 tsi_debug(DMA, &bdma_chan->dchan.dev->device, "DMAC%d_INT = 0x%x", in tsi721_dma_tasklet()
586 tsi_err(&bdma_chan->dchan.dev->device, in tsi721_dma_tasklet()
609 tsi_err(&bdma_chan->dchan.dev->device, in tsi721_dma_tasklet()
650 tsi_err(&bdma_chan->dchan.dev->device, in tsi721_dma_tasklet()
699 tsi_err(&bdma_chan->dchan.dev->device, in tsi721_tx_submit()
721 static int tsi721_alloc_chan_resources(struct dma_chan *dchan) in tsi721_alloc_chan_resources() argument
723 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); in tsi721_alloc_chan_resources()
727 tsi_debug(DMA, &dchan->dev->device, "DMAC%d", bdma_chan->id); in tsi721_alloc_chan_resources()
734 tsi_err(&dchan->dev->device, "Unable to initialize DMAC%d", in tsi721_alloc_chan_resources()
750 dma_async_tx_descriptor_init(&desc[i].txd, dchan); in tsi721_alloc_chan_resources()
756 dma_cookie_init(dchan); in tsi721_alloc_chan_resources()
766 struct tsi721_device *priv = to_tsi721(bdma_chan->dchan.device); in tsi721_sync_dma_irq()
779 static void tsi721_free_chan_resources(struct dma_chan *dchan) in tsi721_free_chan_resources() argument
781 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); in tsi721_free_chan_resources()
783 tsi_debug(DMA, &dchan->dev->device, "DMAC%d", bdma_chan->id); in tsi721_free_chan_resources()
798 enum dma_status tsi721_tx_status(struct dma_chan *dchan, dma_cookie_t cookie, in tsi721_tx_status() argument
801 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); in tsi721_tx_status()
805 status = dma_cookie_status(dchan, cookie, txstate); in tsi721_tx_status()
810 static void tsi721_issue_pending(struct dma_chan *dchan) in tsi721_issue_pending() argument
812 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); in tsi721_issue_pending()
814 tsi_debug(DMA, &dchan->dev->device, "DMAC%d", bdma_chan->id); in tsi721_issue_pending()
824 struct dma_async_tx_descriptor *tsi721_prep_rio_sg(struct dma_chan *dchan, in tsi721_prep_rio_sg() argument
829 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); in tsi721_prep_rio_sg()
836 tsi_err(&dchan->dev->device, "DMAC%d No SG list", in tsi721_prep_rio_sg()
841 tsi_debug(DMA, &dchan->dev->device, "DMAC%d %s", bdma_chan->id, in tsi721_prep_rio_sg()
860 tsi_err(&dchan->dev->device, in tsi721_prep_rio_sg()
885 tsi_debug(DMA, &dchan->dev->device, in tsi721_prep_rio_sg()
893 static int tsi721_terminate_all(struct dma_chan *dchan) in tsi721_terminate_all() argument
895 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); in tsi721_terminate_all()
899 tsi_debug(DMA, &dchan->dev->device, "DMAC%d", bdma_chan->id); in tsi721_terminate_all()
979 bdma_chan->dchan.device = &mport->dma; in tsi721_register_dma()
980 bdma_chan->dchan.cookie = 1; in tsi721_register_dma()
981 bdma_chan->dchan.chan_id = i; in tsi721_register_dma()
993 list_add_tail(&bdma_chan->dchan.device_node, in tsi721_register_dma()