Home
last modified time | relevance | path

Searched refs:source_data_size (Results 1 – 25 of 73) sorted by relevance

123

/Zephyr-latest/drivers/dma/
Ddma_si32.c194 if (cfg->source_data_size != 1 && cfg->source_data_size != 2 && in dma_si32_config()
195 cfg->source_data_size != 4) { in dma_si32_config()
196 LOG_ERR("source_data_size must be 1, 2, or 4 (%" PRIu32 ")", cfg->source_data_size); in dma_si32_config()
205 __ASSERT(cfg->source_data_size == cfg->dest_data_size, in dma_si32_config()
228 switch (cfg->source_data_size) { in dma_si32_config()
248 LOG_ERR("source_data_size must be 1, 2, or 4 (%" PRIu32 ")", cfg->source_data_size); in dma_si32_config()
260 if (block->block_size % cfg->source_data_size != 0) { in dma_si32_config()
265 if (block->source_address % cfg->source_data_size != 0) { in dma_si32_config()
275 ncount = block->block_size / cfg->source_data_size - 1; in dma_si32_config()
312 block->source_address + ncount * cfg->source_data_size; in dma_si32_config()
Ddma_xmc4xxx.c36 uint8_t source_data_size; member
171 if (config->source_data_size != 1 && config->source_data_size != 2 && in dma_xmc4xxx_config()
172 config->source_data_size != 4) { in dma_xmc4xxx_config()
189 if (block->block_size / config->source_data_size > DMA_MAX_BLOCK_LEN) { in dma_xmc4xxx_config()
207 dma->CH[channel].CTLH = block->block_size / config->source_data_size; in dma_xmc4xxx_config()
214 config->source_data_size / 2 << GPDMA0_CH_CTLL_SRC_TR_WIDTH_Pos | in dma_xmc4xxx_config()
287 dev_data->channels[channel].block_ts = block->block_size / config->source_data_size; in dma_xmc4xxx_config()
288 dev_data->channels[channel].source_data_size = config->source_data_size; in dma_xmc4xxx_config()
365 block_ts = size / dma_channel->source_data_size; in dma_xmc4xxx_reload()
397 stat->pending_length *= dma_channel->source_data_size; in dma_xmc4xxx_get_status()
Ddma_silabs_ldma.c109 if (config->source_data_size != config->dest_data_size) { in dma_silabs_block_to_descriptor()
111 config->source_data_size, config->dest_data_size); in dma_silabs_block_to_descriptor()
115 if (config->source_data_size < 1 || config->source_data_size > 4) { in dma_silabs_block_to_descriptor()
119 src_size = config->source_data_size; in dma_silabs_block_to_descriptor()
122 if (block->block_size % config->source_data_size) { in dma_silabs_block_to_descriptor()
123 xfer_count = block->block_size / config->source_data_size; in dma_silabs_block_to_descriptor()
125 xfer_count = block->block_size / config->source_data_size - 1; in dma_silabs_block_to_descriptor()
138 config->source_data_size); in dma_silabs_block_to_descriptor()
329 if (config->dest_data_size != config->source_data_size) { in dma_silabs_configure()
Ddma_andes_atcdmac300.c202 __ASSERT_NO_MSG(cfg->source_data_size == cfg->dest_data_size); in dma_atcdmac300_config()
205 if (cfg->source_data_size != 1 && cfg->source_data_size != 2 && in dma_atcdmac300_config()
206 cfg->source_data_size != 4) { in dma_atcdmac300_config()
218 tfr_size = cfg_blocks->block_size/cfg->source_data_size; in dma_atcdmac300_config()
280 src_width = find_msb_set(cfg->source_data_size) - 1; in dma_atcdmac300_config()
302 data->chan[channel].status.pending_length = cfg->source_data_size; in dma_atcdmac300_config()
365 cfg_blocks->block_size/cfg->source_data_size; in dma_atcdmac300_config()
Ddma_rpi_pico.c155 if (dma_cfg->source_data_size != 1 && dma_cfg->source_data_size != 2 && in dma_rpi_pico_config()
156 dma_cfg->source_data_size != 4) { in dma_rpi_pico_config()
158 dma_cfg->source_data_size); in dma_rpi_pico_config()
162 if (dma_cfg->source_data_size != dma_cfg->dest_data_size) { in dma_rpi_pico_config()
192 dma_rpi_pico_transfer_size(dma_cfg->source_data_size)); in dma_rpi_pico_config()
Ddma_sam_xdmac.c192 __ASSERT_NO_MSG(cfg->source_data_size == cfg->dest_data_size); in sam_xdmac_config()
195 if (cfg->source_data_size != 1U && cfg->source_data_size != 2U && in sam_xdmac_config()
196 cfg->source_data_size != 4U) { in sam_xdmac_config()
209 data_size = find_msb_set(cfg->source_data_size) - 1; in sam_xdmac_config()
Ddma_stm32.c334 if ((config->dest_data_size != config->source_data_size)) { in dma_stm32_configure()
339 if (config->source_data_size != 4U && in dma_stm32_configure()
340 config->source_data_size != 2U && in dma_stm32_configure()
341 config->source_data_size != 1U) { in dma_stm32_configure()
343 config->source_data_size); in dma_stm32_configure()
362 stream->src_size = config->source_data_size; in dma_stm32_configure()
445 int index = find_lsb_set(config->source_data_size) - 1; in dma_stm32_configure()
483 config->source_data_size; in dma_stm32_configure()
Ddma_nxp_edma.c126 if (!EDMA_TransferWidthIsValid(data->hal_cfg, dma_cfg->source_data_size)) { in edma_config()
128 dma_cfg->source_data_size); in edma_config()
175 if (dma_cfg->head_block->source_address % dma_cfg->source_data_size) { in edma_config()
178 dma_cfg->source_data_size); in edma_config()
232 MAX(dma_cfg->source_data_size, dma_cfg->dest_data_size)) { in edma_config()
235 dma_cfg->source_data_size, in edma_config()
299 dma_cfg->source_data_size, in edma_config()
Ddma_mcux_edma.c82 uint32_t source_data_size; member
336 if (!data_size_valid(config->source_data_size)) { in dma_mcux_edma_configure()
337 LOG_ERR("Source unit size error, %d", config->source_data_size); in dma_mcux_edma_configure()
353 data->transfer_settings.source_data_size = config->source_data_size; in dma_mcux_edma_configure()
415 config->source_data_size, (void *)block_config->dest_address, in dma_mcux_edma_configure()
439 block_config->block_size / config->source_data_size; in dma_mcux_edma_configure()
441 block_config->block_size / config->source_data_size; in dma_mcux_edma_configure()
473 config->source_data_size, in dma_mcux_edma_configure()
494 config->source_data_size, in dma_mcux_edma_configure()
729 data->transfer_settings.source_data_size, (void *)dst, in dma_mcux_edma_reload()
[all …]
Ddma_stm32_bdma.c525 if (config->dest_data_size != config->source_data_size) { in bdma_stm32_configure()
530 if (config->source_data_size != 4U && in bdma_stm32_configure()
531 config->source_data_size != 2U && in bdma_stm32_configure()
532 config->source_data_size != 1U) { in bdma_stm32_configure()
534 config->source_data_size); in bdma_stm32_configure()
553 channel->src_size = config->source_data_size; in bdma_stm32_configure()
645 index = find_lsb_set(config->source_data_size) - 1; in bdma_stm32_configure()
652 config->source_data_size; in bdma_stm32_configure()
Ddma_dw_common.c155 __ASSERT_NO_MSG(cfg->source_data_size == cfg->dest_data_size); in dw_dma_config()
160 if (cfg->source_data_size != 1 && cfg->source_data_size != 2 && in dw_dma_config()
161 cfg->source_data_size != 4 && cfg->source_data_size != 8 && in dw_dma_config()
162 cfg->source_data_size != 16) { in dw_dma_config()
164 cfg->source_data_size); in dw_dma_config()
206 switch (cfg->source_data_size) { in dw_dma_config()
230 cfg->source_data_size); in dw_dma_config()
Ddma_smartbond.c547 if (cfg->source_data_size != cfg->dest_data_size || in dma_smartbond_config()
548 !dma_channel_update_bus_width(cfg->source_data_size, &dma_ctrl_reg)) { in dma_smartbond_config()
553 data->channel_data[channel].bus_width = cfg->source_data_size; in dma_smartbond_config()
607 if (src_dst_address % cfg->source_data_size) { 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_stm32u5.c396 if (config->dest_data_size != config->source_data_size) { in dma_stm32_configure()
401 if (config->source_data_size != 4U && in dma_stm32_configure()
402 config->source_data_size != 2U && in dma_stm32_configure()
403 config->source_data_size != 1U) { in dma_stm32_configure()
405 config->source_data_size); in dma_stm32_configure()
423 stream->src_size = config->source_data_size; in dma_stm32_configure()
491 int index = find_lsb_set(config->source_data_size) - 1; in dma_stm32_configure()
Ddma_sam0.c192 if (config->source_data_size != config->dest_data_size) { in dma_sam0_config()
197 switch (config->source_data_size) { in dma_sam0_config()
213 desc->BTCNT.reg = block->block_size / config->source_data_size; in dma_sam0_config()
Ddma_gd32.c389 if (dma_cfg->source_data_size != 1 && dma_cfg->source_data_size != 2 && in dma_gd32_config()
390 dma_cfg->source_data_size != 4) { in dma_gd32_config()
392 dma_cfg->source_data_size); in dma_gd32_config()
428 src_cfg.width = dma_cfg->source_data_size; in dma_gd32_config()
Ddma_mcux_lpc.c355 assert(config->dest_data_size == config->source_data_size); in dma_mcux_lpc_configure()
388 if (config->source_data_size != 4U && in dma_mcux_lpc_configure()
389 config->source_data_size != 2U && in dma_mcux_lpc_configure()
390 config->source_data_size != 1U) { in dma_mcux_lpc_configure()
391 LOG_ERR("Source unit size error, %d", config->source_data_size); in dma_mcux_lpc_configure()
Ddma_max32.c97 if (((max32_dma_width(config->source_data_size)) < 0) || in max32_dma_config()
101 mxc_dma_cfg.srcwd = max32_dma_width(config->source_data_size); in max32_dma_config()
Ddma_mchp_xec.c217 if (config->source_data_size != config->dest_data_size) { in is_dma_config_valid()
229 if (!is_dma_data_size_valid(config->source_data_size)) { in is_dma_config_valid()
367 ret = check_blocks(chdata, block, config->block_count, config->source_data_size); in dma_xec_configure()
372 unit_size = config->source_data_size; in dma_xec_configure()
/Zephyr-latest/drivers/display/
Ddisplay_renesas_lcdc.c483 data->dma_cfg.source_data_size = data->dma_cfg.dest_data_size = in display_smartbond_read()
488 !((data->dma_block_cfg.block_size / data->dma_cfg.source_data_size) & 7) ? 8 : in display_smartbond_read()
489 !((data->dma_block_cfg.block_size / data->dma_cfg.source_data_size) & 3) ? 4 : 1; in display_smartbond_read()
552 data->dma_cfg.source_data_size = data->dma_cfg.dest_data_size = in display_smartbond_write()
557 !((data->dma_block_cfg.block_size / data->dma_cfg.source_data_size) & 7) ? 8 : in display_smartbond_write()
558 !((data->dma_block_cfg.block_size / data->dma_cfg.source_data_size) & 3) ? 4 : 1; in display_smartbond_write()
/Zephyr-latest/tests/boards/altera_max10/msgdma/src/
Ddma.c57 dma_cfg.source_data_size = 1U; in ZTEST()
/Zephyr-latest/tests/drivers/dma/loop_transfer/src/
Dtest_dma_loop.c108 dma_cfg.source_data_size = 1U; in test_loop()
199 dma_cfg.source_data_size = 1U; in test_loop_suspend_resume()
374 dma_cfg.source_data_size = 1U; in test_loop_repeated_start_stop()
/Zephyr-latest/tests/drivers/dma/chan_blen_transfer/src/
Dtest_dma.c46 dma_cfg.source_data_size = 1U; in test_task()
/Zephyr-latest/tests/drivers/dma/chan_link_transfer/src/
Dtest_dma.c68 dma_cfg.source_data_size = 1U; in test_task()
/Zephyr-latest/tests/drivers/dma/scatter_gather/src/
Dtest_dma_sg.c76 dma_cfg.source_data_size = 4U; in test_sg()
/Zephyr-latest/tests/boards/intel_adsp/ssp/src/
Dmain.c111 dma_cfg.source_data_size = 1; in config_output_dma()
151 dma_cfg_rx.source_data_size = 1; in config_input_dma()

123