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