/Zephyr-latest/drivers/dma/ |
D | dma_mcux_pxp.c | 130 DCACHE_CleanByRange((uint32_t)config->head_block->source_address, in dma_mcux_pxp_configure() 131 config->head_block->block_size); in dma_mcux_pxp_configure() 145 ps_buffer_cfg.bufferAddr = config->head_block->source_address; in dma_mcux_pxp_configure() 152 output_buffer_cfg.buffer0Addr = config->head_block->dest_address; in dma_mcux_pxp_configure() 164 dev_data->ps_buf_addr = config->head_block->source_address; in dma_mcux_pxp_configure() 165 dev_data->ps_buf_size = config->head_block->block_size; in dma_mcux_pxp_configure() 166 dev_data->out_buf_addr = config->head_block->dest_address; in dma_mcux_pxp_configure() 167 dev_data->out_buf_size = config->head_block->block_size; in dma_mcux_pxp_configure()
|
D | dma_rpi_pico.c | 134 if (dma_cfg->head_block->source_addr_adj == DMA_ADDR_ADJ_DECREMENT) { in dma_rpi_pico_config() 139 if (dma_cfg->head_block->dest_addr_adj == DMA_ADDR_ADJ_DECREMENT) { in dma_rpi_pico_config() 144 if (dma_cfg->head_block->source_addr_adj != DMA_ADDR_ADJ_INCREMENT && in dma_rpi_pico_config() 145 dma_cfg->head_block->source_addr_adj != DMA_ADDR_ADJ_NO_CHANGE) { in dma_rpi_pico_config() 146 LOG_ERR("invalid source_addr_adj %" PRIu16, dma_cfg->head_block->source_addr_adj); in dma_rpi_pico_config() 149 if (dma_cfg->head_block->dest_addr_adj != DMA_ADDR_ADJ_INCREMENT && in dma_rpi_pico_config() 150 dma_cfg->head_block->dest_addr_adj != DMA_ADDR_ADJ_NO_CHANGE) { in dma_rpi_pico_config() 151 LOG_ERR("invalid dest_addr_adj %" PRIu16, dma_cfg->head_block->dest_addr_adj); in dma_rpi_pico_config() 181 data->channels[channel].source_address = (void *)dma_cfg->head_block->source_address; in dma_rpi_pico_config() 182 data->channels[channel].dest_address = (void *)dma_cfg->head_block->dest_address; in dma_rpi_pico_config() [all …]
|
D | dma_stm32_bdma.c | 511 if (config->head_block->block_size > BDMA_STM32_MAX_DATA_ITEMS) { in bdma_stm32_configure() 513 config->head_block->block_size); in bdma_stm32_configure() 542 if (config->head_block->source_reload_en != in bdma_stm32_configure() 543 config->head_block->dest_reload_en) { in bdma_stm32_configure() 555 channel->cyclic = config->head_block->source_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() [all …]
|
D | dma_stm32.c | 318 if (config->head_block->block_size > DMA_STM32_MAX_DATA_ITEMS) { in dma_stm32_configure() 320 config->head_block->block_size); in dma_stm32_configure() 351 if (config->head_block->source_reload_en != in dma_stm32_configure() 352 config->head_block->dest_reload_en) { in dma_stm32_configure() 364 stream->cyclic = config->head_block->source_reload_en; in dma_stm32_configure() 367 if (config->head_block->source_address == 0) { in dma_stm32_configure() 371 if (config->head_block->dest_address == 0) { in dma_stm32_configure() 377 config->head_block->source_address; in dma_stm32_configure() 379 config->head_block->dest_address; in dma_stm32_configure() 382 config->head_block->source_address; in dma_stm32_configure() [all …]
|
D | dma_nxp_sof_host_dma.c | 192 if (!config->head_block->source_address) { in sof_host_dma_config() 197 if (!config->head_block->dest_address) { in sof_host_dma_config() 202 if (!config->head_block->block_size) { in sof_host_dma_config() 216 chan->src = config->head_block->source_address; in sof_host_dma_config() 217 chan->dest = config->head_block->dest_address; in sof_host_dma_config() 218 chan->size = config->head_block->block_size; in sof_host_dma_config()
|
D | dma_nxp_edma.c | 120 if (!dma_cfg->head_block) { in edma_config() 153 if (!dma_cfg->head_block->source_address) { in edma_config() 159 if (!dma_cfg->head_block->dest_address) { in edma_config() 175 if (dma_cfg->head_block->source_address % dma_cfg->source_data_size) { in edma_config() 177 dma_cfg->head_block->source_address, in edma_config() 186 if (dma_cfg->head_block->dest_address % dma_cfg->dest_data_size) { in edma_config() 188 dma_cfg->head_block->dest_address, in edma_config() 214 if (dma_cfg->head_block->block_size % dma_cfg->source_burst_length) { in edma_config() 216 dma_cfg->head_block->block_size, in edma_config() 248 chan->bsize = dma_cfg->head_block->block_size; in edma_config() [all …]
|
D | dma_nxp_edma.h | 487 switch (dma_cfg->head_block->source_addr_adj) { in set_slast_dlast() 489 slast = (int32_t)dma_cfg->head_block->block_size; in set_slast_dlast() 492 slast = (-1) * (int32_t)dma_cfg->head_block->block_size; in set_slast_dlast() 496 dma_cfg->head_block->source_addr_adj); in set_slast_dlast() 504 switch (dma_cfg->head_block->dest_addr_adj) { in set_slast_dlast() 506 dlast = (int32_t)dma_cfg->head_block->block_size; in set_slast_dlast() 509 dlast = (-1) * (int32_t)dma_cfg->head_block->block_size; in set_slast_dlast() 513 dma_cfg->head_block->dest_addr_adj); in set_slast_dlast()
|
D | dma_stm32u5.c | 389 if (config->head_block->block_size > DMA_STM32_MAX_DATA_ITEMS) { in dma_stm32_configure() 391 config->head_block->block_size); in dma_stm32_configure() 412 if (config->head_block->source_reload_en || in dma_stm32_configure() 413 config->head_block->dest_reload_en) { in dma_stm32_configure() 427 if (config->head_block->source_address == 0) { in dma_stm32_configure() 431 if (config->head_block->dest_address == 0) { in dma_stm32_configure() 435 DMA_InitStruct.SrcAddress = config->head_block->source_address; in dma_stm32_configure() 436 DMA_InitStruct.DestAddress = config->head_block->dest_address; in dma_stm32_configure() 453 switch (config->head_block->source_addr_adj) { in dma_stm32_configure() 464 config->head_block->source_addr_adj); in dma_stm32_configure() [all …]
|
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 | 505 if (cfg == NULL || cfg->head_block == NULL) { in dma_smartbond_config() 556 cfg->head_block->source_gather_en || cfg->head_block->dest_scatter_en || in dma_smartbond_config() 557 cfg->head_block->source_reload_en || cfg->head_block->dest_reload_en) { in dma_smartbond_config() 561 if (!dma_channel_update_src_addr_adj(cfg->head_block->source_addr_adj, in dma_smartbond_config() 567 if (!dma_channel_update_dst_addr_adj(cfg->head_block->dest_addr_adj, &dma_ctrl_reg)) { in dma_smartbond_config() 602 src_dst_address = cfg->head_block->source_address; in dma_smartbond_config() 614 src_dst_address = cfg->head_block->dest_address; in dma_smartbond_config() 626 if (cfg->head_block->block_size % (cfg->source_data_size * cfg->source_burst_length)) { in dma_smartbond_config() 631 regs->DMA_LEN_REG = (cfg->head_block->block_size / cfg->source_data_size) - 1; in dma_smartbond_config() 634 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_silabs_ldma.c | 216 struct dma_block_config *head_block = config->head_block; in dma_silabs_configure_descriptor() local 217 struct dma_block_config *block = config->head_block; in dma_silabs_configure_descriptor() 248 if (block == head_block) { in dma_silabs_configure_descriptor() 369 switch (config->head_block->source_addr_adj) { in dma_silabs_configure() 380 LOG_ERR("Addr Adjustement error %d", config->head_block->source_addr_adj); in dma_silabs_configure() 384 switch (config->head_block->dest_addr_adj) { in dma_silabs_configure()
|
D | dma_max32.c | 103 mxc_dma_cfg.srcinc_en = max32_dma_addr_adj(config->head_block->source_addr_adj); in max32_dma_config() 104 mxc_dma_cfg.dstinc_en = max32_dma_addr_adj(config->head_block->dest_addr_adj); in max32_dma_config() 123 txfer.source = (void *)config->head_block->source_address; in max32_dma_config() 124 txfer.dest = (void *)config->head_block->dest_address; in max32_dma_config() 125 txfer.len = config->head_block->block_size; in max32_dma_config()
|
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 | 881 axi_addr32 = (uint32_t *)&cfg->head_block->source_address; in dma_iproc_pax_configure() 882 pci_addr32 = (uint32_t *)&cfg->head_block->dest_address; in dma_iproc_pax_configure() 885 ring->payload->pci_addr = cfg->head_block->dest_address; in dma_iproc_pax_configure() 886 ring->payload->axi_addr = cfg->head_block->source_address; in dma_iproc_pax_configure() 889 axi_addr32 = (uint32_t *)&cfg->head_block->dest_address; in dma_iproc_pax_configure() 890 pci_addr32 = (uint32_t *)&cfg->head_block->source_address; in dma_iproc_pax_configure() 893 ring->payload->pci_addr = cfg->head_block->source_address; in dma_iproc_pax_configure() 894 ring->payload->axi_addr = cfg->head_block->dest_address; in dma_iproc_pax_configure() 901 xfer_sz = cfg->head_block->block_size; in dma_iproc_pax_configure()
|
D | dma_xilinx_axi_dma.c | 866 struct dma_block_config *current_block = dma_cfg->head_block; in dma_xilinx_axi_dma_configure() 886 if (dma_cfg->head_block->source_addr_adj == DMA_ADDR_ADJ_DECREMENT) { in dma_xilinx_axi_dma_configure() 891 if (dma_cfg->head_block->dest_addr_adj == DMA_ADDR_ADJ_DECREMENT) { in dma_xilinx_axi_dma_configure() 896 if (dma_cfg->head_block->source_addr_adj != DMA_ADDR_ADJ_INCREMENT && in dma_xilinx_axi_dma_configure() 897 dma_cfg->head_block->source_addr_adj != DMA_ADDR_ADJ_NO_CHANGE) { in dma_xilinx_axi_dma_configure() 898 LOG_ERR("invalid source_addr_adj %" PRIu16, dma_cfg->head_block->source_addr_adj); in dma_xilinx_axi_dma_configure() 901 if (dma_cfg->head_block->dest_addr_adj != DMA_ADDR_ADJ_INCREMENT && in dma_xilinx_axi_dma_configure() 902 dma_cfg->head_block->dest_addr_adj != DMA_ADDR_ADJ_NO_CHANGE) { in dma_xilinx_axi_dma_configure() 903 LOG_ERR("invalid dest_addr_adj %" PRIu16, dma_cfg->head_block->dest_addr_adj); in dma_xilinx_axi_dma_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_mcux_smartdma.c | 58 dev_config->base->ARM2EZH = (uint32_t)config->head_block; in dma_mcux_smartdma_configure()
|
/Zephyr-latest/tests/boards/altera_max10/msgdma/src/ |
D | dma.c | 63 dma_cfg.head_block = &dma_block_cfg; in ZTEST()
|
/Zephyr-latest/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-latest/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-latest/tests/drivers/dma/chan_blen_transfer/src/ |
D | test_dma.c | 54 dma_cfg.head_block = &dma_block_cfg; in test_task()
|
/Zephyr-latest/tests/drivers/dma/chan_link_transfer/src/ |
D | test_dma.c | 76 dma_cfg.head_block = &dma_block_cfg; in test_task()
|