/Zephyr-latest/drivers/dma/ |
D | dma_si32.c | 194 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()
|
D | dma_xmc4xxx.c | 36 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()
|
D | dma_silabs_ldma.c | 109 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()
|
D | dma_andes_atcdmac300.c | 202 __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()
|
D | dma_rpi_pico.c | 155 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()
|
D | dma_sam_xdmac.c | 192 __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()
|
D | dma_stm32.c | 334 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()
|
D | dma_nxp_edma.c | 126 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()
|
D | dma_mcux_edma.c | 82 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 …]
|
D | dma_stm32_bdma.c | 525 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()
|
D | dma_dw_common.c | 155 __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()
|
D | dma_smartbond.c | 547 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()
|
D | dma_stm32u5.c | 396 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()
|
D | dma_sam0.c | 192 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()
|
D | dma_gd32.c | 389 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()
|
D | dma_mcux_lpc.c | 355 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()
|
D | dma_max32.c | 97 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()
|
D | dma_mchp_xec.c | 217 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/ |
D | display_renesas_lcdc.c | 483 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/ |
D | dma.c | 57 dma_cfg.source_data_size = 1U; in ZTEST()
|
/Zephyr-latest/tests/drivers/dma/loop_transfer/src/ |
D | test_dma_loop.c | 108 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/ |
D | test_dma.c | 46 dma_cfg.source_data_size = 1U; in test_task()
|
/Zephyr-latest/tests/drivers/dma/chan_link_transfer/src/ |
D | test_dma.c | 68 dma_cfg.source_data_size = 1U; in test_task()
|
/Zephyr-latest/tests/drivers/dma/scatter_gather/src/ |
D | test_dma_sg.c | 76 dma_cfg.source_data_size = 4U; in test_sg()
|
/Zephyr-latest/tests/boards/intel_adsp/ssp/src/ |
D | main.c | 111 dma_cfg.source_data_size = 1; in config_output_dma() 151 dma_cfg_rx.source_data_size = 1; in config_input_dma()
|