Lines Matching refs:dma_chan
89 static struct omap_dma_lch *dma_chan; variable
416 p->dma_write(dma_chan[lch].enabled_irqs, CICR, lch); in omap_enable_channel_irq()
432 dma_chan[lch].enabled_irqs &= ~bits; in omap_disable_dma_irq()
446 if (dma_chan[lch].next_lch != -1) in enable_lnk()
447 l = dma_chan[lch].next_lch | (1 << 15); in enable_lnk()
472 dma_chan[lch].flags &= ~OMAP_DMA_ACTIVE; in disable_lnk()
487 if (free_ch == -1 && dma_chan[ch].dev_id == -1) { in omap_request_dma()
497 chan = dma_chan + free_ch; in omap_request_dma()
540 if (dma_chan[lch].dev_id == -1) { in omap_free_dma()
553 dma_chan[lch].dev_id = -1; in omap_free_dma()
554 dma_chan[lch].next_lch = -1; in omap_free_dma()
555 dma_chan[lch].callback = NULL; in omap_free_dma()
586 if (!omap_dma_in_1510_mode() && dma_chan[lch].next_lch != -1) { in omap_start_dma()
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()
631 dma_chan[lch].flags |= OMAP_DMA_ACTIVE; in omap_start_dma()
683 if (!omap_dma_in_1510_mode() && dma_chan[lch].next_lch != -1) { in omap_stop_dma()
697 next_lch = dma_chan[cur_lch].next_lch; in omap_stop_dma()
702 dma_chan[lch].flags &= ~OMAP_DMA_ACTIVE; in omap_stop_dma()
818 csr = dma_chan[ch].saved_csr; in omap1_dma_handle_ch()
819 dma_chan[ch].saved_csr = 0; in omap1_dma_handle_ch()
823 dma_chan[ch + 6].saved_csr = csr >> 7; in omap1_dma_handle_ch()
828 if (unlikely(dma_chan[ch].dev_id == -1)) { in omap1_dma_handle_ch()
834 pr_warn("DMA timeout with device %d\n", dma_chan[ch].dev_id); in omap1_dma_handle_ch()
837 dma_chan[ch].dev_id); in omap1_dma_handle_ch()
839 dma_chan[ch].flags &= ~OMAP_DMA_ACTIVE; in omap1_dma_handle_ch()
840 if (likely(dma_chan[ch].callback != NULL)) in omap1_dma_handle_ch()
841 dma_chan[ch].callback(ch, csr, dma_chan[ch].data); in omap1_dma_handle_ch()
855 if (enable_1510_mode && dma_chan[ch + 6].saved_csr) in omap1_dma_irq_handler()
900 dma_chan = devm_kcalloc(&pdev->dev, dma_lch_count, in omap_system_dma_probe()
901 sizeof(*dma_chan), GFP_KERNEL); in omap_system_dma_probe()
902 if (!dma_chan) in omap_system_dma_probe()
908 dma_chan[ch].dev_id = -1; in omap_system_dma_probe()
909 dma_chan[ch].next_lch = -1; in omap_system_dma_probe()
942 dma_chan[0].dev_id = 0; in omap_system_dma_probe()
943 dma_chan[1].dev_id = 1; in omap_system_dma_probe()