Lines Matching refs:dma_channel
561 sh->dma_channel = 7; in aha1542_getconfig()
564 sh->dma_channel = 6; in aha1542_getconfig()
567 sh->dma_channel = 5; in aha1542_getconfig()
570 sh->dma_channel = 0; in aha1542_getconfig()
577 sh->dma_channel = 0xFF; in aha1542_getconfig()
774 if (sh->dma_channel != 0xFF) in aha1542_hw_init()
775 snprintf(dma_info, sizeof(dma_info), "DMA %d", sh->dma_channel); in aha1542_hw_init()
802 if (sh->dma_channel != 0xFF) { in aha1542_hw_init()
803 if (request_dma(sh->dma_channel, "aha1542")) { in aha1542_hw_init()
807 if (sh->dma_channel == 0 || sh->dma_channel >= 5) { in aha1542_hw_init()
808 set_dma_mode(sh->dma_channel, DMA_MODE_CASCADE); in aha1542_hw_init()
809 enable_dma(sh->dma_channel); in aha1542_hw_init()
821 if (sh->dma_channel != 0xff) in aha1542_hw_init()
822 free_dma(sh->dma_channel); in aha1542_hw_init()
845 if (sh->dma_channel != 0xff) in aha1542_release()
846 free_dma(sh->dma_channel); in aha1542_release()