/Zephyr-latest/drivers/spi/ |
D | spi_mcux_flexcomm.c | 390 struct dma_block_config *blk_cfg; in spi_mcux_dma_tx_load() local 400 blk_cfg = &stream->dma_blk_cfg[0]; in spi_mcux_dma_tx_load() 403 memset(blk_cfg, 0, sizeof(struct dma_block_config)); in spi_mcux_dma_tx_load() 414 blk_cfg->source_address = (uint32_t)&data->dummy_tx_buffer; in spi_mcux_dma_tx_load() 415 blk_cfg->dest_address = (uint32_t)&base->FIFOWR; in spi_mcux_dma_tx_load() 416 blk_cfg->block_size = (word_size > 8) ? in spi_mcux_dma_tx_load() 418 blk_cfg->next_block = &stream->dma_blk_cfg[1]; in spi_mcux_dma_tx_load() 419 blk_cfg->source_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in spi_mcux_dma_tx_load() 420 blk_cfg->dest_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in spi_mcux_dma_tx_load() 422 blk_cfg = &stream->dma_blk_cfg[1]; in spi_mcux_dma_tx_load() [all …]
|
D | spi_ll_stm32.c | 161 struct dma_block_config *blk_cfg; in spi_stm32_dma_tx_load() local 167 blk_cfg = &stream->dma_blk_cfg; in spi_stm32_dma_tx_load() 170 memset(blk_cfg, 0, sizeof(struct dma_block_config)); in spi_stm32_dma_tx_load() 171 blk_cfg->block_size = len; in spi_stm32_dma_tx_load() 180 blk_cfg->source_address = (uint32_t)&dummy_rx_tx_buffer; in spi_stm32_dma_tx_load() 181 blk_cfg->source_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in spi_stm32_dma_tx_load() 183 blk_cfg->source_address = (uint32_t)buf; in spi_stm32_dma_tx_load() 185 blk_cfg->source_addr_adj = DMA_ADDR_ADJ_INCREMENT; in spi_stm32_dma_tx_load() 187 blk_cfg->source_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in spi_stm32_dma_tx_load() 191 blk_cfg->dest_address = ll_func_dma_get_reg_addr(cfg->spi, SPI_STM32_DMA_TX); in spi_stm32_dma_tx_load() [all …]
|
D | spi_xmc4xxx.c | 54 struct dma_block_config blk_cfg; member 404 dma_rx->blk_cfg.dest_address = (uint32_t)ctx->rx_buf; in spi_xmc4xxx_transceive_dma() 405 dma_rx->blk_cfg.dest_addr_adj = DMA_ADDR_ADJ_INCREMENT; in spi_xmc4xxx_transceive_dma() 406 dma_rx->blk_cfg.block_size = dma_len; in spi_xmc4xxx_transceive_dma() 407 dma_rx->blk_cfg.source_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in spi_xmc4xxx_transceive_dma() 430 dma_tx->blk_cfg.source_address = (uint32_t)ctx->tx_buf; in spi_xmc4xxx_transceive_dma() 431 dma_tx->blk_cfg.source_addr_adj = DMA_ADDR_ADJ_INCREMENT; in spi_xmc4xxx_transceive_dma() 433 dma_tx->blk_cfg.source_address = (uint32_t)&tx_dummy_data; in spi_xmc4xxx_transceive_dma() 434 dma_tx->blk_cfg.source_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in spi_xmc4xxx_transceive_dma() 437 dma_tx->blk_cfg.block_size = dma_len; in spi_xmc4xxx_transceive_dma() [all …]
|
D | spi_mcux_lpspi.c | 287 struct dma_block_config *blk_cfg = &stream->dma_blk_cfg; in spi_mcux_dma_common_load() local 290 memset(blk_cfg, 0, sizeof(struct dma_block_config)); in spi_mcux_dma_common_load() 292 blk_cfg->block_size = len; in spi_mcux_dma_common_load() 295 blk_cfg->source_address = (uint32_t)&data->dummy_buffer; in spi_mcux_dma_common_load() 296 blk_cfg->dest_address = (uint32_t)&data->dummy_buffer; in spi_mcux_dma_common_load() 300 blk_cfg->source_address = (uint32_t)buf; in spi_mcux_dma_common_load() 301 blk_cfg->dest_address = (uint32_t)buf; in spi_mcux_dma_common_load() 307 stream->dma_cfg.head_block = blk_cfg; in spi_mcux_dma_common_load() 309 return blk_cfg; in spi_mcux_dma_common_load() 318 struct dma_block_config *blk_cfg = spi_mcux_dma_common_load(stream, dev, buf, len); in spi_mcux_dma_tx_load() local [all …]
|
D | spi_andes_atcspi200.c | 356 struct dma_block_config *blk_cfg = &data->dma_tx.dma_blk_cfg; in spi_dma_tx_load() local 365 blk_cfg->next_block = next_blk_cfg; in spi_dma_tx_load() 394 blk_cfg = next_blk_cfg; in spi_dma_tx_load() 471 struct dma_block_config *blk_cfg = &data->dma_rx.dma_blk_cfg; in spi_dma_rx_load() local 480 blk_cfg->next_block = next_blk_cfg; in spi_dma_rx_load() 508 blk_cfg = next_blk_cfg; in spi_dma_rx_load()
|
/Zephyr-latest/drivers/dma/ |
D | dma_intel_adsp_hda.c | 35 struct dma_block_config *blk_cfg; in intel_adsp_hda_dma_host_in_config() local 47 blk_cfg = dma_cfg->head_block; in intel_adsp_hda_dma_host_in_config() 48 buf = (uint8_t *)(uintptr_t)(blk_cfg->source_address); in intel_adsp_hda_dma_host_in_config() 50 blk_cfg->block_size); in intel_adsp_hda_dma_host_in_config() 54 blk_cfg->block_size & HDA_ALIGN_MASK; in intel_adsp_hda_dma_host_in_config() 69 struct dma_block_config *blk_cfg; in intel_adsp_hda_dma_host_out_config() local 81 blk_cfg = dma_cfg->head_block; in intel_adsp_hda_dma_host_out_config() 82 buf = (uint8_t *)(uintptr_t)(blk_cfg->dest_address); in intel_adsp_hda_dma_host_out_config() 85 blk_cfg->block_size); in intel_adsp_hda_dma_host_out_config() 89 blk_cfg->block_size & HDA_ALIGN_MASK; in intel_adsp_hda_dma_host_out_config() [all …]
|
D | dma_dw_axi.c | 446 struct dma_block_config *blk_cfg; in dma_dw_axi_config() local 514 blk_cfg = cfg->head_block; in dma_dw_axi_config() 533 lli_desc->sar = blk_cfg->source_address; in dma_dw_axi_config() 534 lli_desc->dar = blk_cfg->dest_address; in dma_dw_axi_config() 537 lli_desc->block_ts_lo = (blk_cfg->block_size / cfg->source_data_size) - 1; in dma_dw_axi_config() 599 blk_cfg = blk_cfg->next_block; in dma_dw_axi_config()
|
/Zephyr-latest/subsys/mgmt/ec_host_cmd/backends/ |
D | ec_host_cmd_backend_spi_stm32.c | 446 struct dma_block_config *blk_cfg; in spi_config_dma_tx() local 450 blk_cfg = &stream->dma_blk_cfg; in spi_config_dma_tx() 453 memset(blk_cfg, 0, sizeof(struct dma_block_config)); in spi_config_dma_tx() 454 blk_cfg->block_size = 0; in spi_config_dma_tx() 457 blk_cfg->dest_address = dma_dest_addr(spi); in spi_config_dma_tx() 458 blk_cfg->dest_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in spi_config_dma_tx() 460 blk_cfg->source_address = (uint32_t)hc_spi->tx_buf; in spi_config_dma_tx() 461 blk_cfg->source_addr_adj = DMA_ADDR_ADJ_INCREMENT; in spi_config_dma_tx() 463 blk_cfg->fifo_mode_control = hc_spi->dma_tx->fifo_threshold; in spi_config_dma_tx() 465 stream->dma_cfg.head_block = blk_cfg; in spi_config_dma_tx() [all …]
|
/Zephyr-latest/drivers/audio/ |
D | dmic_mcux.c | 277 struct dma_block_config blk_cfg[CONFIG_DMIC_MCUX_DMA_BUFFERS] = {0}; in dmic_mcux_setup_dma() local 293 dma_cfg.head_block = &blk_cfg[0]; in dmic_mcux_setup_dma() 308 blk_cfg[blk].source_address = in dmic_mcux_setup_dma() 318 blk_cfg[blk].dest_address = in dmic_mcux_setup_dma() 320 blk_cfg[blk].dest_scatter_interval = in dmic_mcux_setup_dma() 322 blk_cfg[blk].dest_scatter_en = 1; in dmic_mcux_setup_dma() 323 blk_cfg[blk].source_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in dmic_mcux_setup_dma() 324 blk_cfg[blk].dest_addr_adj = DMA_ADDR_ADJ_INCREMENT; in dmic_mcux_setup_dma() 325 blk_cfg[blk].block_size = dma_buf_size; in dmic_mcux_setup_dma() 330 blk_cfg[blk].source_reload_en = 1; in dmic_mcux_setup_dma() [all …]
|
/Zephyr-latest/drivers/mipi_dbi/ |
D | mipi_dbi_nxp_lcdic.c | 94 struct dma_block_config blk_cfg[2]; member 175 stream->dma_cfg.head_block = &stream->blk_cfg[0]; in mipi_dbi_lcdic_start_dma() 179 stream->blk_cfg[0].source_address = (uint32_t)&data->unaligned_word; in mipi_dbi_lcdic_start_dma() 180 stream->blk_cfg[0].dest_address = (uint32_t)&config->base->TFIFO_WDATA; in mipi_dbi_lcdic_start_dma() 182 stream->blk_cfg[0].block_size = sizeof(uint32_t); in mipi_dbi_lcdic_start_dma() 184 stream->blk_cfg[0].next_block = NULL; in mipi_dbi_lcdic_start_dma() 187 stream->blk_cfg[0].source_address = (uint32_t)data->xfer_buf; in mipi_dbi_lcdic_start_dma() 188 stream->blk_cfg[0].dest_address = (uint32_t)&config->base->TFIFO_WDATA; in mipi_dbi_lcdic_start_dma() 190 stream->blk_cfg[0].block_size = aligned_len; in mipi_dbi_lcdic_start_dma() 194 stream->blk_cfg[0].next_block = in mipi_dbi_lcdic_start_dma() [all …]
|
D | mipi_dbi_nxp_flexio_lcdif.c | 238 struct dma_block_config *blk_cfg; in mipi_dbi_flexio_ldcif_write_display() local 252 blk_cfg = &stream->dma_blk_cfg; in mipi_dbi_flexio_ldcif_write_display() 258 memset(blk_cfg, 0, sizeof(struct dma_block_config)); in mipi_dbi_flexio_ldcif_write_display() 261 blk_cfg->source_address = (uint32_t)framebuf; in mipi_dbi_flexio_ldcif_write_display() 264 blk_cfg->dest_address = FLEXIO_MCULCD_GetTxDataRegisterAddress(flexio_lcd); in mipi_dbi_flexio_ldcif_write_display() 265 blk_cfg->block_size = desc->buf_size; in mipi_dbi_flexio_ldcif_write_display()
|
/Zephyr-latest/drivers/i2s/ |
D | i2s_mcux_flexcomm.c | 411 struct dma_block_config *blk_cfg; in i2s_mcux_config_dma_blocks() local 416 blk_cfg = &dev_data->rx_dma_blocks[0]; in i2s_mcux_config_dma_blocks() 417 memset(blk_cfg, 0, sizeof(dev_data->rx_dma_blocks)); in i2s_mcux_config_dma_blocks() 420 blk_cfg = &dev_data->tx_dma_block; in i2s_mcux_config_dma_blocks() 421 memset(blk_cfg, 0, sizeof(dev_data->tx_dma_block)); in i2s_mcux_config_dma_blocks() 424 stream->dma_cfg.head_block = blk_cfg; in i2s_mcux_config_dma_blocks() 428 blk_cfg->source_address = (uint32_t)&base->FIFORD; in i2s_mcux_config_dma_blocks() 429 blk_cfg->dest_address = (uint32_t)buffer[0]; in i2s_mcux_config_dma_blocks() 430 blk_cfg->block_size = block_size; in i2s_mcux_config_dma_blocks() 431 blk_cfg->next_block = &dev_data->rx_dma_blocks[1]; in i2s_mcux_config_dma_blocks() [all …]
|
D | i2s_ll_stm32.c | 519 struct dma_block_config blk_cfg; in start_dma() local 522 memset(&blk_cfg, 0, sizeof(blk_cfg)); in start_dma() 523 blk_cfg.block_size = blk_size; in start_dma() 524 blk_cfg.source_address = (uint32_t)src; in start_dma() 525 blk_cfg.dest_address = (uint32_t)dst; in start_dma() 527 blk_cfg.source_addr_adj = DMA_ADDR_ADJ_INCREMENT; in start_dma() 529 blk_cfg.source_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in start_dma() 532 blk_cfg.dest_addr_adj = DMA_ADDR_ADJ_INCREMENT; in start_dma() 534 blk_cfg.dest_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in start_dma() 536 blk_cfg.fifo_mode_control = fifo_threshold; in start_dma() [all …]
|
D | i2s_mcux_sai.c | 719 struct dma_block_config *blk_cfg = &strm->dma_block; in i2s_tx_stream_start() local 721 memset(blk_cfg, 0, sizeof(struct dma_block_config)); in i2s_tx_stream_start() 725 blk_cfg->dest_address = (uint32_t)&base->TDR[data_path]; in i2s_tx_stream_start() 726 blk_cfg->source_address = (uint32_t)buffer; in i2s_tx_stream_start() 727 blk_cfg->block_size = strm->cfg.block_size; in i2s_tx_stream_start() 728 blk_cfg->dest_scatter_en = 1; in i2s_tx_stream_start() 800 struct dma_block_config *blk_cfg = &strm->dma_block; in i2s_rx_stream_start() local 802 memset(blk_cfg, 0, sizeof(struct dma_block_config)); in i2s_rx_stream_start() 806 blk_cfg->dest_address = (uint32_t)buffer; in i2s_rx_stream_start() 807 blk_cfg->source_address = (uint32_t)&base->RDR[data_path]; in i2s_rx_stream_start() [all …]
|
D | i2s_sam_ssc.c | 184 struct dma_block_config blk_cfg; in start_dma() local 187 (void)memset(&blk_cfg, 0, sizeof(blk_cfg)); in start_dma() 188 blk_cfg.block_size = blk_size; in start_dma() 189 blk_cfg.source_address = (uint32_t)src; in start_dma() 190 blk_cfg.dest_address = (uint32_t)dst; in start_dma() 192 cfg->head_block = &blk_cfg; in start_dma()
|
/Zephyr-latest/drivers/serial/ |
D | uart_stm32.c | 1489 data->dma_rx.blk_cfg.block_size = data->dma_rx.buffer_length; in uart_stm32_dma_replace_buffer() 1490 data->dma_rx.blk_cfg.dest_address = (uint32_t)data->dma_rx.buffer; in uart_stm32_dma_replace_buffer() 1495 data->dma_rx.blk_cfg.source_address, in uart_stm32_dma_replace_buffer() 1496 data->dma_rx.blk_cfg.dest_address, in uart_stm32_dma_replace_buffer() 1497 data->dma_rx.blk_cfg.block_size); in uart_stm32_dma_replace_buffer() 1580 data->dma_tx.blk_cfg.source_address = (uint32_t)data->dma_tx.buffer; in uart_stm32_async_tx() 1581 data->dma_tx.blk_cfg.block_size = data->dma_tx.buffer_length; in uart_stm32_async_tx() 1644 data->dma_rx.blk_cfg.block_size = buf_size; in uart_stm32_async_rx_enable() 1645 data->dma_rx.blk_cfg.dest_address = (uint32_t)data->dma_rx.buffer; in uart_stm32_async_rx_enable() 1804 memset(&data->dma_rx.blk_cfg, 0, sizeof(data->dma_rx.blk_cfg)); in uart_stm32_async_init() [all …]
|
D | uart_xmc4xxx.c | 44 struct dma_block_config blk_cfg; member 589 data->dma_rx.blk_cfg.source_address = (uint32_t)&config->uart->OUTR; in uart_xmc4xxx_async_init() 591 data->dma_rx.blk_cfg.source_address = (uint32_t)&config->uart->RBUF; in uart_xmc4xxx_async_init() 594 data->dma_rx.blk_cfg.source_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in uart_xmc4xxx_async_init() 595 data->dma_rx.blk_cfg.dest_addr_adj = DMA_ADDR_ADJ_INCREMENT; in uart_xmc4xxx_async_init() 596 data->dma_rx.dma_cfg.head_block = &data->dma_rx.blk_cfg; in uart_xmc4xxx_async_init() 608 data->dma_tx.blk_cfg.dest_address = (uint32_t)&config->uart->IN[0]; in uart_xmc4xxx_async_init() 610 data->dma_tx.blk_cfg.dest_address = (uint32_t)&config->uart->TBUF[0]; in uart_xmc4xxx_async_init() 613 data->dma_tx.blk_cfg.source_addr_adj = DMA_ADDR_ADJ_INCREMENT; in uart_xmc4xxx_async_init() 614 data->dma_tx.blk_cfg.dest_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in uart_xmc4xxx_async_init() [all …]
|
D | uart_stm32.h | 76 struct dma_block_config blk_cfg; member
|
/Zephyr-latest/drivers/i3c/ |
D | i3c_stm32.c | 85 struct dma_block_config blk_cfg; member 1092 data->dma_tc.blk_cfg.source_address = (uint32_t)data->control_fifo; in i3c_stm32_dma_msg_control_fifo_config() 1093 data->dma_tc.blk_cfg.block_size = data->fifo_len; in i3c_stm32_dma_msg_control_fifo_config() 1115 data->dma_rs.blk_cfg.dest_address = (uint32_t)data->status_fifo; in i3c_stm32_dma_msg_status_fifo_config() 1116 data->dma_rs.blk_cfg.block_size = data->fifo_len; in i3c_stm32_dma_msg_status_fifo_config() 1141 dma_stream->blk_cfg.dest_address = buf_addr; in i3c_stm32_dma_msg_config() 1144 dma_stream->blk_cfg.source_address = buf_addr; in i3c_stm32_dma_msg_config() 1149 dma_stream->blk_cfg.block_size = buf_len; in i3c_stm32_dma_msg_config() 1397 memset(&dma_stream->blk_cfg, 0, sizeof(dma_stream->blk_cfg)); in i3c_stm32_dma_stream_config() 1399 dma_stream->blk_cfg.source_address = src_addr; in i3c_stm32_dma_stream_config() [all …]
|
/Zephyr-latest/drivers/adc/ |
D | adc_stm32.c | 216 struct dma_block_config *blk_cfg; in adc_stm32_dma_start() local 221 blk_cfg = &dma->dma_blk_cfg; in adc_stm32_dma_start() 224 blk_cfg->block_size = channel_count * sizeof(int16_t); in adc_stm32_dma_start() 227 blk_cfg->source_address = (uint32_t)LL_ADC_DMA_GetRegAddr(adc, LL_ADC_DMA_REG_REGULAR_DATA); in adc_stm32_dma_start() 228 blk_cfg->source_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in adc_stm32_dma_start() 229 blk_cfg->source_reload_en = 0; in adc_stm32_dma_start() 231 blk_cfg->dest_address = (uint32_t)buffer; in adc_stm32_dma_start() 232 blk_cfg->dest_addr_adj = DMA_ADDR_ADJ_INCREMENT; in adc_stm32_dma_start() 233 blk_cfg->dest_reload_en = 0; in adc_stm32_dma_start() 238 blk_cfg->fifo_mode_control = 0; in adc_stm32_dma_start() [all …]
|