Searched refs:dma_sconfig (Results 1 – 8 of 8) sorted by relevance
/linux/drivers/i2c/busses/ |
H A D | i2c-stm32.c | 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() [all …]
|
H A D | i2c-imx.c | 403 struct dma_slave_config dma_sconfig; in i2c_imx_dma_request() local 419 dma_sconfig.dst_addr = phy_addr + in i2c_imx_dma_request() 421 dma_sconfig.dst_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; in i2c_imx_dma_request() 422 dma_sconfig.dst_maxburst = 1; in i2c_imx_dma_request() 423 dma_sconfig.direction = DMA_MEM_TO_DEV; in i2c_imx_dma_request() 424 ret = dmaengine_slave_config(dma->chan_tx, &dma_sconfig); in i2c_imx_dma_request() 438 dma_sconfig.src_addr = phy_addr + in i2c_imx_dma_request() 440 dma_sconfig.src_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; in i2c_imx_dma_request() 441 dma_sconfig.src_maxburst = 1; in i2c_imx_dma_request() 442 dma_sconfig.direction = DMA_DEV_TO_MEM; in i2c_imx_dma_request() [all …]
|
/linux/drivers/dma/dw/ |
H A D | core.c | 621 struct dma_slave_config *sconfig = &dwc->dma_sconfig; in dwc_prep_slave_sg() 786 dwc->dma_sconfig.src_maxburst = in dwc_verify_maxburst() 787 clamp(dwc->dma_sconfig.src_maxburst, 1U, dwc->max_burst); in dwc_verify_maxburst() 788 dwc->dma_sconfig.dst_maxburst = in dwc_verify_maxburst() 789 clamp(dwc->dma_sconfig.dst_maxburst, 1U, dwc->max_burst); in dwc_verify_maxburst() 791 dwc->dma_sconfig.src_maxburst = in dwc_verify_maxburst() 792 rounddown_pow_of_two(dwc->dma_sconfig.src_maxburst); in dwc_verify_maxburst() 793 dwc->dma_sconfig.dst_maxburst = in dwc_verify_maxburst() 794 rounddown_pow_of_two(dwc->dma_sconfig.dst_maxburst); in dwc_verify_maxburst() 805 if (dwc->dma_sconfig.direction == DMA_MEM_TO_DEV) in dwc_verify_p_buswidth() [all …]
|
H A D | dw.c | 78 struct dma_slave_config *sconfig = &dwc->dma_sconfig; in dw_dma_prepare_ctllo()
|
H A D | idma32.c | 209 struct dma_slave_config *sconfig = &dwc->dma_sconfig; in idma32_prepare_ctllo()
|
H A D | regs.h | 294 struct dma_slave_config dma_sconfig; member
|
/linux/drivers/dma/stm32/ |
H A D | stm32-dma.c | 217 struct dma_slave_config dma_sconfig; member 402 memcpy(&chan->dma_sconfig, config, sizeof(*config)); in stm32_dma_slave_config() 587 if (chan->trig_mdma && chan->dma_sconfig.direction != DMA_MEM_TO_DEV) in stm32_dma_start_transfer() 941 src_addr_width = chan->dma_sconfig.src_addr_width; in stm32_dma_set_xfer_param() 942 dst_addr_width = chan->dma_sconfig.dst_addr_width; in stm32_dma_set_xfer_param() 943 src_maxburst = chan->dma_sconfig.src_maxburst; in stm32_dma_set_xfer_param() 944 dst_maxburst = chan->dma_sconfig.dst_maxburst; in stm32_dma_set_xfer_param() 1000 chan->chan_reg.dma_spar = chan->dma_sconfig.dst_addr; in stm32_dma_set_xfer_param() 1057 chan->chan_reg.dma_spar = chan->dma_sconfig.src_addr; in stm32_dma_set_xfer_param() 1058 *buswidth = chan->dma_sconfig.src_addr_width; in stm32_dma_set_xfer_param() [all …]
|
/linux/drivers/tty/serial/ |
H A D | serial-tegra.c | 1148 struct dma_slave_config dma_sconfig; in tegra_uart_dma_channel_allocate() local 1171 dma_sconfig.src_addr = tup->uport.mapbase; in tegra_uart_dma_channel_allocate() 1172 dma_sconfig.src_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; in tegra_uart_dma_channel_allocate() 1173 dma_sconfig.src_maxburst = tup->cdata->max_dma_burst_bytes; in tegra_uart_dma_channel_allocate() 1186 dma_sconfig.dst_addr = tup->uport.mapbase; in tegra_uart_dma_channel_allocate() 1187 dma_sconfig.dst_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; in tegra_uart_dma_channel_allocate() 1188 dma_sconfig.dst_maxburst = 16; in tegra_uart_dma_channel_allocate() 1194 ret = dmaengine_slave_config(dma_chan, &dma_sconfig); in tegra_uart_dma_channel_allocate()
|