Lines Matching refs:cur_lch
468 int next_lch, cur_lch; in omap_start_dma() local
477 cur_lch = dma_chan[lch].next_lch; in omap_start_dma()
479 next_lch = dma_chan[cur_lch].next_lch; in omap_start_dma()
482 if (dma_chan_link_map[cur_lch]) in omap_start_dma()
485 dma_chan_link_map[cur_lch] = 1; in omap_start_dma()
487 enable_lnk(cur_lch); in omap_start_dma()
488 omap_enable_channel_irq(cur_lch); in omap_start_dma()
490 cur_lch = next_lch; in omap_start_dma()
565 int next_lch, cur_lch = lch; in omap_stop_dma() local
571 if (dma_chan_link_map[cur_lch]) in omap_stop_dma()
574 dma_chan_link_map[cur_lch] = 1; in omap_stop_dma()
576 disable_lnk(cur_lch); in omap_stop_dma()
578 next_lch = dma_chan[cur_lch].next_lch; in omap_stop_dma()
579 cur_lch = next_lch; in omap_stop_dma()