Lines Matching refs:channel

58 							  uint32_t channel)  in rpi_pico_dma_channel_clear_error_flags()  argument
62 ((dma_hw_t *)cfg->reg)->ch[channel].al1_ctrl &= ~DMA_INT_ERROR_FLAGS; in rpi_pico_dma_channel_clear_error_flags()
66 uint32_t channel) in rpi_pico_dma_channel_get_error_flags() argument
70 return ((dma_hw_t *)cfg->reg)->ch[channel].al1_ctrl & DMA_INT_ERROR_FLAGS; in rpi_pico_dma_channel_get_error_flags()
73 static inline void rpi_pico_dma_channel_abort(const struct device *dev, uint32_t channel) in rpi_pico_dma_channel_abort() argument
77 ((dma_hw_t *)cfg->reg)->abort = BIT(channel); in rpi_pico_dma_channel_abort()
96 static inline uint32_t dma_rpi_pico_channel_irq(const struct device *dev, uint32_t channel) in dma_rpi_pico_channel_irq() argument
101 if (cfg->irq0_channels[i] == channel) { in dma_rpi_pico_channel_irq()
113 static int dma_rpi_pico_config(const struct device *dev, uint32_t channel, in dma_rpi_pico_config() argument
119 if (channel >= cfg->channels) { in dma_rpi_pico_config()
120 LOG_ERR("channel must be < %" PRIu32 " (%" PRIu32 ")", cfg->channels, channel); in dma_rpi_pico_config()
179 data->channels[channel].config = dma_channel_get_default_config(channel); in dma_rpi_pico_config()
181 data->channels[channel].source_address = (void *)dma_cfg->head_block->source_address; in dma_rpi_pico_config()
182 data->channels[channel].dest_address = (void *)dma_cfg->head_block->dest_address; in dma_rpi_pico_config()
183 data->channels[channel].block_size = dma_cfg->head_block->block_size; in dma_rpi_pico_config()
184 channel_config_set_read_increment(&data->channels[channel].config, in dma_rpi_pico_config()
187 channel_config_set_write_increment(&data->channels[channel].config, in dma_rpi_pico_config()
191 &data->channels[channel].config, in dma_rpi_pico_config()
193 channel_config_set_dreq(&data->channels[channel].config, in dma_rpi_pico_config()
195 channel_config_set_high_priority(&data->channels[channel].config, in dma_rpi_pico_config()
198 data->channels[channel].callback = dma_cfg->dma_callback; in dma_rpi_pico_config()
199 data->channels[channel].user_data = dma_cfg->user_data; in dma_rpi_pico_config()
200 data->channels[channel].direction = dma_cfg->channel_direction; in dma_rpi_pico_config()