Lines Matching refs:cur_lch
587 int next_lch, cur_lch; in omap_start_dma() local
596 cur_lch = dma_chan[lch].next_lch; in omap_start_dma()
598 next_lch = dma_chan[cur_lch].next_lch; in omap_start_dma()
601 if (dma_chan_link_map[cur_lch]) in omap_start_dma()
604 dma_chan_link_map[cur_lch] = 1; in omap_start_dma()
606 enable_lnk(cur_lch); in omap_start_dma()
607 omap_enable_channel_irq(cur_lch); in omap_start_dma()
609 cur_lch = next_lch; in omap_start_dma()
684 int next_lch, cur_lch = lch; in omap_stop_dma() local
690 if (dma_chan_link_map[cur_lch]) in omap_stop_dma()
693 dma_chan_link_map[cur_lch] = 1; in omap_stop_dma()
695 disable_lnk(cur_lch); in omap_stop_dma()
697 next_lch = dma_chan[cur_lch].next_lch; in omap_stop_dma()
698 cur_lch = next_lch; in omap_stop_dma()