Lines Matching refs:free_ch
479 int ch, free_ch = -1; in omap_request_dma() local
487 if (free_ch == -1 && dma_chan[ch].dev_id == -1) { in omap_request_dma()
488 free_ch = ch; in omap_request_dma()
493 if (free_ch == -1) { in omap_request_dma()
497 chan = dma_chan + free_ch; in omap_request_dma()
501 p->clear_lch_regs(free_ch); in omap_request_dma()
518 set_gdma_dev(free_ch + 1, dev_id); in omap_request_dma()
519 dev_id = free_ch + 1; in omap_request_dma()
525 p->dma_write(dev_id | (1 << 10), CCR, free_ch); in omap_request_dma()
527 p->dma_write(dev_id, CCR, free_ch); in omap_request_dma()
530 *dma_ch_out = free_ch; in omap_request_dma()