Home
last modified time | relevance | path

Searched refs:sconfig (Results 1 – 25 of 30) sorted by relevance

12

/linux-6.12.1/drivers/dma/
Dsun4i-dma.c397 static int sanitize_config(struct dma_slave_config *sconfig, in sanitize_config() argument
402 if ((sconfig->dst_addr_width == DMA_SLAVE_BUSWIDTH_UNDEFINED) || in sanitize_config()
403 !sconfig->dst_maxburst) in sanitize_config()
406 if (sconfig->src_addr_width == DMA_SLAVE_BUSWIDTH_UNDEFINED) in sanitize_config()
407 sconfig->src_addr_width = sconfig->dst_addr_width; in sanitize_config()
409 if (!sconfig->src_maxburst) in sanitize_config()
410 sconfig->src_maxburst = sconfig->dst_maxburst; in sanitize_config()
415 if ((sconfig->src_addr_width == DMA_SLAVE_BUSWIDTH_UNDEFINED) || in sanitize_config()
416 !sconfig->src_maxburst) in sanitize_config()
419 if (sconfig->dst_addr_width == DMA_SLAVE_BUSWIDTH_UNDEFINED) in sanitize_config()
[all …]
Dls2x-apb-dma.c128 struct dma_slave_config sconfig; member
223 if ((lchan->sconfig.src_addr_width & LDMA_SLAVE_BUSWIDTHS) && in ls2x_dmac_detect_burst()
224 (lchan->sconfig.dst_addr_width & LDMA_SLAVE_BUSWIDTHS)) in ls2x_dmac_detect_burst()
227 if (lchan->sconfig.direction == DMA_MEM_TO_DEV) { in ls2x_dmac_detect_burst()
228 maxburst = lchan->sconfig.dst_maxburst; in ls2x_dmac_detect_burst()
229 buswidth = lchan->sconfig.dst_addr_width; in ls2x_dmac_detect_burst()
231 maxburst = lchan->sconfig.src_maxburst; in ls2x_dmac_detect_burst()
232 buswidth = lchan->sconfig.src_addr_width; in ls2x_dmac_detect_burst()
247 ldma_sg->hw->apb_addr = lchan->sconfig.dst_addr; in ls2x_dma_fill_desc()
250 ldma_sg->hw->apb_addr = lchan->sconfig.src_addr; in ls2x_dma_fill_desc()
[all …]
Duniphier-xdmac.c91 struct dma_slave_config sconfig; member
151 buswidth = xc->sconfig.src_addr_width; in uniphier_xdmac_chan_start()
160 buswidth = xc->sconfig.dst_addr_width; in uniphier_xdmac_chan_start()
336 buswidth = xc->sconfig.src_addr_width; in uniphier_xdmac_prep_slave_sg()
337 maxburst = xc->sconfig.src_maxburst; in uniphier_xdmac_prep_slave_sg()
339 buswidth = xc->sconfig.dst_addr_width; in uniphier_xdmac_prep_slave_sg()
340 maxburst = xc->sconfig.dst_maxburst; in uniphier_xdmac_prep_slave_sg()
358 ? xc->sconfig.src_addr : sg_dma_address(sg); in uniphier_xdmac_prep_slave_sg()
360 ? xc->sconfig.dst_addr : sg_dma_address(sg); in uniphier_xdmac_prep_slave_sg()
400 memcpy(&xc->sconfig, config, sizeof(*config)); in uniphier_xdmac_slave_config()
Dsun6i-dma.c586 struct dma_slave_config *sconfig, in set_config() argument
594 src_addr_width = sconfig->src_addr_width; in set_config()
595 dst_addr_width = sconfig->dst_addr_width; in set_config()
596 src_maxburst = sconfig->src_maxburst; in set_config()
597 dst_maxburst = sconfig->dst_maxburst; in set_config()
707 struct dma_slave_config *sconfig = &vchan->cfg; in sun6i_dma_prep_slave_sg() local
718 ret = set_config(sdev, sconfig, dir, &lli_cfg); in sun6i_dma_prep_slave_sg()
739 sconfig->dst_addr); in sun6i_dma_prep_slave_sg()
747 &sconfig->dst_addr, &sg_dma_address(sg), in sun6i_dma_prep_slave_sg()
752 sconfig->src_addr, in sun6i_dma_prep_slave_sg()
[all …]
Dowl-dma.c385 struct dma_slave_config *sconfig, in owl_dma_cfg_lli() argument
409 if (sconfig->dst_addr_width == DMA_SLAVE_BUSWIDTH_1_BYTE) in owl_dma_cfg_lli()
422 if (sconfig->src_addr_width == DMA_SLAVE_BUSWIDTH_1_BYTE) in owl_dma_cfg_lli()
924 struct dma_slave_config *sconfig = &vchan->cfg; in owl_dma_prep_slave_sg() local
956 dst = sconfig->dst_addr; in owl_dma_prep_slave_sg()
958 src = sconfig->src_addr; in owl_dma_prep_slave_sg()
962 ret = owl_dma_cfg_lli(vchan, lli, src, dst, len, dir, sconfig, in owl_dma_prep_slave_sg()
989 struct dma_slave_config *sconfig = &vchan->cfg; in owl_prep_dma_cyclic() local
1012 dst = sconfig->dst_addr; in owl_prep_dma_cyclic()
1014 src = sconfig->src_addr; in owl_prep_dma_cyclic()
[all …]
Dat_hdmac.c1256 struct dma_slave_config *sconfig = &atchan->dma_sconfig; in atc_prep_slave_sg() local
1282 ctrla = FIELD_PREP(ATC_SCSIZE, sconfig->src_maxburst) | in atc_prep_slave_sg()
1283 FIELD_PREP(ATC_DCSIZE, sconfig->dst_maxburst); in atc_prep_slave_sg()
1288 reg_width = convert_buswidth(sconfig->dst_addr_width); in atc_prep_slave_sg()
1296 reg = sconfig->dst_addr; in atc_prep_slave_sg()
1336 reg_width = convert_buswidth(sconfig->src_addr_width); in atc_prep_slave_sg()
1345 reg = sconfig->src_addr; in atc_prep_slave_sg()
1433 struct dma_slave_config *sconfig = &atchan->dma_sconfig; in atc_dma_cyclic_fill_desc() local
1446 lli->daddr = sconfig->dst_addr; in atc_dma_cyclic_fill_desc()
1458 lli->saddr = sconfig->src_addr; in atc_dma_cyclic_fill_desc()
[all …]
Dat_xdmac.c232 struct dma_slave_config sconfig; member
684 csize = ffs(atchan->sconfig.src_maxburst) - 1; in at_xdmac_compute_chan_conf()
690 dwidth = ffs(atchan->sconfig.src_addr_width) - 1; in at_xdmac_compute_chan_conf()
709 csize = ffs(atchan->sconfig.dst_maxburst) - 1; in at_xdmac_compute_chan_conf()
715 dwidth = ffs(atchan->sconfig.dst_addr_width) - 1; in at_xdmac_compute_chan_conf()
733 static int at_xdmac_check_slave_config(struct dma_slave_config *sconfig) in at_xdmac_check_slave_config() argument
735 if ((sconfig->src_maxburst > AT_XDMAC_MAX_CSIZE) in at_xdmac_check_slave_config()
736 || (sconfig->dst_maxburst > AT_XDMAC_MAX_CSIZE)) in at_xdmac_check_slave_config()
739 if ((sconfig->src_addr_width > AT_XDMAC_MAX_DWIDTH) in at_xdmac_check_slave_config()
740 || (sconfig->dst_addr_width > AT_XDMAC_MAX_DWIDTH)) in at_xdmac_check_slave_config()
[all …]
Dtegra210-adma.c136 struct dma_slave_config sconfig; member
211 struct dma_slave_config *sconfig) in tegra_adma_slave_config() argument
215 memcpy(&tdc->sconfig, sconfig, sizeof(*sconfig)); in tegra_adma_slave_config()
571 burst_size = tdc->sconfig.dst_maxburst; in tegra_adma_set_xfer_params()
582 burst_size = tdc->sconfig.src_maxburst; in tegra_adma_set_xfer_params()
Dtegra186-gpc-dma.c364 struct dma_slave_config *sconfig) in tegra_dma_slave_config() argument
368 memcpy(&tdc->dma_sconfig, sconfig, sizeof(*sconfig)); in tegra_dma_slave_config()
/linux-6.12.1/sound/soc/codecs/
Dcs42l43-sdw.c27 struct sdw_stream_config sconfig = {0}; in cs42l43_sdw_add_peripheral() local
34 snd_sdw_params_to_config(substream, params, &sconfig, &pconfig); in cs42l43_sdw_add_peripheral()
37 ret = sdw_stream_add_slave(sdw, &sconfig, &pconfig, 1, sdw_stream); in cs42l43_sdw_add_peripheral()
Dwcd938x-sdw.c111 wcd->sconfig.ch_count = 1; in wcd938x_sdw_hw_params()
120 wcd->sconfig.ch_count++; in wcd938x_sdw_hw_params()
126 wcd->sconfig.bps = 1; in wcd938x_sdw_hw_params()
127 wcd->sconfig.frame_rate = params_rate(params); in wcd938x_sdw_hw_params()
129 wcd->sconfig.direction = SDW_DATA_DIR_TX; in wcd938x_sdw_hw_params()
131 wcd->sconfig.direction = SDW_DATA_DIR_RX; in wcd938x_sdw_hw_params()
133 wcd->sconfig.type = SDW_STREAM_PCM; in wcd938x_sdw_hw_params()
135 return sdw_stream_add_slave(wcd->sdev, &wcd->sconfig, in wcd938x_sdw_hw_params()
Dcs35l56.c542 struct sdw_stream_config sconfig; in cs35l56_sdw_dai_hw_params() local
554 memset(&sconfig, 0, sizeof(sconfig)); in cs35l56_sdw_dai_hw_params()
557 sconfig.frame_rate = params_rate(params); in cs35l56_sdw_dai_hw_params()
558 sconfig.bps = snd_pcm_format_width(params_format(params)); in cs35l56_sdw_dai_hw_params()
561 sconfig.direction = SDW_DATA_DIR_RX; in cs35l56_sdw_dai_hw_params()
565 sconfig.direction = SDW_DATA_DIR_TX; in cs35l56_sdw_dai_hw_params()
571 sconfig.ch_count = params_channels(params); in cs35l56_sdw_dai_hw_params()
572 pconfig.ch_mask = GENMASK(sconfig.ch_count - 1, 0); in cs35l56_sdw_dai_hw_params()
574 sconfig.ch_count = hweight32(pconfig.ch_mask); in cs35l56_sdw_dai_hw_params()
577 ret = sdw_stream_add_slave(cs35l56->sdw_peripheral, &sconfig, &pconfig, in cs35l56_sdw_dai_hw_params()
Dwcd937x-sdw.c96 wcd->sconfig.ch_count = 1; in wcd937x_sdw_hw_params()
104 wcd->sconfig.ch_count++; in wcd937x_sdw_hw_params()
110 wcd->sconfig.bps = 1; in wcd937x_sdw_hw_params()
111 wcd->sconfig.frame_rate = params_rate(params); in wcd937x_sdw_hw_params()
112 wcd->sconfig.direction = wcd->is_tx ? SDW_DATA_DIR_TX : SDW_DATA_DIR_RX; in wcd937x_sdw_hw_params()
113 wcd->sconfig.type = SDW_STREAM_PCM; in wcd937x_sdw_hw_params()
115 return sdw_stream_add_slave(wcd->sdev, &wcd->sconfig, in wcd937x_sdw_hw_params()
Dwcd939x-sdw.c153 wcd->sconfig.ch_count = 1; in wcd939x_sdw_hw_params()
162 wcd->sconfig.ch_count++; in wcd939x_sdw_hw_params()
168 wcd->sconfig.bps = 1; in wcd939x_sdw_hw_params()
169 wcd->sconfig.frame_rate = params_rate(params); in wcd939x_sdw_hw_params()
171 wcd->sconfig.direction = SDW_DATA_DIR_TX; in wcd939x_sdw_hw_params()
173 wcd->sconfig.direction = SDW_DATA_DIR_RX; in wcd939x_sdw_hw_params()
175 wcd->sconfig.type = SDW_STREAM_PCM; in wcd939x_sdw_hw_params()
177 return sdw_stream_add_slave(wcd->sdev, &wcd->sconfig, &port_config[0], in wcd939x_sdw_hw_params()
Dwsa881x.c676 struct sdw_stream_config sconfig; member
996 return sdw_stream_add_slave(wsa881x->slave, &wsa881x->sconfig, in wsa881x_hw_params()
1150 wsa881x->sconfig.ch_count = 1; in wsa881x_probe()
1151 wsa881x->sconfig.bps = 1; in wsa881x_probe()
1152 wsa881x->sconfig.frame_rate = 48000; in wsa881x_probe()
1153 wsa881x->sconfig.direction = SDW_DATA_DIR_RX; in wsa881x_probe()
1154 wsa881x->sconfig.type = SDW_STREAM_PDM; in wsa881x_probe()
Dwsa883x.c435 struct sdw_stream_config sconfig; member
1296 wsa883x->sconfig.frame_rate = params_rate(params); in wsa883x_hw_params()
1298 return sdw_stream_add_slave(wsa883x->slave, &wsa883x->sconfig, in wsa883x_hw_params()
1401 wsa883x->sconfig.ch_count = 1; in wsa883x_probe()
1402 wsa883x->sconfig.bps = 1; in wsa883x_probe()
1403 wsa883x->sconfig.direction = SDW_DATA_DIR_RX; in wsa883x_probe()
1404 wsa883x->sconfig.type = SDW_STREAM_PDM; in wsa883x_probe()
Dwsa884x.c733 struct sdw_stream_config sconfig; member
1787 wsa884x->sconfig.frame_rate = params_rate(params); in wsa884x_hw_params()
1789 return sdw_stream_add_slave(wsa884x->slave, &wsa884x->sconfig, in wsa884x_hw_params()
2083 wsa884x->sconfig.ch_count = 1; in wsa884x_probe()
2084 wsa884x->sconfig.bps = 1; in wsa884x_probe()
2085 wsa884x->sconfig.direction = SDW_DATA_DIR_RX; in wsa884x_probe()
2086 wsa884x->sconfig.type = SDW_STREAM_PDM; in wsa884x_probe()
Dwcd937x.h524 struct sdw_stream_config sconfig; member
/linux-6.12.1/drivers/dma/dw/
Ddw.c78 struct dma_slave_config *sconfig = &dwc->dma_sconfig; in dw_dma_prepare_ctllo() local
85 dmsize = dw_dma_encode_maxburst(sconfig->dst_maxburst); in dw_dma_prepare_ctllo()
89 smsize = dw_dma_encode_maxburst(sconfig->src_maxburst); in dw_dma_prepare_ctllo()
Dcore.c621 struct dma_slave_config *sconfig = &dwc->dma_sconfig; in dwc_prep_slave_sg() local
644 reg_width = __ffs(sconfig->dst_addr_width); in dwc_prep_slave_sg()
645 reg = sconfig->dst_addr; in dwc_prep_slave_sg()
651 ctllo |= sconfig->device_fc ? DWC_CTLL_FC(DW_DMA_FC_P_M2P) : in dwc_prep_slave_sg()
662 mem_width = __ffs(sconfig->src_addr_width | mem | len); in dwc_prep_slave_sg()
694 reg_width = __ffs(sconfig->src_addr_width); in dwc_prep_slave_sg()
695 reg = sconfig->src_addr; in dwc_prep_slave_sg()
701 ctllo |= sconfig->device_fc ? DWC_CTLL_FC(DW_DMA_FC_P_P2M) : in dwc_prep_slave_sg()
722 mem_width = __ffs(sconfig->dst_addr_width | mem); in dwc_prep_slave_sg()
866 static int dwc_config(struct dma_chan *chan, struct dma_slave_config *sconfig) in dwc_config() argument
[all …]
Didma32.c209 struct dma_slave_config *sconfig = &dwc->dma_sconfig; in idma32_prepare_ctllo() local
213 dmsize = idma32_encode_maxburst(sconfig->dst_maxburst); in idma32_prepare_ctllo()
215 smsize = idma32_encode_maxburst(sconfig->src_maxburst); in idma32_prepare_ctllo()
/linux-6.12.1/drivers/soundwire/
Dintel_ace2x.c313 struct sdw_stream_config sconfig; in intel_hw_params() local
352 sconfig.direction = dir; in intel_hw_params()
353 sconfig.ch_count = ch; in intel_hw_params()
354 sconfig.frame_rate = params_rate(params); in intel_hw_params()
355 sconfig.type = dai_runtime->stream_type; in intel_hw_params()
357 sconfig.bps = snd_pcm_format_width(params_format(params)); in intel_hw_params()
368 ret = sdw_stream_add_master(&cdns->bus, &sconfig, in intel_hw_params()
Dintel.c728 struct sdw_stream_config sconfig; in intel_hw_params() local
764 sconfig.direction = dir; in intel_hw_params()
765 sconfig.ch_count = ch; in intel_hw_params()
766 sconfig.frame_rate = params_rate(params); in intel_hw_params()
767 sconfig.type = dai_runtime->stream_type; in intel_hw_params()
769 sconfig.bps = snd_pcm_format_width(params_format(params)); in intel_hw_params()
780 ret = sdw_stream_add_master(&cdns->bus, &sconfig, in intel_hw_params()
Damd_manager.c606 struct sdw_stream_config sconfig; in amd_sdw_hw_params() local
621 sconfig.direction = dir; in amd_sdw_hw_params()
622 sconfig.ch_count = ch; in amd_sdw_hw_params()
623 sconfig.frame_rate = params_rate(params); in amd_sdw_hw_params()
624 sconfig.type = dai_runtime->stream_type; in amd_sdw_hw_params()
626 sconfig.bps = snd_pcm_format_width(params_format(params)); in amd_sdw_hw_params()
636 ret = sdw_stream_add_master(&amd_manager->bus, &sconfig, in amd_sdw_hw_params()
Dqcom.c1162 struct sdw_stream_config sconfig; in qcom_swrm_stream_alloc_ports() local
1172 sconfig.direction = SDW_DATA_DIR_TX; in qcom_swrm_stream_alloc_ports()
1174 sconfig.direction = SDW_DATA_DIR_RX; in qcom_swrm_stream_alloc_ports()
1177 sconfig.ch_count = 1; in qcom_swrm_stream_alloc_ports()
1178 sconfig.frame_rate = params_rate(params); in qcom_swrm_stream_alloc_ports()
1179 sconfig.type = stream->type; in qcom_swrm_stream_alloc_ports()
1180 sconfig.bps = 1; in qcom_swrm_stream_alloc_ports()
1220 sdw_stream_add_master(&ctrl->bus, &sconfig, pconfig, in qcom_swrm_stream_alloc_ports()

12