Home
last modified time | relevance | path

Searched refs:head_block (Results 1 – 25 of 86) sorted by relevance

1234

/Zephyr-latest/drivers/dma/
Ddma_mcux_pxp.c130 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()
Ddma_rpi_pico.c134 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 …]
Ddma_stm32_bdma.c511 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 …]
Ddma_stm32.c318 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 …]
Ddma_nxp_sof_host_dma.c192 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()
Ddma_nxp_edma.c120 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 …]
Ddma_nxp_edma.h487 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()
Ddma_stm32u5.c389 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 …]
Ddma_gd32.c366 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 …]
Ddma_nios2_msgdma.c92 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()
Ddma_smartbond.c505 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()
Ddma_pl330.c492 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()
Ddma_silabs_ldma.c216 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()
Ddma_max32.c103 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()
Ddma_sam_xdmac.c215 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()
Ddma_iproc_pax_v1.c881 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()
Ddma_xilinx_axi_dma.c866 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()
Ddma_sedi.c284 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()
Ddma_intel_adsp_hda.c47 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()
Ddma_mcux_smartdma.c58 dev_config->base->ARM2EZH = (uint32_t)config->head_block; in dma_mcux_smartdma_configure()
/Zephyr-latest/tests/boards/altera_max10/msgdma/src/
Ddma.c63 dma_cfg.head_block = &dma_block_cfg; in ZTEST()
/Zephyr-latest/tests/drivers/dma/loop_transfer/src/
Dtest_dma_loop.c119 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/
Ddma.c93 .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/
Dtest_dma.c54 dma_cfg.head_block = &dma_block_cfg; in test_task()
/Zephyr-latest/tests/drivers/dma/chan_link_transfer/src/
Dtest_dma.c76 dma_cfg.head_block = &dma_block_cfg; in test_task()

1234