Lines Matching refs:intr_status

81 					      struct dma_esp32_channel *rx, uint32_t intr_status)  in dma_esp32_isr_handle_rx()  argument
86 gdma_ll_rx_clear_interrupt_status(data->hal.dev, rx->channel_id, intr_status); in dma_esp32_isr_handle_rx()
88 if (intr_status == (GDMA_LL_EVENT_RX_SUC_EOF | GDMA_LL_EVENT_RX_DONE)) { in dma_esp32_isr_handle_rx()
90 } else if (intr_status == GDMA_LL_EVENT_RX_DONE) { in dma_esp32_isr_handle_rx()
93 } else if (intr_status == GDMA_LL_EVENT_RX_WATER_MARK) { in dma_esp32_isr_handle_rx()
97 status = -intr_status; in dma_esp32_isr_handle_rx()
106 struct dma_esp32_channel *tx, uint32_t intr_status) in dma_esp32_isr_handle_tx() argument
110 gdma_ll_tx_clear_interrupt_status(data->hal.dev, tx->channel_id, intr_status); in dma_esp32_isr_handle_tx()
112 intr_status &= ~(GDMA_LL_EVENT_TX_TOTAL_EOF | GDMA_LL_EVENT_TX_DONE | GDMA_LL_EVENT_TX_EOF); in dma_esp32_isr_handle_tx()
115 tx->cb(dev, tx->user_data, tx->channel_id * 2 + 1, -intr_status); in dma_esp32_isr_handle_tx()
126 uint32_t intr_status = 0; in dma_esp32_isr_handle() local
128 intr_status = gdma_ll_rx_get_interrupt_status(data->hal.dev, dma_channel_rx->channel_id); in dma_esp32_isr_handle()
129 if (intr_status) { in dma_esp32_isr_handle()
130 dma_esp32_isr_handle_rx(dev, dma_channel_rx, intr_status); in dma_esp32_isr_handle()
133 intr_status = gdma_ll_tx_get_interrupt_status(data->hal.dev, dma_channel_tx->channel_id); in dma_esp32_isr_handle()
134 if (intr_status) { in dma_esp32_isr_handle()
135 dma_esp32_isr_handle_tx(dev, dma_channel_tx, intr_status); in dma_esp32_isr_handle()
624 uint32_t intr_status = gdma_ll_rx_get_interrupt_status(data->hal.dev, channel); \
625 if (intr_status) { \
627 intr_status); \
636 uint32_t intr_status = gdma_ll_tx_get_interrupt_status(data->hal.dev, channel); \
637 if (intr_status) { \
639 intr_status); \