Lines Matching refs:blk_cfg

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()
194 blk_cfg->dest_addr_adj = DMA_ADDR_ADJ_INCREMENT; in spi_stm32_dma_tx_load()
196 blk_cfg->dest_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in spi_stm32_dma_tx_load()
200 blk_cfg->fifo_mode_control = data->dma_tx.fifo_threshold; in spi_stm32_dma_tx_load()
203 stream->dma_cfg.head_block = blk_cfg; in spi_stm32_dma_tx_load()
223 struct dma_block_config *blk_cfg; in spi_stm32_dma_rx_load() local
229 blk_cfg = &stream->dma_blk_cfg; in spi_stm32_dma_rx_load()
232 memset(blk_cfg, 0, sizeof(struct dma_block_config)); in spi_stm32_dma_rx_load()
233 blk_cfg->block_size = len; in spi_stm32_dma_rx_load()
239 blk_cfg->dest_address = (uint32_t)&dummy_rx_tx_buffer; in spi_stm32_dma_rx_load()
240 blk_cfg->dest_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in spi_stm32_dma_rx_load()
242 blk_cfg->dest_address = (uint32_t)buf; in spi_stm32_dma_rx_load()
244 blk_cfg->dest_addr_adj = DMA_ADDR_ADJ_INCREMENT; in spi_stm32_dma_rx_load()
246 blk_cfg->dest_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in spi_stm32_dma_rx_load()
250 blk_cfg->source_address = ll_func_dma_get_reg_addr(cfg->spi, SPI_STM32_DMA_RX); in spi_stm32_dma_rx_load()
252 blk_cfg->source_addr_adj = DMA_ADDR_ADJ_INCREMENT; in spi_stm32_dma_rx_load()
254 blk_cfg->source_addr_adj = DMA_ADDR_ADJ_NO_CHANGE; in spi_stm32_dma_rx_load()
258 blk_cfg->fifo_mode_control = data->dma_rx.fifo_threshold; in spi_stm32_dma_rx_load()
261 stream->dma_cfg.head_block = blk_cfg; in spi_stm32_dma_rx_load()