Home
last modified time | relevance | path

Searched refs:slave_config (Results 1 – 23 of 23) sorted by relevance

/linux-6.6.21/sound/soc/ux500/
Dux500_pcm.c33 struct dma_slave_config *slave_config) in ux500_pcm_prepare_slave_config() argument
43 ret = snd_hwparams_to_dma_slave_config(substream, params, slave_config); in ux500_pcm_prepare_slave_config()
47 slave_config->dst_maxburst = 4; in ux500_pcm_prepare_slave_config()
48 slave_config->src_maxburst = 4; in ux500_pcm_prepare_slave_config()
50 slave_config->src_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES; in ux500_pcm_prepare_slave_config()
51 slave_config->dst_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES; in ux500_pcm_prepare_slave_config()
54 slave_config->dst_addr = dma_addr; in ux500_pcm_prepare_slave_config()
56 slave_config->src_addr = dma_addr; in ux500_pcm_prepare_slave_config()
/linux-6.6.21/sound/core/
Dpcm_dmaengine.c56 struct dma_slave_config *slave_config) in snd_hwparams_to_dma_slave_config() argument
76 slave_config->direction = DMA_MEM_TO_DEV; in snd_hwparams_to_dma_slave_config()
77 slave_config->dst_addr_width = buswidth; in snd_hwparams_to_dma_slave_config()
79 slave_config->direction = DMA_DEV_TO_MEM; in snd_hwparams_to_dma_slave_config()
80 slave_config->src_addr_width = buswidth; in snd_hwparams_to_dma_slave_config()
83 slave_config->device_fc = false; in snd_hwparams_to_dma_slave_config()
109 struct dma_slave_config *slave_config) in snd_dmaengine_pcm_set_config_from_dai_data() argument
112 slave_config->dst_addr = dma_data->addr; in snd_dmaengine_pcm_set_config_from_dai_data()
113 slave_config->dst_maxburst = dma_data->maxburst; in snd_dmaengine_pcm_set_config_from_dai_data()
115 slave_config->dst_addr_width = in snd_dmaengine_pcm_set_config_from_dai_data()
[all …]
/linux-6.6.21/sound/soc/tegra/
Dtegra_pcm.c147 struct dma_slave_config slave_config; in tegra_pcm_hw_params() local
161 &slave_config); in tegra_pcm_hw_params()
168 slave_config.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in tegra_pcm_hw_params()
169 slave_config.dst_addr = dmap->addr; in tegra_pcm_hw_params()
170 slave_config.dst_maxburst = 8; in tegra_pcm_hw_params()
172 slave_config.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in tegra_pcm_hw_params()
173 slave_config.src_addr = dmap->addr; in tegra_pcm_hw_params()
174 slave_config.src_maxburst = 8; in tegra_pcm_hw_params()
177 ret = dmaengine_slave_config(chan, &slave_config); in tegra_pcm_hw_params()
/linux-6.6.21/sound/soc/atmel/
Datmel-pcm-dma.c78 struct snd_pcm_hw_params *params, struct dma_slave_config *slave_config) in atmel_pcm_configure_dma() argument
88 ret = snd_hwparams_to_dma_slave_config(substream, params, slave_config); in atmel_pcm_configure_dma()
94 slave_config->dst_addr = ssc->phybase + SSC_THR; in atmel_pcm_configure_dma()
95 slave_config->dst_maxburst = 1; in atmel_pcm_configure_dma()
97 slave_config->src_addr = ssc->phybase + SSC_RHR; in atmel_pcm_configure_dma()
98 slave_config->src_maxburst = 1; in atmel_pcm_configure_dma()
Datmel-classd.c142 struct dma_slave_config *slave_config) in atmel_classd_platform_configure_dma() argument
154 slave_config->dst_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES; in atmel_classd_platform_configure_dma()
156 slave_config->dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in atmel_classd_platform_configure_dma()
158 slave_config->direction = DMA_MEM_TO_DEV; in atmel_classd_platform_configure_dma()
159 slave_config->dst_addr = dd->phy_base + CLASSD_THR; in atmel_classd_platform_configure_dma()
160 slave_config->dst_maxburst = 1; in atmel_classd_platform_configure_dma()
161 slave_config->src_maxburst = 1; in atmel_classd_platform_configure_dma()
162 slave_config->device_fc = false; in atmel_classd_platform_configure_dma()
Datmel-pdmic.c192 struct dma_slave_config *slave_config) in atmel_pdmic_platform_configure_dma() argument
199 slave_config); in atmel_pdmic_platform_configure_dma()
206 slave_config->src_addr = dd->phy_base + PDMIC_CDR; in atmel_pdmic_platform_configure_dma()
207 slave_config->src_maxburst = 1; in atmel_pdmic_platform_configure_dma()
208 slave_config->dst_maxburst = 1; in atmel_pdmic_platform_configure_dma()
/linux-6.6.21/drivers/spi/
Dspi-at91-usart.c125 struct dma_slave_config slave_config; in at91_usart_spi_configure_dma() local
160 slave_config.dst_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; in at91_usart_spi_configure_dma()
161 slave_config.src_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; in at91_usart_spi_configure_dma()
162 slave_config.dst_addr = (dma_addr_t)phybase + US_THR; in at91_usart_spi_configure_dma()
163 slave_config.src_addr = (dma_addr_t)phybase + US_RHR; in at91_usart_spi_configure_dma()
164 slave_config.src_maxburst = 1; in at91_usart_spi_configure_dma()
165 slave_config.dst_maxburst = 1; in at91_usart_spi_configure_dma()
166 slave_config.device_fc = false; in at91_usart_spi_configure_dma()
168 slave_config.direction = DMA_DEV_TO_MEM; in at91_usart_spi_configure_dma()
169 if (dmaengine_slave_config(ctlr->dma_rx, &slave_config)) { in at91_usart_spi_configure_dma()
[all …]
Dspi-bcm2835.c889 struct dma_slave_config slave_config; in bcm2835_dma_init() local
924 slave_config.dst_addr = (u32)(dma_reg_base + BCM2835_SPI_FIFO); in bcm2835_dma_init()
925 slave_config.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in bcm2835_dma_init()
927 ret = dmaengine_slave_config(ctlr->dma_tx, &slave_config); in bcm2835_dma_init()
963 slave_config.src_addr = (u32)(dma_reg_base + BCM2835_SPI_FIFO); in bcm2835_dma_init()
964 slave_config.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in bcm2835_dma_init()
965 slave_config.dst_addr = (u32)(dma_reg_base + BCM2835_SPI_CS); in bcm2835_dma_init()
966 slave_config.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in bcm2835_dma_init()
968 ret = dmaengine_slave_config(ctlr->dma_rx, &slave_config); in bcm2835_dma_init()
Dspi-atmel.c520 struct dma_slave_config slave_config; in atmel_spi_dma_slave_config() local
524 slave_config.dst_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES; in atmel_spi_dma_slave_config()
525 slave_config.src_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES; in atmel_spi_dma_slave_config()
527 slave_config.dst_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; in atmel_spi_dma_slave_config()
528 slave_config.src_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; in atmel_spi_dma_slave_config()
531 slave_config.dst_addr = (dma_addr_t)as->phybase + SPI_TDR; in atmel_spi_dma_slave_config()
532 slave_config.src_addr = (dma_addr_t)as->phybase + SPI_RDR; in atmel_spi_dma_slave_config()
533 slave_config.src_maxburst = 1; in atmel_spi_dma_slave_config()
534 slave_config.dst_maxburst = 1; in atmel_spi_dma_slave_config()
535 slave_config.device_fc = false; in atmel_spi_dma_slave_config()
[all …]
/linux-6.6.21/drivers/i2c/busses/
Di2c-at91-master.c749 struct dma_slave_config slave_config; in at91_twi_configure_dma() local
771 memset(&slave_config, 0, sizeof(slave_config)); in at91_twi_configure_dma()
772 slave_config.src_addr = (dma_addr_t)phy_addr + AT91_TWI_RHR; in at91_twi_configure_dma()
773 slave_config.src_addr_width = addr_width; in at91_twi_configure_dma()
774 slave_config.src_maxburst = 1; in at91_twi_configure_dma()
775 slave_config.dst_addr = (dma_addr_t)phy_addr + AT91_TWI_THR; in at91_twi_configure_dma()
776 slave_config.dst_addr_width = addr_width; in at91_twi_configure_dma()
777 slave_config.dst_maxburst = 1; in at91_twi_configure_dma()
778 slave_config.device_fc = false; in at91_twi_configure_dma()
794 slave_config.direction = DMA_MEM_TO_DEV; in at91_twi_configure_dma()
[all …]
/linux-6.6.21/sound/soc/
Dsoc-generic-dmaengine-pcm.c51 struct snd_pcm_hw_params *params, struct dma_slave_config *slave_config) in snd_dmaengine_pcm_prepare_slave_config() argument
65 ret = snd_hwparams_to_dma_slave_config(substream, params, slave_config); in snd_dmaengine_pcm_prepare_slave_config()
70 slave_config); in snd_dmaengine_pcm_prepare_slave_config()
82 struct dma_slave_config slave_config; in dmaengine_pcm_hw_params() local
88 memset(&slave_config, 0, sizeof(slave_config)); in dmaengine_pcm_hw_params()
90 ret = pcm->config->prepare_slave_config(substream, params, &slave_config); in dmaengine_pcm_hw_params()
94 return dmaengine_slave_config(chan, &slave_config); in dmaengine_pcm_hw_params()
/linux-6.6.21/include/sound/
Ddmaengine_pcm.h31 const struct snd_pcm_hw_params *params, struct dma_slave_config *slave_config);
139 struct dma_slave_config *slave_config);
165 struct dma_slave_config *slave_config);
/linux-6.6.21/sound/soc/stm/
Dstm32_spdifrx.c241 struct dma_slave_config slave_config; member
427 spdifrx->slave_config.direction = DMA_DEV_TO_MEM; in stm32_spdifrx_dma_ctrl_register()
428 spdifrx->slave_config.src_addr = (dma_addr_t)(spdifrx->phys_addr + in stm32_spdifrx_dma_ctrl_register()
430 spdifrx->slave_config.dst_addr = spdifrx->dmab->addr; in stm32_spdifrx_dma_ctrl_register()
431 spdifrx->slave_config.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in stm32_spdifrx_dma_ctrl_register()
432 spdifrx->slave_config.src_maxburst = 1; in stm32_spdifrx_dma_ctrl_register()
435 &spdifrx->slave_config); in stm32_spdifrx_dma_ctrl_register()
/linux-6.6.21/drivers/dma/
Dpl330.c456 struct dma_slave_config slave_config; member
556 struct dma_slave_config *slave_config,
2245 struct dma_slave_config *slave_config, in pl330_config_write() argument
2252 if (slave_config->dst_addr) in pl330_config_write()
2253 pch->fifo_addr = slave_config->dst_addr; in pl330_config_write()
2254 if (slave_config->dst_addr_width) in pl330_config_write()
2255 pch->burst_sz = __ffs(slave_config->dst_addr_width); in pl330_config_write()
2256 pch->burst_len = fixup_burst_len(slave_config->dst_maxburst, in pl330_config_write()
2259 if (slave_config->src_addr) in pl330_config_write()
2260 pch->fifo_addr = slave_config->src_addr; in pl330_config_write()
[all …]
Dmmp_tdma.c115 struct dma_slave_config slave_config; member
455 if (mmp_tdma_config_write(chan, direction, &tdmac->slave_config)) in mmp_tdma_prep_dma_cyclic()
511 memcpy(&tdmac->slave_config, dmaengine_cfg, sizeof(*dmaengine_cfg)); in mmp_tdma_config()
Dep93xx_dma.c183 struct dma_slave_config slave_config; member
1056 ep93xx_dma_slave_config_write(chan, dir, &edmac->slave_config); in ep93xx_dma_prep_slave_sg()
1143 ep93xx_dma_slave_config_write(chan, dir, &edmac->slave_config); in ep93xx_dma_prep_dma_cyclic()
1237 memcpy(&edmac->slave_config, config, sizeof(*config)); in ep93xx_dma_slave_config()
Dmmp_pdma.c95 struct dma_slave_config slave_config; member
541 mmp_pdma_config_write(dchan, &chan->slave_config, dir); in mmp_pdma_prep_slave_sg()
625 mmp_pdma_config_write(dchan, &chan->slave_config, direction); in mmp_pdma_prep_dma_cyclic()
739 memcpy(&chan->slave_config, cfg, sizeof(*cfg)); in mmp_pdma_config()
Dk3dma.c88 struct dma_slave_config slave_config; member
557 k3_dma_config_write(chan, dir, &c->slave_config); in k3_dma_prep_slave_sg()
618 k3_dma_config_write(chan, dir, &c->slave_config); in k3_dma_prep_dma_cyclic()
660 memcpy(&c->slave_config, cfg, sizeof(*cfg)); in k3_dma_config()
Dimx-sdma.c443 struct dma_slave_config slave_config; member
1615 sdma_config_write(chan, &sdmac->slave_config, direction); in sdma_prep_slave_sg()
1704 sdma_config_write(chan, &sdmac->slave_config, direction); in sdma_prep_dma_cyclic()
1803 memcpy(&sdmac->slave_config, dmaengine_cfg, sizeof(*dmaengine_cfg)); in sdma_config()
Dste_dma40.c502 struct dma_slave_config slave_config; member
2249 d40_set_runtime_config_write(dchan, &chan->slave_config, direction); in d40_prep_sg()
2673 memcpy(&d40c->slave_config, config, sizeof(*config)); in d40_set_runtime_config()
/linux-6.6.21/include/uapi/linux/
Dif_eql.h44 typedef struct slave_config { struct
/linux-6.6.21/sound/soc/apple/
Dmca.c835 struct dma_slave_config slave_config; in mca_hw_params() local
841 memset(&slave_config, 0, sizeof(slave_config)); in mca_hw_params()
843 &slave_config); in mca_hw_params()
848 slave_config.dst_port_window_size = in mca_hw_params()
851 slave_config.src_port_window_size = in mca_hw_params()
854 return dmaengine_slave_config(chan, &slave_config); in mca_hw_params()
/linux-6.6.21/drivers/tty/serial/
Dimx.c1343 struct dma_slave_config slave_config = {}; in imx_uart_dma_init() local
1355 slave_config.direction = DMA_DEV_TO_MEM; in imx_uart_dma_init()
1356 slave_config.src_addr = sport->port.mapbase + URXD0; in imx_uart_dma_init()
1357 slave_config.src_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; in imx_uart_dma_init()
1359 slave_config.src_maxburst = RXTL_DMA - 1; in imx_uart_dma_init()
1360 ret = dmaengine_slave_config(sport->dma_chan_rx, &slave_config); in imx_uart_dma_init()
1382 slave_config.direction = DMA_MEM_TO_DEV; in imx_uart_dma_init()
1383 slave_config.dst_addr = sport->port.mapbase + URTX0; in imx_uart_dma_init()
1384 slave_config.dst_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; in imx_uart_dma_init()
1385 slave_config.dst_maxburst = TXTL_DMA; in imx_uart_dma_init()
[all …]