Home
last modified time | relevance | path

Searched refs:dma_sconfig (Results 1 – 13 of 13) sorted by relevance

/drivers/i2c/busses/
Di2c-stm32.c18 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 …]
Di2c-imx.c285 struct dma_slave_config dma_sconfig; in i2c_imx_dma_request() local
301 dma_sconfig.dst_addr = phy_addr + in i2c_imx_dma_request()
303 dma_sconfig.dst_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; in i2c_imx_dma_request()
304 dma_sconfig.dst_maxburst = 1; in i2c_imx_dma_request()
305 dma_sconfig.direction = DMA_MEM_TO_DEV; in i2c_imx_dma_request()
306 ret = dmaengine_slave_config(dma->chan_tx, &dma_sconfig); in i2c_imx_dma_request()
320 dma_sconfig.src_addr = phy_addr + in i2c_imx_dma_request()
322 dma_sconfig.src_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; in i2c_imx_dma_request()
323 dma_sconfig.src_maxburst = 1; in i2c_imx_dma_request()
324 dma_sconfig.direction = DMA_DEV_TO_MEM; in i2c_imx_dma_request()
[all …]
/drivers/dma/
Dstm32-dma.c204 struct dma_slave_config dma_sconfig; member
382 memcpy(&chan->dma_sconfig, config, sizeof(*config)); in stm32_dma_slave_config()
714 src_addr_width = chan->dma_sconfig.src_addr_width; in stm32_dma_set_xfer_param()
715 dst_addr_width = chan->dma_sconfig.dst_addr_width; in stm32_dma_set_xfer_param()
716 src_maxburst = chan->dma_sconfig.src_maxburst; in stm32_dma_set_xfer_param()
717 dst_maxburst = chan->dma_sconfig.dst_maxburst; in stm32_dma_set_xfer_param()
766 chan->chan_reg.dma_spar = chan->dma_sconfig.dst_addr; in stm32_dma_set_xfer_param()
816 chan->chan_reg.dma_spar = chan->dma_sconfig.src_addr; in stm32_dma_set_xfer_param()
817 *buswidth = chan->dma_sconfig.src_addr_width; in stm32_dma_set_xfer_param()
868 if (chan->dma_sconfig.device_fc) in stm32_dma_prep_slave_sg()
Dtegra20-apb-dma.c204 struct dma_slave_config dma_sconfig; member
345 memcpy(&tdc->dma_sconfig, sconfig, sizeof(*sconfig)); in tegra_dma_slave_config()
1011 *apb_addr = tdc->dma_sconfig.dst_addr; in get_transfer_param()
1012 *apb_seq = get_bus_width(tdc, tdc->dma_sconfig.dst_addr_width); in get_transfer_param()
1013 *burst_size = tdc->dma_sconfig.dst_maxburst; in get_transfer_param()
1014 *slave_bw = tdc->dma_sconfig.dst_addr_width; in get_transfer_param()
1019 *apb_addr = tdc->dma_sconfig.src_addr; in get_transfer_param()
1020 *apb_seq = get_bus_width(tdc, tdc->dma_sconfig.src_addr_width); in get_transfer_param()
1021 *burst_size = tdc->dma_sconfig.src_maxburst; in get_transfer_param()
1022 *slave_bw = tdc->dma_sconfig.src_addr_width; in get_transfer_param()
Dat_hdmac.c1031 struct dma_slave_config *sconfig = &atchan->dma_sconfig; in atc_prep_slave_sg()
1193 struct dma_slave_config *sconfig = &atchan->dma_sconfig; in atc_dma_cyclic_fill_desc()
1251 struct dma_slave_config *sconfig = &atchan->dma_sconfig; in atc_prep_dma_cyclic()
1330 memcpy(&atchan->dma_sconfig, sconfig, sizeof(*sconfig)); in atc_config()
1332 convert_burst(&atchan->dma_sconfig.src_maxburst); in atc_config()
1333 convert_burst(&atchan->dma_sconfig.dst_maxburst); in atc_config()
Dat_hdmac_regs.h258 struct dma_slave_config dma_sconfig; member
/drivers/spi/
Dspi-tegra114.c542 struct dma_slave_config dma_sconfig = {0}; in tegra_spi_start_dma_based_transfer() local
576 dma_sconfig.device_fc = true; in tegra_spi_start_dma_based_transfer()
578 dma_sconfig.dst_addr = tspi->phys + SPI_TX_FIFO; in tegra_spi_start_dma_based_transfer()
579 dma_sconfig.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in tegra_spi_start_dma_based_transfer()
580 dma_sconfig.dst_maxburst = dma_burst; in tegra_spi_start_dma_based_transfer()
581 ret = dmaengine_slave_config(tspi->tx_dma_chan, &dma_sconfig); in tegra_spi_start_dma_based_transfer()
598 dma_sconfig.src_addr = tspi->phys + SPI_RX_FIFO; in tegra_spi_start_dma_based_transfer()
599 dma_sconfig.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in tegra_spi_start_dma_based_transfer()
600 dma_sconfig.src_maxburst = dma_burst; in tegra_spi_start_dma_based_transfer()
601 ret = dmaengine_slave_config(tspi->rx_dma_chan, &dma_sconfig); in tegra_spi_start_dma_based_transfer()
Dspi-tegra20-slink.c600 struct dma_slave_config dma_sconfig; in tegra_slink_init_dma_param() local
616 dma_sconfig.src_addr = tspi->phys + SLINK_RX_FIFO; in tegra_slink_init_dma_param()
617 dma_sconfig.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in tegra_slink_init_dma_param()
618 dma_sconfig.src_maxburst = 0; in tegra_slink_init_dma_param()
620 dma_sconfig.dst_addr = tspi->phys + SLINK_TX_FIFO; in tegra_slink_init_dma_param()
621 dma_sconfig.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in tegra_slink_init_dma_param()
622 dma_sconfig.dst_maxburst = 0; in tegra_slink_init_dma_param()
625 ret = dmaengine_slave_config(dma_chan, &dma_sconfig); in tegra_slink_init_dma_param()
/drivers/dma/dw/
Dcore.c623 struct dma_slave_config *sconfig = &dwc->dma_sconfig; in dwc_prep_slave_sg()
791 memcpy(&dwc->dma_sconfig, sconfig, sizeof(*sconfig)); in dwc_config()
793 dwc->dma_sconfig.src_maxburst = in dwc_config()
794 clamp(dwc->dma_sconfig.src_maxburst, 0U, dwc->max_burst); in dwc_config()
795 dwc->dma_sconfig.dst_maxburst = in dwc_config()
796 clamp(dwc->dma_sconfig.dst_maxburst, 0U, dwc->max_burst); in dwc_config()
798 dw->encode_maxburst(dwc, &dwc->dma_sconfig.src_maxburst); in dwc_config()
799 dw->encode_maxburst(dwc, &dwc->dma_sconfig.dst_maxburst); in dwc_config()
Didma32.c75 struct dma_slave_config *sconfig = &dwc->dma_sconfig; in idma32_prepare_ctllo()
Ddw.c69 struct dma_slave_config *sconfig = &dwc->dma_sconfig; in dw_dma_prepare_ctllo()
Dregs.h294 struct dma_slave_config dma_sconfig; member
/drivers/tty/serial/
Dserial-tegra.c1138 struct dma_slave_config dma_sconfig; in tegra_uart_dma_channel_allocate() local
1161 dma_sconfig.src_addr = tup->uport.mapbase; in tegra_uart_dma_channel_allocate()
1162 dma_sconfig.src_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; in tegra_uart_dma_channel_allocate()
1163 dma_sconfig.src_maxburst = tup->cdata->max_dma_burst_bytes; in tegra_uart_dma_channel_allocate()
1177 dma_sconfig.dst_addr = tup->uport.mapbase; in tegra_uart_dma_channel_allocate()
1178 dma_sconfig.dst_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; in tegra_uart_dma_channel_allocate()
1179 dma_sconfig.dst_maxburst = 16; in tegra_uart_dma_channel_allocate()
1185 ret = dmaengine_slave_config(dma_chan, &dma_sconfig); in tegra_uart_dma_channel_allocate()