Lines Matching refs:chan
104 struct dma_chan *chan; in au1000_dma_read_proc() local
107 chan = get_dma_chan(i); in au1000_dma_read_proc()
108 if (chan != NULL) in au1000_dma_read_proc()
110 i, chan->dev_str); in au1000_dma_read_proc()
136 struct dma_chan *chan; in dump_au1000_dma_channel() local
140 chan = &au1000_dma_table[dmanr]; in dump_au1000_dma_channel()
144 au_readl(chan->io + DMA_MODE_SET)); in dump_au1000_dma_channel()
146 au_readl(chan->io + DMA_PERIPHERAL_ADDR)); in dump_au1000_dma_channel()
148 au_readl(chan->io + DMA_BUFFER0_START)); in dump_au1000_dma_channel()
150 au_readl(chan->io + DMA_BUFFER1_START)); in dump_au1000_dma_channel()
152 au_readl(chan->io + DMA_BUFFER0_COUNT)); in dump_au1000_dma_channel()
154 au_readl(chan->io + DMA_BUFFER1_COUNT)); in dump_au1000_dma_channel()
167 struct dma_chan *chan; in request_au1000_dma() local
186 chan = &au1000_dma_table[i]; in request_au1000_dma()
195 chan->irq_dev = irq_dev_id; in request_au1000_dma()
196 ret = request_irq(chan->irq, irqhandler, irqflags, dev_str, in request_au1000_dma()
197 chan->irq_dev); in request_au1000_dma()
199 chan->irq_dev = NULL; in request_au1000_dma()
203 chan->irq_dev = NULL; in request_au1000_dma()
207 chan->io = KSEG1ADDR(AU1000_DMA_PHYS_ADDR) + i * DMA_CHANNEL_LEN; in request_au1000_dma()
208 chan->dev_id = dev_id; in request_au1000_dma()
209 chan->dev_str = dev_str; in request_au1000_dma()
210 chan->fifo_addr = dev->fifo_addr; in request_au1000_dma()
211 chan->mode = dev->dma_mode; in request_au1000_dma()
222 struct dma_chan *chan = get_dma_chan(dmanr); in free_au1000_dma() local
224 if (!chan) { in free_au1000_dma()
230 if (chan->irq_dev) in free_au1000_dma()
231 free_irq(chan->irq, chan->irq_dev); in free_au1000_dma()
233 chan->irq_dev = NULL; in free_au1000_dma()
234 chan->dev_id = -1; in free_au1000_dma()