Home
last modified time | relevance | path

Searched refs:channel_direction (Results 1 – 25 of 85) sorted by relevance

1234

/Zephyr-latest/drivers/dma/
Ddma_nxp_sof_host_dma.c208 if (config->channel_direction != HOST_TO_MEMORY && in sof_host_dma_config()
209 config->channel_direction != MEMORY_TO_HOST) { in sof_host_dma_config()
211 config->channel_direction); in sof_host_dma_config()
219 chan->direction = config->channel_direction; in sof_host_dma_config()
Ddma_xmc4xxx.c146 if (config->channel_direction != MEMORY_TO_MEMORY && in dma_xmc4xxx_config()
147 config->channel_direction != MEMORY_TO_PERIPHERAL && in dma_xmc4xxx_config()
148 config->channel_direction != PERIPHERAL_TO_MEMORY) { in dma_xmc4xxx_config()
221 if (config->channel_direction == MEMORY_TO_PERIPHERAL || in dma_xmc4xxx_config()
222 config->channel_direction == PERIPHERAL_TO_MEMORY) { in dma_xmc4xxx_config()
258 if (config->channel_direction == MEMORY_TO_PERIPHERAL) { in dma_xmc4xxx_config()
264 if (config->channel_direction == PERIPHERAL_TO_MEMORY) { in dma_xmc4xxx_config()
Ddma_sam0.c105 if (config->channel_direction == MEMORY_TO_MEMORY) { in dma_sam0_config()
139 if (config->channel_direction == MEMORY_TO_MEMORY) { in dma_sam0_config()
146 } else if ((config->channel_direction == MEMORY_TO_PERIPHERAL) || in dma_sam0_config()
147 (config->channel_direction == PERIPHERAL_TO_MEMORY)) { in dma_sam0_config()
152 LOG_ERR("Direction error. %d", config->channel_direction); in dma_sam0_config()
Ddma_sam_xdmac.c216 && cfg->channel_direction == MEMORY_TO_PERIPHERAL) { in sam_xdmac_config()
223 && cfg->channel_direction == PERIPHERAL_TO_MEMORY) { in sam_xdmac_config()
229 switch (cfg->channel_direction) { in sam_xdmac_config()
253 cfg->channel_direction); in sam_xdmac_config()
Ddma_stm32.c325 if ((config->channel_direction == MEMORY_TO_MEMORY) && in dma_stm32_configure()
360 stream->direction = config->channel_direction; in dma_stm32_configure()
395 ret = dma_stm32_get_direction(config->channel_direction, in dma_stm32_configure()
401 switch (config->channel_direction) { in dma_stm32_configure()
414 config->channel_direction); in dma_stm32_configure()
457 if (config->channel_direction != MEMORY_TO_MEMORY) { in dma_stm32_configure()
Ddma_gd32.c403 if (dma_cfg->channel_direction > PERIPHERAL_TO_MEMORY) { in dma_gd32_config()
407 dma_cfg->channel_direction); in dma_gd32_config()
411 if (dma_cfg->channel_direction == MEMORY_TO_MEMORY && !cfg->mem2mem) { in dma_gd32_config()
434 switch (dma_cfg->channel_direction) { in dma_gd32_config()
476 if (dma_cfg->channel_direction != MEMORY_TO_MEMORY) { in dma_gd32_config()
484 data->channels[channel].direction = dma_cfg->channel_direction; in dma_gd32_config()
Ddma_mchp_xec.c222 if (!((config->channel_direction == MEMORY_TO_MEMORY) || in is_dma_config_valid()
223 (config->channel_direction == MEMORY_TO_PERIPHERAL) || in is_dma_config_valid()
224 (config->channel_direction == PERIPHERAL_TO_MEMORY))) { in is_dma_config_valid()
377 chdata->dir = config->channel_direction; in dma_xec_configure()
397 if (config->channel_direction == MEMORY_TO_MEMORY) { in dma_xec_configure()
403 if (config->channel_direction == PERIPHERAL_TO_MEMORY) { in dma_xec_configure()
Ddma_intel_adsp_hda.c43 __ASSERT(dma_cfg->channel_direction == cfg->direction, in intel_adsp_hda_dma_host_in_config()
77 __ASSERT(dma_cfg->channel_direction == cfg->direction, in intel_adsp_hda_dma_host_out_config()
111 __ASSERT(dma_cfg->channel_direction == cfg->direction, in intel_adsp_hda_dma_link_in_config()
141 __ASSERT(dma_cfg->channel_direction == cfg->direction, in intel_adsp_hda_dma_link_out_config()
Ddma_nxp_sdma.c147 switch (config->channel_direction) { in sdma_set_transfer_type()
162 config->channel_direction); in sdma_set_transfer_type()
165 LOG_DBG("%s: dir %d type = %d", __func__, config->channel_direction, *type); in sdma_set_transfer_type()
283 chan_data->direction = config->channel_direction; in dma_nxp_sdma_config()
Ddma_rpi_pico.c172 if (dma_cfg->channel_direction > PERIPHERAL_TO_MEMORY) { in dma_rpi_pico_config()
175 dma_cfg->channel_direction); in dma_rpi_pico_config()
200 data->channels[channel].direction = dma_cfg->channel_direction; in dma_rpi_pico_config()
Ddma_dw_axi.c505 chan_data->direction = cfg->channel_direction; in dma_dw_axi_config()
545 if (cfg->channel_direction == MEMORY_TO_MEMORY) { in dma_dw_axi_config()
551 } else if (cfg->channel_direction == MEMORY_TO_PERIPHERAL) { in dma_dw_axi_config()
561 } else if (cfg->channel_direction == PERIPHERAL_TO_MEMORY) { in dma_dw_axi_config()
572 __func__, dev->name, channel, cfg->channel_direction); in dma_dw_axi_config()
Ddma_stm32_bdma.c517 if ((config->channel_direction == MEMORY_TO_MEMORY) && in bdma_stm32_configure()
551 channel->direction = config->channel_direction; in bdma_stm32_configure()
602 ret = bdma_stm32_get_direction(config->channel_direction, in bdma_stm32_configure()
608 switch (config->channel_direction) { in bdma_stm32_configure()
621 config->channel_direction); in bdma_stm32_configure()
Ddma_dw_common.c183 chan_data->direction = cfg->channel_direction; in dw_dma_config()
213 switch (cfg->channel_direction) { in dw_dma_config()
245 switch (cfg->channel_direction) { in dw_dma_config()
283 switch (cfg->channel_direction) { in dw_dma_config()
338 cfg->channel_direction); in dw_dma_config()
346 dw_dma_mask_address(block_cfg, lli_desc, cfg->channel_direction); in dw_dma_config()
Ddma_sedi.c140 switch (config->channel_direction) { in dma_config_convert()
145 *sedi_dma_dir = config->channel_direction; in dma_config_convert()
Ddma_si32.c286 switch (cfg->channel_direction) { in dma_si32_config()
305 LOG_ERR("Channel direction not implemented: %d", cfg->channel_direction); in dma_si32_config()
Ddma_nxp_edma.c260 switch (dma_cfg->channel_direction) { in edma_config()
273 dma_cfg->channel_direction); in edma_config()
287 ret = get_transfer_type(dma_cfg->channel_direction, &transfer_type); in edma_config()
Ddma_nios2_msgdma.c106 dev_data->direction = cfg->channel_direction; in nios2_msgdma_config()
/Zephyr-latest/tests/boards/altera_max10/msgdma/src/
Ddma.c56 dma_cfg.channel_direction = MEMORY_TO_MEMORY; in ZTEST()
/Zephyr-latest/tests/drivers/dma/loop_transfer/src/
Dtest_dma_loop.c107 dma_cfg.channel_direction = MEMORY_TO_MEMORY; in test_loop()
198 dma_cfg.channel_direction = MEMORY_TO_MEMORY; in test_loop_suspend_resume()
373 dma_cfg.channel_direction = MEMORY_TO_MEMORY; in test_loop_repeated_start_stop()
/Zephyr-latest/tests/boards/intel_adsp/hda/src/
Ddma.c92 .channel_direction = MEMORY_TO_HOST, in ZTEST()
181 .channel_direction = HOST_TO_MEMORY, in test_hda_host_out_dma()
/Zephyr-latest/tests/drivers/dma/chan_blen_transfer/src/
Dtest_dma.c45 dma_cfg.channel_direction = MEMORY_TO_MEMORY; in test_task()
/Zephyr-latest/tests/drivers/dma/chan_link_transfer/src/
Dtest_dma.c67 dma_cfg.channel_direction = MEMORY_TO_MEMORY; in test_task()
/Zephyr-latest/tests/drivers/dma/scatter_gather/src/
Dtest_dma_sg.c75 dma_cfg.channel_direction = MEMORY_TO_MEMORY; in test_sg()
/Zephyr-latest/drivers/spi/
Dspi_mcux_lpspi.c298 stream->dma_cfg.channel_direction = PERIPHERAL_TO_PERIPHERAL; in spi_mcux_dma_common_load()
322 stream->dma_cfg.channel_direction = MEMORY_TO_PERIPHERAL; in spi_mcux_dma_tx_load()
343 stream->dma_cfg.channel_direction = PERIPHERAL_TO_MEMORY; in spi_mcux_dma_rx_load()
811 .dma_cfg = {.channel_direction = MEMORY_TO_PERIPHERAL, \
821 .dma_cfg = {.channel_direction = PERIPHERAL_TO_MEMORY, \
/Zephyr-latest/tests/boards/intel_adsp/ssp/src/
Dmain.c107 dma_cfg.channel_direction = MEMORY_TO_PERIPHERAL; in config_output_dma()
147 dma_cfg_rx.channel_direction = PERIPHERAL_TO_MEMORY; in config_input_dma()

1234