Lines Matching refs:transfer_settings
106 struct dma_mcux_channel_transfer_edma_settings transfer_settings; member
219 if (data->transfer_settings.cyclic) { in nxp_edma_callback()
220 data->transfer_settings.empty_tcds++; in nxp_edma_callback()
316 data->transfer_settings.valid = false; in dma_mcux_edma_configure()
353 data->transfer_settings.source_data_size = config->source_data_size; in dma_mcux_edma_configure()
354 data->transfer_settings.dest_data_size = config->dest_data_size; in dma_mcux_edma_configure()
355 data->transfer_settings.source_burst_length = config->source_burst_length; in dma_mcux_edma_configure()
356 data->transfer_settings.dest_burst_length = config->dest_burst_length; in dma_mcux_edma_configure()
357 data->transfer_settings.direction = config->channel_direction; in dma_mcux_edma_configure()
358 data->transfer_settings.transfer_type = transfer_type; in dma_mcux_edma_configure()
359 data->transfer_settings.valid = true; in dma_mcux_edma_configure()
360 data->transfer_settings.cyclic = config->cyclic; in dma_mcux_edma_configure()
410 data->transfer_settings.write_idx = 0; in dma_mcux_edma_configure()
411 data->transfer_settings.empty_tcds = CONFIG_DMA_TCD_QUEUE_SIZE; in dma_mcux_edma_configure()
432 while (block_config != NULL && data->transfer_settings.empty_tcds > 0) { in dma_mcux_edma_configure()
434 [data->transfer_settings.write_idx]); in dma_mcux_edma_configure()
449 data->transfer_settings.write_idx = in dma_mcux_edma_configure()
450 (data->transfer_settings.write_idx + 1) % in dma_mcux_edma_configure()
452 data->transfer_settings.empty_tcds--; in dma_mcux_edma_configure()
456 if (block_config != NULL && data->transfer_settings.empty_tcds == 0) { in dma_mcux_edma_configure()
562 data->data_cb[channel].transfer_settings.valid = false; in dma_mcux_edma_stop()
622 if (!data->transfer_settings.valid) { in dma_mcux_edma_reload()
628 if (data->transfer_settings.cyclic) { in dma_mcux_edma_reload()
629 if (data->transfer_settings.empty_tcds == 0) { in dma_mcux_edma_reload()
636 size = size / data->transfer_settings.dest_data_size; in dma_mcux_edma_reload()
639 pre_idx = data->transfer_settings.write_idx - 1; in dma_mcux_edma_reload()
644 tcd = &(DEV_CFG(dev)->tcdpool[channel][data->transfer_settings.write_idx]); in dma_mcux_edma_reload()
672 if (data->transfer_settings.empty_tcds >= CONFIG_DMA_TCD_QUEUE_SIZE || in dma_mcux_edma_reload()
686 if (data->transfer_settings.empty_tcds == CONFIG_DMA_TCD_QUEUE_SIZE - 1 || in dma_mcux_edma_reload()
710 data->transfer_settings.write_idx = in dma_mcux_edma_reload()
711 (data->transfer_settings.write_idx + 1) % CONFIG_DMA_TCD_QUEUE_SIZE; in dma_mcux_edma_reload()
712 data->transfer_settings.empty_tcds--; in dma_mcux_edma_reload()
714 LOG_DBG("w_idx:%d no:%d(ch:%d)", data->transfer_settings.write_idx, in dma_mcux_edma_reload()
715 data->transfer_settings.empty_tcds, channel); in dma_mcux_edma_reload()
729 data->transfer_settings.source_data_size, (void *)dst, in dma_mcux_edma_reload()
730 data->transfer_settings.dest_data_size, in dma_mcux_edma_reload()
731 data->transfer_settings.source_burst_length, size, in dma_mcux_edma_reload()
732 data->transfer_settings.transfer_type); in dma_mcux_edma_reload()
760 DEV_CHANNEL_DATA(dev, channel)->transfer_settings.source_data_size; in dma_mcux_edma_get_status()
765 status->dir = DEV_CHANNEL_DATA(dev, channel)->transfer_settings.direction; in dma_mcux_edma_get_status()