Home
last modified time | relevance | path

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

12

/linux-6.15/drivers/dma/
H A Dsun4i-dma.c487 sconfig->src_addr_width = sconfig->dst_addr_width; in sanitize_config()
490 sconfig->src_maxburst = sconfig->dst_maxburst; in sanitize_config()
500 sconfig->dst_addr_width = sconfig->src_addr_width; in sanitize_config()
503 sconfig->dst_maxburst = sconfig->src_maxburst; in sanitize_config()
547 sconfig->src_maxburst, sconfig->dst_maxburst, in generate_ndma_promise()
548 sconfig->src_addr_width, sconfig->dst_addr_width); in generate_ndma_promise()
794 dest = sconfig->dst_addr; in sun4i_dma_prep_dma_cyclic()
800 src = sconfig->src_addr; in sun4i_dma_prep_dma_cyclic()
858 plength, sconfig); in sun4i_dma_prep_dma_cyclic()
951 sconfig); in sun4i_dma_prep_slave_sg()
[all …]
H A Dloongson2-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 …]
H A 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()
H A Dsun6i-dma.c587 struct dma_slave_config *sconfig, in set_config() argument
595 src_addr_width = sconfig->src_addr_width; in set_config()
596 dst_addr_width = sconfig->dst_addr_width; in set_config()
597 src_maxburst = sconfig->src_maxburst; in set_config()
598 dst_maxburst = sconfig->dst_maxburst; in set_config()
740 sconfig->dst_addr); in sun6i_dma_prep_slave_sg()
748 &sconfig->dst_addr, &sg_dma_address(sg), in sun6i_dma_prep_slave_sg()
753 sconfig->src_addr, in sun6i_dma_prep_slave_sg()
762 &sg_dma_address(sg), &sconfig->src_addr, in sun6i_dma_prep_slave_sg()
825 sconfig->dst_addr); in sun6i_dma_prep_dma_cyclic()
[all …]
H A 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 …]
H A Dat_hdmac.c1282 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()
1446 lli->daddr = sconfig->dst_addr; in atc_dma_cyclic_fill_desc()
1458 lli->saddr = sconfig->src_addr; in atc_dma_cyclic_fill_desc()
1474 FIELD_PREP(ATC_DCSIZE, sconfig->dst_maxburst) | in atc_dma_cyclic_fill_desc()
1560 struct dma_slave_config *sconfig) in atc_config() argument
[all …]
H A Dat_xdmac.c232 struct dma_slave_config sconfig; member
684 csize = ffs(atchan->sconfig.src_maxburst) - 1; in at_xdmac_compute_chan_conf()
709 csize = ffs(atchan->sconfig.dst_maxburst) - 1; in at_xdmac_compute_chan_conf()
735 if ((sconfig->src_maxburst > AT_XDMAC_MAX_CSIZE) in at_xdmac_check_slave_config()
747 struct dma_slave_config *sconfig) in at_xdmac_set_slave_config() argument
751 if (at_xdmac_check_slave_config(sconfig)) { in at_xdmac_set_slave_config()
756 memcpy(&atchan->sconfig, sconfig, sizeof(atchan->sconfig)); in at_xdmac_set_slave_config()
818 desc->lld.mbr_sa = atchan->sconfig.src_addr; in at_xdmac_prep_slave_sg()
822 desc->lld.mbr_da = atchan->sconfig.dst_addr; in at_xdmac_prep_slave_sg()
911 desc->lld.mbr_sa = atchan->sconfig.src_addr; in at_xdmac_prep_dma_cyclic()
[all …]
H A Dtegra210-adma.c144 struct dma_slave_config sconfig; member
226 struct dma_slave_config *sconfig) in tegra_adma_slave_config() argument
230 memcpy(&tdc->sconfig, sconfig, sizeof(*sconfig)); in tegra_adma_slave_config()
606 burst_size = tdc->sconfig.dst_maxburst; in tegra_adma_set_xfer_params()
617 burst_size = tdc->sconfig.src_maxburst; in tegra_adma_set_xfer_params()
H A Dtegra186-gpc-dma.c365 struct dma_slave_config *sconfig) in tegra_dma_slave_config() argument
369 memcpy(&tdc->dma_sconfig, sconfig, sizeof(*sconfig)); in tegra_dma_slave_config()
/linux-6.15/drivers/soundwire/
H A Dintel_ace2x.c30 sconfig.frame_rate = 16000; in sdw_slave_bpt_stream_add()
31 sconfig.ch_count = 1; in sdw_slave_bpt_stream_add()
33 sconfig.direction = SDW_DATA_DIR_RX; in sdw_slave_bpt_stream_add()
34 sconfig.type = SDW_STREAM_BPT; in sdw_slave_bpt_stream_add()
53 struct sdw_stream_config sconfig; in intel_ace2x_bpt_open_stream() local
108 sconfig.direction = dir; in intel_ace2x_bpt_open_stream()
109 sconfig.ch_count = 1; in intel_ace2x_bpt_open_stream()
110 sconfig.frame_rate = 16000; in intel_ace2x_bpt_open_stream()
111 sconfig.type = SDW_STREAM_BPT; in intel_ace2x_bpt_open_stream()
667 sconfig.direction = dir; in intel_hw_params()
[all …]
H A 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()
H A Damd_manager.c695 struct sdw_stream_config sconfig; in amd_sdw_hw_params() local
710 sconfig.direction = dir; in amd_sdw_hw_params()
711 sconfig.ch_count = ch; in amd_sdw_hw_params()
712 sconfig.frame_rate = params_rate(params); in amd_sdw_hw_params()
713 sconfig.type = dai_runtime->stream_type; in amd_sdw_hw_params()
715 sconfig.bps = snd_pcm_format_width(params_format(params)); in amd_sdw_hw_params()
725 ret = sdw_stream_add_master(&amd_manager->bus, &sconfig, in amd_sdw_hw_params()
H A Dqcom.c1167 struct sdw_stream_config sconfig; in qcom_swrm_stream_alloc_ports() local
1177 sconfig.direction = SDW_DATA_DIR_TX; in qcom_swrm_stream_alloc_ports()
1179 sconfig.direction = SDW_DATA_DIR_RX; in qcom_swrm_stream_alloc_ports()
1182 sconfig.ch_count = 1; in qcom_swrm_stream_alloc_ports()
1183 sconfig.frame_rate = params_rate(params); in qcom_swrm_stream_alloc_ports()
1184 sconfig.type = stream->type; in qcom_swrm_stream_alloc_ports()
1185 sconfig.bps = 1; in qcom_swrm_stream_alloc_ports()
1225 sdw_stream_add_master(&ctrl->bus, &sconfig, pconfig, in qcom_swrm_stream_alloc_ports()
/linux-6.15/sound/soc/codecs/
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A Dwsa881x.c671 struct sdw_stream_config sconfig; member
991 return sdw_stream_add_slave(wsa881x->slave, &wsa881x->sconfig, in wsa881x_hw_params()
1145 wsa881x->sconfig.ch_count = 1; in wsa881x_probe()
1146 wsa881x->sconfig.bps = 1; in wsa881x_probe()
1147 wsa881x->sconfig.frame_rate = 48000; in wsa881x_probe()
1148 wsa881x->sconfig.direction = SDW_DATA_DIR_RX; in wsa881x_probe()
1149 wsa881x->sconfig.type = SDW_STREAM_PDM; in wsa881x_probe()
H A Dwsa883x.c467 struct sdw_stream_config sconfig; member
1342 wsa883x->sconfig.frame_rate = params_rate(params); in wsa883x_hw_params()
1344 return sdw_stream_add_slave(wsa883x->slave, &wsa883x->sconfig, in wsa883x_hw_params()
1581 wsa883x->sconfig.ch_count = 1; in wsa883x_probe()
1582 wsa883x->sconfig.bps = 1; in wsa883x_probe()
1583 wsa883x->sconfig.direction = SDW_DATA_DIR_RX; in wsa883x_probe()
1584 wsa883x->sconfig.type = SDW_STREAM_PDM; in wsa883x_probe()
H A 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()
H A Dwcd937x.h527 struct sdw_stream_config sconfig; member
/linux-6.15/drivers/dma/dw/
H A 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()
H A 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()
H A 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 …]

12