Lines Matching refs:ch_state
209 enum dma_dw_axi_ch_state ch_state; member
346 chan_data->ch_state = dma_dw_axi_get_ch_status(dev, channel); in dma_dw_axi_isr()
444 uint32_t msize_src, msize_dst, i, ch_state; in dma_dw_axi_config() local
463 ch_state = dma_dw_axi_get_ch_status(dev, channel); in dma_dw_axi_config()
464 if (ch_state != DMA_DW_AXI_CH_IDLE) { in dma_dw_axi_config()
465 LOG_ERR("DMA channel:%d is not idle(status:%d)", channel, ch_state); in dma_dw_axi_config()
493 if (chan_data->ch_state != DMA_DW_AXI_CH_IDLE) { in dma_dw_axi_config()
632 chan_data->ch_state = DMA_DW_AXI_CH_PREPARED; in dma_dw_axi_config()
639 uint32_t ch_state; in dma_dw_axi_start() local
652 ch_state = dma_dw_axi_get_ch_status(dev, channel); in dma_dw_axi_start()
653 if (ch_state != DMA_DW_AXI_CH_IDLE) { in dma_dw_axi_start()
661 if (chan_data->ch_state != DMA_DW_AXI_CH_PREPARED) { in dma_dw_axi_start()
695 chan_data->ch_state = dma_dw_axi_get_ch_status(dev, channel); in dma_dw_axi_start()
703 uint32_t ch_state; in dma_dw_axi_stop() local
714 ch_state = dma_dw_axi_get_ch_status(dev, channel); in dma_dw_axi_stop()
715 if (ch_state == DMA_DW_AXI_CH_IDLE) { in dma_dw_axi_stop()
756 uint32_t ch_state; in dma_dw_axi_resume() local
764 ch_state = dma_dw_axi_get_ch_status(dev, channel); in dma_dw_axi_resume()
765 if (ch_state != DMA_DW_AXI_CH_SUSPENDED) { in dma_dw_axi_resume()
787 uint32_t ch_state; in dma_dw_axi_suspend() local
795 ch_state = dma_dw_axi_get_ch_status(dev, channel); in dma_dw_axi_suspend()
796 if (ch_state != DMA_DW_AXI_CH_ACTIVE) { in dma_dw_axi_suspend()
845 chan_data->ch_state = DMA_DW_AXI_CH_IDLE; in dma_dw_axi_init()