Home
last modified time | relevance | path

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

/linux/drivers/dma/
H A Dsun4i-dma.c477 static int sanitize_config(struct dma_slave_config *sconfig, in sanitize_config() argument
482 if ((sconfig->dst_addr_width == DMA_SLAVE_BUSWIDTH_UNDEFINED) || in sanitize_config()
483 !sconfig->dst_maxburst) in sanitize_config()
486 if (sconfig->src_addr_width == DMA_SLAVE_BUSWIDTH_UNDEFINED) in sanitize_config()
487 sconfig->src_addr_width = sconfig->dst_addr_width; in sanitize_config()
489 if (!sconfig->src_maxburst) in sanitize_config()
490 sconfig->src_maxburst = sconfig->dst_maxburst; in sanitize_config()
495 if ((sconfig->src_addr_width == DMA_SLAVE_BUSWIDTH_UNDEFINED) || in sanitize_config()
496 !sconfig->src_maxburst) in sanitize_config()
499 if (sconfig->dst_addr_width == DMA_SLAVE_BUSWIDTH_UNDEFINED) in sanitize_config()
[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 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 …]
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()
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 …]
H A Dtegra210-adma.c169 struct dma_slave_config sconfig; member
254 struct dma_slave_config *sconfig) in tegra_adma_slave_config() argument
258 memcpy(&tdc->sconfig, sconfig, sizeof(*sconfig)); in tegra_adma_slave_config()
668 burst_size = tdc->sconfig.dst_maxburst; in tegra_adma_set_xfer_params()
679 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/drivers/soundwire/
H A Dintel_ace2x.c26 struct sdw_stream_config sconfig = {0}; in sdw_slave_bpt_stream_add() local
31 sconfig.frame_rate = 16000; in sdw_slave_bpt_stream_add()
32 sconfig.ch_count = 1; in sdw_slave_bpt_stream_add()
33 sconfig.bps = 32; /* this is required for BPT/BRA */ in sdw_slave_bpt_stream_add()
34 sconfig.direction = SDW_DATA_DIR_RX; in sdw_slave_bpt_stream_add()
35 sconfig.type = SDW_STREAM_BPT; in sdw_slave_bpt_stream_add()
40 ret = sdw_stream_add_slave(slave, &sconfig, &pconfig, 1, stream); in sdw_slave_bpt_stream_add()
56 struct sdw_stream_config sconfig; in intel_ace2x_bpt_open_stream() local
123 sconfig.direction = dir; in intel_ace2x_bpt_open_stream()
124 sconfig.ch_count = 1; in intel_ace2x_bpt_open_stream()
[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.c698 struct sdw_stream_config sconfig; in amd_sdw_hw_params() local
713 sconfig.direction = dir; in amd_sdw_hw_params()
714 sconfig.ch_count = ch; in amd_sdw_hw_params()
715 sconfig.frame_rate = params_rate(params); in amd_sdw_hw_params()
716 sconfig.type = dai_runtime->stream_type; in amd_sdw_hw_params()
718 sconfig.bps = snd_pcm_format_width(params_format(params)); in amd_sdw_hw_params()
728 ret = sdw_stream_add_master(&amd_manager->bus, &sconfig, in amd_sdw_hw_params()
H A Dqcom.c1225 struct sdw_stream_config sconfig; in qcom_swrm_stream_alloc_ports() local
1239 sconfig.direction = SDW_DATA_DIR_TX; in qcom_swrm_stream_alloc_ports()
1241 sconfig.direction = SDW_DATA_DIR_RX; in qcom_swrm_stream_alloc_ports()
1244 sconfig.ch_count = 1; in qcom_swrm_stream_alloc_ports()
1245 sconfig.frame_rate = params_rate(params); in qcom_swrm_stream_alloc_ports()
1246 sconfig.type = stream->type; in qcom_swrm_stream_alloc_ports()
1247 sconfig.bps = 1; in qcom_swrm_stream_alloc_ports()
1286 sdw_stream_add_master(&ctrl->bus, &sconfig, pconfig, in qcom_swrm_stream_alloc_ports()
/linux/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.c93 wcd->sconfig.ch_count = 1; in wcd938x_sdw_hw_params()
102 wcd->sconfig.ch_count++; in wcd938x_sdw_hw_params()
108 wcd->sconfig.bps = 1; in wcd938x_sdw_hw_params()
109 wcd->sconfig.frame_rate = params_rate(params); in wcd938x_sdw_hw_params()
111 wcd->sconfig.direction = SDW_DATA_DIR_TX; in wcd938x_sdw_hw_params()
113 wcd->sconfig.direction = SDW_DATA_DIR_RX; in wcd938x_sdw_hw_params()
115 wcd->sconfig.type = SDW_STREAM_PCM; in wcd938x_sdw_hw_params()
117 return sdw_stream_add_slave(wcd->sdev, &wcd->sconfig, in wcd938x_sdw_hw_params()
H A Dcs35l56.c583 struct sdw_stream_config sconfig; in cs35l56_sdw_dai_hw_params()
595 memset(&sconfig, 0, sizeof(sconfig)); in cs35l56_sdw_dai_hw_params()
598 sconfig.frame_rate = params_rate(params); in cs35l56_sdw_dai_hw_params()
599 sconfig.bps = snd_pcm_format_width(params_format(params)); in cs35l56_sdw_dai_hw_params()
602 sconfig.direction = SDW_DATA_DIR_RX; in cs35l56_sdw_dai_hw_params()
606 sconfig.direction = SDW_DATA_DIR_TX; in cs35l56_sdw_dai_hw_free()
612 sconfig.ch_count = params_channels(params); in cs35l56_sdw_dai_hw_free()
613 pconfig.ch_mask = GENMASK(sconfig.ch_count - 1, 0); in cs35l56_sdw_dai_hw_free()
615 sconfig in cs35l56_sdw_dai_hw_free()
561 struct sdw_stream_config sconfig; cs35l56_sdw_dai_hw_params() local
[all...]
H A Dwsa881x.c671 struct sdw_stream_config sconfig; member
990 return sdw_stream_add_slave(wsa881x->slave, &wsa881x->sconfig, in wsa881x_hw_params()
1143 wsa881x->sconfig.ch_count = 1; in wsa881x_probe()
1144 wsa881x->sconfig.bps = 1; in wsa881x_probe()
1145 wsa881x->sconfig.frame_rate = 48000; in wsa881x_probe()
1146 wsa881x->sconfig.direction = SDW_DATA_DIR_RX; in wsa881x_probe()
1147 wsa881x->sconfig.type = SDW_STREAM_PDM; in wsa881x_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()
2082 wsa884x->sconfig.ch_count = 1; in wsa884x_probe()
2083 wsa884x->sconfig.bps = 1; in wsa884x_probe()
2084 wsa884x->sconfig.direction = SDW_DATA_DIR_RX; in wsa884x_probe()
2085 wsa884x->sconfig.type = SDW_STREAM_PDM; in wsa884x_probe()
H A Dwcd9335.c294 struct slim_stream_config sconfig; member
1720 struct slim_stream_config *cfg = &dai_data->sconfig; in wcd9335_slim_set_hw_params()
1890 wcd->dai[dai->id].sconfig.bps = params_width(params); in wcd9335_hw_params()
1937 wcd->dai[dai->id].sconfig.bps = params_width(params); in wcd9335_hw_params()
1951 wcd->dai[dai->id].sconfig.rate = params_rate(params); in wcd9335_hw_params()
1972 cfg = &dai_data->sconfig; in wcd9335_trigger()
2976 kfree(dai->sconfig.chs); in wcd9335_codec_enable_slim()
/linux/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 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 …]
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()