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()
308 tsi_err(&bdma_chan->dchan.dev->device, in tsi721_start_dma()
315 tsi_err(&bdma_chan->dchan.dev->device, in tsi721_start_dma()
321 tsi_debug(DMA, &bdma_chan->dchan.dev->device, "DMAC%d (wrc=%d) %d", in tsi721_start_dma()
413 struct dma_chan *dchan = desc->txd.chan; in tsi721_submit_sg() local
414 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); in tsi721_submit_sg()
425 struct device *ch_dev = &dchan->dev->device; in tsi721_submit_sg()
440 sys_size = dma_to_mport(dchan->device)->sys_size; in tsi721_submit_sg()
539 tsi_debug(DMA, &bdma_chan->dchan.dev->device, "DMAC%d", bdma_chan->id); in tsi721_advance_work()
561 tsi_debug(DMA, &bdma_chan->dchan.dev->device, in tsi721_advance_work()
567 tsi_debug(DMA, &bdma_chan->dchan.dev->device, "DMAC%d Exit", in tsi721_advance_work()
577 tsi_debug(DMA, &bdma_chan->dchan.dev->device, "DMAC%d_INT = 0x%x", in tsi721_dma_tasklet()
588 tsi_err(&bdma_chan->dchan.dev->device, in tsi721_dma_tasklet()
611 tsi_err(&bdma_chan->dchan.dev->device, in tsi721_dma_tasklet()
652 tsi_err(&bdma_chan->dchan.dev->device, in tsi721_dma_tasklet()
701 tsi_err(&bdma_chan->dchan.dev->device, in tsi721_tx_submit()
723 static int tsi721_alloc_chan_resources(struct dma_chan *dchan) in tsi721_alloc_chan_resources() argument
725 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); in tsi721_alloc_chan_resources()
729 tsi_debug(DMA, &dchan->dev->device, "DMAC%d", bdma_chan->id); in tsi721_alloc_chan_resources()
736 tsi_err(&dchan->dev->device, "Unable to initialize DMAC%d", in tsi721_alloc_chan_resources()
752 dma_async_tx_descriptor_init(&desc[i].txd, dchan); in tsi721_alloc_chan_resources()
758 dma_cookie_init(dchan); in tsi721_alloc_chan_resources()
768 struct tsi721_device *priv = to_tsi721(bdma_chan->dchan.device); in tsi721_sync_dma_irq()
781 static void tsi721_free_chan_resources(struct dma_chan *dchan) in tsi721_free_chan_resources() argument
783 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); in tsi721_free_chan_resources()
785 tsi_debug(DMA, &dchan->dev->device, "DMAC%d", bdma_chan->id); in tsi721_free_chan_resources()
800 enum dma_status tsi721_tx_status(struct dma_chan *dchan, dma_cookie_t cookie, in tsi721_tx_status() argument
803 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); in tsi721_tx_status()
807 status = dma_cookie_status(dchan, cookie, txstate); in tsi721_tx_status()
812 static void tsi721_issue_pending(struct dma_chan *dchan) in tsi721_issue_pending() argument
814 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); in tsi721_issue_pending()
816 tsi_debug(DMA, &dchan->dev->device, "DMAC%d", bdma_chan->id); in tsi721_issue_pending()
826 struct dma_async_tx_descriptor *tsi721_prep_rio_sg(struct dma_chan *dchan, in tsi721_prep_rio_sg() argument
831 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); in tsi721_prep_rio_sg()
838 tsi_err(&dchan->dev->device, "DMAC%d No SG list", in tsi721_prep_rio_sg()
843 tsi_debug(DMA, &dchan->dev->device, "DMAC%d %s", bdma_chan->id, in tsi721_prep_rio_sg()
862 tsi_err(&dchan->dev->device, in tsi721_prep_rio_sg()
887 tsi_debug(DMA, &dchan->dev->device, in tsi721_prep_rio_sg()
895 static int tsi721_terminate_all(struct dma_chan *dchan) in tsi721_terminate_all() argument
897 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); in tsi721_terminate_all()
901 tsi_debug(DMA, &dchan->dev->device, "DMAC%d", bdma_chan->id); in tsi721_terminate_all()
981 bdma_chan->dchan.device = &mport->dma; in tsi721_register_dma()
982 bdma_chan->dchan.cookie = 1; in tsi721_register_dma()
983 bdma_chan->dchan.chan_id = i; in tsi721_register_dma()
995 list_add_tail(&bdma_chan->dchan.device_node, in tsi721_register_dma()