Lines Matching refs:channel_data

161 	struct dma_channel_data channel_data[DMA_CHANNELS_COUNT];  member
516 data->channel_data[channel].cb = cfg->dma_callback; in dma_smartbond_config()
517 data->channel_data[channel].user_data = cfg->user_data; in dma_smartbond_config()
522 data->channel_data[channel].cb = NULL; in dma_smartbond_config()
523 data->channel_data[channel].user_data = NULL; in dma_smartbond_config()
526 data->channel_data[channel].dir = cfg->channel_direction; in dma_smartbond_config()
545 data->channel_data[channel].burst_len = cfg->source_burst_length; in dma_smartbond_config()
553 data->channel_data[channel].bus_width = cfg->source_data_size; in dma_smartbond_config()
645 data->channel_data[channel].is_dma_configured = true; in dma_smartbond_config()
663 if (!data->channel_data[channel].is_dma_configured) { in dma_smartbond_reload()
678 if (src % data->channel_data[channel].bus_width) { in dma_smartbond_reload()
689 if (dst % data->channel_data[channel].bus_width) { in dma_smartbond_reload()
700 if (size % (data->channel_data[channel].burst_len * in dma_smartbond_reload()
701 data->channel_data[channel].bus_width)) { in dma_smartbond_reload()
706 regs->DMA_LEN_REG = (size / data->channel_data[channel].bus_width) - 1; in dma_smartbond_reload()
709 regs->DMA_INT_REG = (size / data->channel_data[channel].bus_width) - 1; in dma_smartbond_reload()
725 if (!data->channel_data[channel].is_dma_configured) { in dma_smartbond_start()
816 if (!data->channel_data[channel].is_dma_configured) { in dma_smartbond_get_status()
847 stat->dir = data->channel_data[channel].dir; in dma_smartbond_get_status()
946 if (data->channel_data[i].cb) { in smartbond_dma_isr()
947 data->channel_data[i].cb((const struct device *)arg, in smartbond_dma_isr()
948 data->channel_data[i].user_data, i, DMA_STATUS_COMPLETE); in smartbond_dma_isr()
1025 data->channel_data[idx].is_dma_configured = false; in dma_smartbond_init()