Lines Matching refs:dma_sconfig
18 struct dma_slave_config dma_sconfig; in stm32_i2c_dma_request() local
35 memset(&dma_sconfig, 0, sizeof(dma_sconfig)); in stm32_i2c_dma_request()
36 dma_sconfig.dst_addr = phy_addr + txdr_offset; in stm32_i2c_dma_request()
37 dma_sconfig.dst_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; in stm32_i2c_dma_request()
38 dma_sconfig.dst_maxburst = 1; in stm32_i2c_dma_request()
39 dma_sconfig.direction = DMA_MEM_TO_DEV; in stm32_i2c_dma_request()
40 ret = dmaengine_slave_config(dma->chan_tx, &dma_sconfig); in stm32_i2c_dma_request()
57 memset(&dma_sconfig, 0, sizeof(dma_sconfig)); in stm32_i2c_dma_request()
58 dma_sconfig.src_addr = phy_addr + rxdr_offset; in stm32_i2c_dma_request()
59 dma_sconfig.src_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; in stm32_i2c_dma_request()
60 dma_sconfig.src_maxburst = 1; in stm32_i2c_dma_request()
61 dma_sconfig.direction = DMA_DEV_TO_MEM; in stm32_i2c_dma_request()
62 ret = dmaengine_slave_config(dma->chan_rx, &dma_sconfig); in stm32_i2c_dma_request()