/Zephyr-Core-3.7.0/drivers/dma/ |
D | dma_mcux_pxp.c | 110 DCACHE_CleanByRange((uint32_t)config->head_block->source_address, in dma_mcux_pxp_configure() 111 config->head_block->block_size); in dma_mcux_pxp_configure() 125 ps_buffer_cfg.bufferAddr = config->head_block->source_address; in dma_mcux_pxp_configure() 132 output_buffer_cfg.buffer0Addr = config->head_block->dest_address; in dma_mcux_pxp_configure() 144 dev_data->ps_buf_addr = config->head_block->source_address; in dma_mcux_pxp_configure() 145 dev_data->ps_buf_size = config->head_block->block_size; in dma_mcux_pxp_configure() 146 dev_data->out_buf_addr = config->head_block->dest_address; in dma_mcux_pxp_configure() 147 dev_data->out_buf_size = config->head_block->block_size; in dma_mcux_pxp_configure()
|
D | dma_stm32_bdma.c | 512 if (config->head_block->block_size > BDMA_STM32_MAX_DATA_ITEMS) { in bdma_stm32_configure() 514 config->head_block->block_size); in bdma_stm32_configure() 543 if (config->head_block->source_reload_en != in bdma_stm32_configure() 544 config->head_block->dest_reload_en) { in bdma_stm32_configure() 558 if (config->head_block->source_address == 0) { in bdma_stm32_configure() 562 if (config->head_block->dest_address == 0) { in bdma_stm32_configure() 568 if (!bdma_stm32_is_valid_memory_address(config->head_block->source_address, in bdma_stm32_configure() 569 config->head_block->block_size)) { in bdma_stm32_configure() 575 if (!bdma_stm32_is_valid_memory_address(config->head_block->dest_address, in bdma_stm32_configure() 576 config->head_block->block_size)) { in bdma_stm32_configure() [all …]
|
D | dma_rpi_pico.c | 130 if (dma_cfg->head_block->source_addr_adj == DMA_ADDR_ADJ_DECREMENT) { in dma_rpi_pico_config() 135 if (dma_cfg->head_block->dest_addr_adj == DMA_ADDR_ADJ_DECREMENT) { in dma_rpi_pico_config() 140 if (dma_cfg->head_block->source_addr_adj != DMA_ADDR_ADJ_INCREMENT && in dma_rpi_pico_config() 141 dma_cfg->head_block->source_addr_adj != DMA_ADDR_ADJ_NO_CHANGE) { in dma_rpi_pico_config() 142 LOG_ERR("invalid source_addr_adj %" PRIu16, dma_cfg->head_block->source_addr_adj); in dma_rpi_pico_config() 145 if (dma_cfg->head_block->dest_addr_adj != DMA_ADDR_ADJ_INCREMENT && in dma_rpi_pico_config() 146 dma_cfg->head_block->dest_addr_adj != DMA_ADDR_ADJ_NO_CHANGE) { in dma_rpi_pico_config() 147 LOG_ERR("invalid dest_addr_adj %" PRIu16, dma_cfg->head_block->dest_addr_adj); in dma_rpi_pico_config() 177 data->channels[channel].source_address = (void *)dma_cfg->head_block->source_address; in dma_rpi_pico_config() 178 data->channels[channel].dest_address = (void *)dma_cfg->head_block->dest_address; in dma_rpi_pico_config() [all …]
|
D | dma_stm32.c | 322 if (config->head_block->block_size > DMA_STM32_MAX_DATA_ITEMS) { in dma_stm32_configure() 324 config->head_block->block_size); in dma_stm32_configure() 355 if (config->head_block->source_reload_en != in dma_stm32_configure() 356 config->head_block->dest_reload_en) { in dma_stm32_configure() 368 stream->cyclic = config->head_block->source_reload_en; in dma_stm32_configure() 371 if (config->head_block->source_address == 0) { in dma_stm32_configure() 375 if (config->head_block->dest_address == 0) { in dma_stm32_configure() 381 config->head_block->source_address; in dma_stm32_configure() 383 config->head_block->dest_address; in dma_stm32_configure() 386 config->head_block->source_address; in dma_stm32_configure() [all …]
|
D | dma_nxp_sof_host_dma.c | 167 if (!config->head_block->source_address) { in sof_host_dma_config() 172 if (!config->head_block->dest_address) { in sof_host_dma_config() 177 if (!config->head_block->block_size) { in sof_host_dma_config() 191 chan->src = config->head_block->source_address; in sof_host_dma_config() 192 chan->dest = config->head_block->dest_address; in sof_host_dma_config() 193 chan->size = config->head_block->block_size; in sof_host_dma_config()
|
D | dma_nxp_edma.c | 113 if (!dma_cfg->head_block) { in edma_config() 146 if (!dma_cfg->head_block->source_address) { in edma_config() 152 if (!dma_cfg->head_block->dest_address) { in edma_config() 168 if (dma_cfg->head_block->source_address % dma_cfg->source_data_size) { in edma_config() 170 dma_cfg->head_block->source_address, in edma_config() 179 if (dma_cfg->head_block->dest_address % dma_cfg->dest_data_size) { in edma_config() 181 dma_cfg->head_block->dest_address, in edma_config() 207 if (dma_cfg->head_block->block_size % dma_cfg->source_burst_length) { in edma_config() 209 dma_cfg->head_block->block_size, in edma_config() 241 chan->bsize = dma_cfg->head_block->block_size; in edma_config() [all …]
|
D | dma_stm32u5.c | 387 if (config->head_block->block_size > DMA_STM32_MAX_DATA_ITEMS) { in dma_stm32_configure() 389 config->head_block->block_size); in dma_stm32_configure() 411 if (config->head_block->source_reload_en != in dma_stm32_configure() 412 config->head_block->dest_reload_en) { in dma_stm32_configure() 426 if (config->head_block->source_address == 0) { in dma_stm32_configure() 430 if (config->head_block->dest_address == 0) { in dma_stm32_configure() 434 DMA_InitStruct.SrcAddress = config->head_block->source_address; in dma_stm32_configure() 435 DMA_InitStruct.DestAddress = config->head_block->dest_address; in dma_stm32_configure() 452 switch (config->head_block->source_addr_adj) { in dma_stm32_configure() 463 config->head_block->source_addr_adj); in dma_stm32_configure() [all …]
|
D | dma_nxp_edma.h | 472 switch (dma_cfg->head_block->source_addr_adj) { in set_slast_dlast() 474 slast = (int32_t)dma_cfg->head_block->block_size; in set_slast_dlast() 477 slast = (-1) * (int32_t)dma_cfg->head_block->block_size; in set_slast_dlast() 481 dma_cfg->head_block->source_addr_adj); in set_slast_dlast() 489 switch (dma_cfg->head_block->dest_addr_adj) { in set_slast_dlast() 491 dlast = (int32_t)dma_cfg->head_block->block_size; in set_slast_dlast() 494 dlast = (-1) * (int32_t)dma_cfg->head_block->block_size; in set_slast_dlast() 498 dma_cfg->head_block->dest_addr_adj); in set_slast_dlast()
|
D | dma_gd32.c | 366 if (dma_cfg->head_block->source_addr_adj == DMA_ADDR_ADJ_DECREMENT) { in dma_gd32_config() 371 if (dma_cfg->head_block->dest_addr_adj == DMA_ADDR_ADJ_DECREMENT) { in dma_gd32_config() 376 if (dma_cfg->head_block->source_addr_adj != DMA_ADDR_ADJ_INCREMENT && in dma_gd32_config() 377 dma_cfg->head_block->source_addr_adj != DMA_ADDR_ADJ_NO_CHANGE) { in dma_gd32_config() 379 dma_cfg->head_block->source_addr_adj); in dma_gd32_config() 382 if (dma_cfg->head_block->dest_addr_adj != DMA_ADDR_ADJ_INCREMENT && in dma_gd32_config() 383 dma_cfg->head_block->dest_addr_adj != DMA_ADDR_ADJ_NO_CHANGE) { in dma_gd32_config() 385 dma_cfg->head_block->dest_addr_adj); in dma_gd32_config() 426 src_cfg.addr = dma_cfg->head_block->source_address; in dma_gd32_config() 427 src_cfg.adj = dma_cfg->head_block->source_addr_adj; in dma_gd32_config() [all …]
|
D | dma_nios2_msgdma.c | 92 if (cfg->head_block == NULL) { in nios2_msgdma_config() 97 if (cfg->head_block->block_size > MSGDMA_0_DESCRIPTOR_SLAVE_MAX_BYTE) { in nios2_msgdma_config() 99 cfg->head_block->block_size); in nios2_msgdma_config() 107 dma_block = cfg->head_block; in nios2_msgdma_config()
|
D | dma_smartbond.c | 503 if (cfg == NULL || cfg->head_block == NULL) { in dma_smartbond_config() 554 cfg->head_block->source_gather_en || cfg->head_block->dest_scatter_en || in dma_smartbond_config() 555 cfg->head_block->source_reload_en || cfg->head_block->dest_reload_en) { in dma_smartbond_config() 559 if (!dma_channel_update_src_addr_adj(cfg->head_block->source_addr_adj, in dma_smartbond_config() 565 if (!dma_channel_update_dst_addr_adj(cfg->head_block->dest_addr_adj, &dma_ctrl_reg)) { in dma_smartbond_config() 600 src_dst_address = cfg->head_block->source_address; in dma_smartbond_config() 612 src_dst_address = cfg->head_block->dest_address; in dma_smartbond_config() 624 if (cfg->head_block->block_size % (cfg->source_data_size * cfg->source_burst_length)) { in dma_smartbond_config() 629 regs->DMA_LEN_REG = (cfg->head_block->block_size / cfg->source_data_size) - 1; in dma_smartbond_config() 632 regs->DMA_INT_REG = (cfg->head_block->block_size / cfg->source_data_size) - 1; in dma_smartbond_config()
|
D | dma_pl330.c | 492 channel_cfg->dst_addr_adj = cfg->head_block->dest_addr_adj; in dma_pl330_configure() 494 channel_cfg->src_addr = cfg->head_block->source_address; in dma_pl330_configure() 495 channel_cfg->dst_addr = cfg->head_block->dest_address; in dma_pl330_configure() 496 channel_cfg->trans_size = cfg->head_block->block_size; in dma_pl330_configure() 501 if (cfg->head_block->source_addr_adj == DMA_ADDR_ADJ_INCREMENT || in dma_pl330_configure() 502 cfg->head_block->source_addr_adj == DMA_ADDR_ADJ_NO_CHANGE) { in dma_pl330_configure() 503 channel_cfg->src_addr_adj = cfg->head_block->source_addr_adj; in dma_pl330_configure() 508 if (cfg->head_block->dest_addr_adj == DMA_ADDR_ADJ_INCREMENT || in dma_pl330_configure() 509 cfg->head_block->dest_addr_adj == DMA_ADDR_ADJ_NO_CHANGE) { in dma_pl330_configure() 510 channel_cfg->dst_addr_adj = cfg->head_block->dest_addr_adj; in dma_pl330_configure()
|
D | dma_sam_xdmac.c | 215 if (cfg->head_block->source_addr_adj == DMA_ADDR_ADJ_INCREMENT in sam_xdmac_config() 222 if (cfg->head_block->dest_addr_adj == DMA_ADDR_ADJ_INCREMENT in sam_xdmac_config() 278 transfer_cfg.sa = cfg->head_block->source_address; in sam_xdmac_config() 279 transfer_cfg.da = cfg->head_block->dest_address; in sam_xdmac_config() 280 transfer_cfg.ublen = cfg->head_block->block_size >> data_size; in sam_xdmac_config()
|
D | dma_iproc_pax_v1.c | 880 axi_addr32 = (uint32_t *)&cfg->head_block->source_address; in dma_iproc_pax_configure() 881 pci_addr32 = (uint32_t *)&cfg->head_block->dest_address; in dma_iproc_pax_configure() 884 ring->payload->pci_addr = cfg->head_block->dest_address; in dma_iproc_pax_configure() 885 ring->payload->axi_addr = cfg->head_block->source_address; in dma_iproc_pax_configure() 888 axi_addr32 = (uint32_t *)&cfg->head_block->dest_address; in dma_iproc_pax_configure() 889 pci_addr32 = (uint32_t *)&cfg->head_block->source_address; in dma_iproc_pax_configure() 892 ring->payload->pci_addr = cfg->head_block->source_address; in dma_iproc_pax_configure() 893 ring->payload->axi_addr = cfg->head_block->dest_address; in dma_iproc_pax_configure() 900 xfer_sz = cfg->head_block->block_size; in dma_iproc_pax_configure()
|
D | dma_mcux_smartdma.c | 127 param.p_buffer = (uint8_t *)config->head_block->source_address; in dma_mcux_smartdma_configure() 128 param.buffersize = config->head_block->block_size; in dma_mcux_smartdma_configure()
|
D | dma_sedi.c | 284 if ((config == NULL) || (config->head_block == NULL)) { in dma_sedi_reload() 288 block_config = config->head_block; in dma_sedi_reload() 312 struct dma_block_config *block_config = config->head_block; in dma_sedi_start()
|
D | dma_intel_adsp_hda.c | 47 blk_cfg = dma_cfg->head_block; in intel_adsp_hda_dma_host_in_config() 81 blk_cfg = dma_cfg->head_block; in intel_adsp_hda_dma_host_out_config() 115 blk_cfg = dma_cfg->head_block; in intel_adsp_hda_dma_link_in_config() 145 blk_cfg = dma_cfg->head_block; in intel_adsp_hda_dma_link_out_config()
|
D | dma_esp32_gdma.c | 150 struct dma_block_config *block = config_dma->head_block; in dma_esp32_config_rx() 180 return dma_esp32_config_rx_descriptor(dma_channel, config_dma->head_block); in dma_esp32_config_rx() 207 struct dma_block_config *block = config_dma->head_block; in dma_esp32_config_tx() 236 return dma_esp32_config_tx_descriptor(dma_channel, config_dma->head_block); in dma_esp32_config_tx()
|
/Zephyr-Core-3.7.0/tests/boards/altera_max10/msgdma/src/ |
D | dma.c | 63 dma_cfg.head_block = &dma_block_cfg; in ZTEST()
|
/Zephyr-Core-3.7.0/tests/drivers/dma/loop_transfer/src/ |
D | test_dma_loop.c | 119 dma_cfg.head_block = &dma_block_cfg; in test_loop() 210 dma_cfg.head_block = &dma_block_cfg; in test_loop_suspend_resume() 385 dma_cfg.head_block = &dma_block_cfg; in test_loop_repeated_start_stop()
|
/Zephyr-Core-3.7.0/tests/boards/intel_adsp/hda/src/ |
D | dma.c | 93 .head_block = &block_cfg, in ZTEST() 182 .head_block = &block_cfg, in test_hda_host_out_dma()
|
/Zephyr-Core-3.7.0/tests/drivers/dma/chan_blen_transfer/src/ |
D | test_dma.c | 57 dma_cfg.head_block = &dma_block_cfg; in test_task()
|
/Zephyr-Core-3.7.0/tests/drivers/dma/chan_link_transfer/src/ |
D | test_dma.c | 76 dma_cfg.head_block = &dma_block_cfg; in test_task()
|
/Zephyr-Core-3.7.0/tests/drivers/dma/scatter_gather/src/ |
D | test_dma_sg.c | 87 dma_cfg.head_block = dma_block_cfgs; in test_sg()
|
/Zephyr-Core-3.7.0/tests/boards/intel_adsp/ssp/src/ |
D | main.c | 118 dma_cfg.head_block = dma_block_cfgs; in config_output_dma() 158 dma_cfg_rx.head_block = dma_block_cfgs_rx; in config_input_dma()
|