Lines Matching refs:xfer_config

203 	struct dma_config xfer_config;  in dma_emul_work_handler()  local
220 memcpy(&xfer_config, &xfer->config, sizeof(xfer_config)); in dma_emul_work_handler()
224 for (i = 0; i < xfer_config.block_count; ++i) { in dma_emul_work_handler()
235 xfer_config.dma_slot + i], in dma_emul_work_handler()
240 for (bytes = MIN(block.block_size, xfer_config.dest_burst_length); in dma_emul_work_handler()
243 bytes = MIN(block.block_size, xfer_config.dest_burst_length)) { in dma_emul_work_handler()
251 if (!xfer_config.error_callback_dis) { in dma_emul_work_handler()
252 xfer_config.dma_callback(dev, xfer_config.user_data, in dma_emul_work_handler()
278 xfer_config.dma_callback(dev, xfer_config.user_data, channel, in dma_emul_work_handler()
284 if (xfer_config.source_chaining_en || xfer_config.dest_chaining_en) { in dma_emul_work_handler()
286 xfer_config.linked_channel); in dma_emul_work_handler()
287 __ASSERT_NO_MSG(channel != xfer_config.linked_channel); in dma_emul_work_handler()
288 channel = xfer_config.linked_channel; in dma_emul_work_handler()
300 const struct dma_config *xfer_config) in dma_emul_config_valid() argument
306 if (xfer_config->dma_slot >= config->num_requests) { in dma_emul_config_valid()
307 LOG_ERR("invalid dma_slot %u", xfer_config->dma_slot); in dma_emul_config_valid()
316 if (xfer_config->dest_burst_length != xfer_config->source_burst_length) { in dma_emul_config_valid()
318 xfer_config->source_burst_length, xfer_config->dest_burst_length); in dma_emul_config_valid()
322 for (i = 0, block = xfer_config->head_block; i < xfer_config->block_count; in dma_emul_config_valid()
325 LOG_ERR("block %zu / %u is NULL", i + 1, xfer_config->block_count); in dma_emul_config_valid()
331 xfer_config->block_count); in dma_emul_config_valid()
348 struct dma_config *xfer_config) in dma_emul_configure() argument
361 if (!dma_emul_config_valid(dev, channel, xfer_config)) { in dma_emul_configure()
369 dma_emul_xfer_config_to_string(xfer_config)); in dma_emul_configure()
371 block_idx = channel * config->num_requests + xfer_config->dma_slot; in dma_emul_configure()
373 block = &config->block[channel * config->num_requests + xfer_config->dma_slot]; in dma_emul_configure()
379 memcpy(&xfer->config, xfer_config, sizeof(xfer->config)); in dma_emul_configure()
382 for (i = 0, block_it = xfer_config->head_block; i < xfer_config->block_count; in dma_emul_configure()
416 struct dma_config *xfer_config; in dma_emul_start() local
439 xfer_config = &config->xfer[channel].config; in dma_emul_start()
440 if (xfer_config->source_chaining_en || xfer_config->dest_chaining_en) { in dma_emul_start()
442 xfer_config->linked_channel); in dma_emul_start()
443 channel = xfer_config->linked_channel; in dma_emul_start()