Home
last modified time | relevance | path

Searched refs:block_cfg (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/drivers/dma/
Ddma_nxp_sdma.c231 struct dma_block_config *block_cfg; in dma_nxp_sdma_setup_bd() local
244 block_cfg = config->head_block; in dma_nxp_sdma_setup_bd()
256 block_cfg->source_address, block_cfg->dest_address, in dma_nxp_sdma_setup_bd()
257 config->source_data_size, block_cfg->block_size, in dma_nxp_sdma_setup_bd()
260 chan_data->capacity += block_cfg->block_size; in dma_nxp_sdma_setup_bd()
261 block_cfg = block_cfg->next_block; in dma_nxp_sdma_setup_bd()
271 struct dma_block_config *block_cfg; in dma_nxp_sdma_config() local
303 block_cfg = config->head_block; in dma_nxp_sdma_config()
307 block_cfg->source_address, in dma_nxp_sdma_config()
308 block_cfg->dest_address, in dma_nxp_sdma_config()
[all …]
Ddma_dw_common.c102 static void dw_dma_mask_address(struct dma_block_config *block_cfg, in dw_dma_mask_address() argument
105 lli_desc->sar = block_cfg->source_address; in dw_dma_mask_address()
106 lli_desc->dar = block_cfg->dest_address; in dw_dma_mask_address()
129 struct dma_block_config *block_cfg; in dw_dma_config() local
200 block_cfg = cfg->head_block; in dw_dma_config()
202 __ASSERT_NO_MSG(block_cfg != NULL); in dw_dma_config()
203 LOG_DBG("%s: copying block_cfg %p to lli_desc %p", dev->name, block_cfg, lli_desc); in dw_dma_config()
318 if (!block_cfg->dest_scatter_en) { in dw_dma_config()
346 dw_dma_mask_address(block_cfg, lli_desc, cfg->channel_direction); in dw_dma_config()
352 if (block_cfg->block_size > DW_CTLH_BLOCK_TS_MASK) { in dw_dma_config()
[all …]
/Zephyr-latest/drivers/spi/
Dspi_gd32.c255 struct dma_block_config *block_cfg = &data->dma[dir].block; in spi_gd32_dma_setup() local
260 memset(block_cfg, 0, sizeof(struct dma_block_config)); in spi_gd32_dma_setup()
267 dma_cfg->head_block = block_cfg; in spi_gd32_dma_setup()
282 block_cfg->block_size = spi_context_max_continuous_chunk(&data->ctx); in spi_gd32_dma_setup()
285 block_cfg->dest_address = (uint32_t)&SPI_DATA(cfg->reg); in spi_gd32_dma_setup()
286 block_cfg->dest_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in spi_gd32_dma_setup()
288 block_cfg->source_address = (uint32_t)data->ctx.tx_buf; in spi_gd32_dma_setup()
289 block_cfg->source_addr_adj = DMA_ADDR_ADJ_INCREMENT; in spi_gd32_dma_setup()
291 block_cfg->source_address = (uint32_t)&dummy_tx; in spi_gd32_dma_setup()
292 block_cfg->source_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in spi_gd32_dma_setup()
[all …]
Dspi_pl022.c446 struct dma_block_config *block_cfg = &data->dma[dir].block; in spi_pl022_dma_setup() local
451 memset(block_cfg, 0, sizeof(struct dma_block_config)); in spi_pl022_dma_setup()
457 dma_cfg->head_block = block_cfg; in spi_pl022_dma_setup()
469 block_cfg->block_size = spi_context_max_continuous_chunk(&data->ctx); in spi_pl022_dma_setup()
473 block_cfg->dest_address = SSP_DR(cfg->reg); in spi_pl022_dma_setup()
474 block_cfg->dest_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in spi_pl022_dma_setup()
476 block_cfg->source_address = (uint32_t)data->ctx.tx_buf; in spi_pl022_dma_setup()
477 block_cfg->source_addr_adj = DMA_ADDR_ADJ_INCREMENT; in spi_pl022_dma_setup()
479 block_cfg->source_address = (uint32_t)&dummy_tx; in spi_pl022_dma_setup()
480 block_cfg->source_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in spi_pl022_dma_setup()
[all …]
/Zephyr-latest/tests/boards/intel_adsp/hda/src/
Ddma.c85 struct dma_block_config block_cfg = { in ZTEST() local
93 .head_block = &block_cfg, in ZTEST()
174 struct dma_block_config block_cfg = { in test_hda_host_out_dma() local
182 .head_block = &block_cfg, in test_hda_host_out_dma()