Lines Matching refs:src_ch
239 struct dma_register *dst_ch, *src_ch;
250 src_ch = 0;
253 if (src_ch == (struct dma_register *)MDMA_S0_NEXT_DESC_PTR) {
255 src_ch = (struct dma_register *)MDMA_S1_NEXT_DESC_PTR;
258 src_ch = (struct dma_register *)MDMA_S0_NEXT_DESC_PTR;
261 if (!bfin_read16(&src_ch->cfg))
264 bfin_write16(&src_ch->cfg, 0);
282 bfin_write32(&src_ch->start_addr, src);
283 bfin_write16(&src_ch->x_count, size >> 2);
284 bfin_write16(&src_ch->x_modify, 1 << 2);
285 bfin_write16(&src_ch->irq_status, DMA_DONE | DMA_ERR);
288 bfin_write16(&src_ch->cfg, DMAEN | WDSIZE_32);