Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/dma/
Dsun4i-dma.c386 static int sanitize_config(struct dma_slave_config *sconfig, in sanitize_config() argument
391 if ((sconfig->dst_addr_width == DMA_SLAVE_BUSWIDTH_UNDEFINED) || in sanitize_config()
392 !sconfig->dst_maxburst) in sanitize_config()
395 if (sconfig->src_addr_width == DMA_SLAVE_BUSWIDTH_UNDEFINED) in sanitize_config()
396 sconfig->src_addr_width = sconfig->dst_addr_width; in sanitize_config()
398 if (!sconfig->src_maxburst) in sanitize_config()
399 sconfig->src_maxburst = sconfig->dst_maxburst; in sanitize_config()
404 if ((sconfig->src_addr_width == DMA_SLAVE_BUSWIDTH_UNDEFINED) || in sanitize_config()
405 !sconfig->src_maxburst) in sanitize_config()
408 if (sconfig->dst_addr_width == DMA_SLAVE_BUSWIDTH_UNDEFINED) in sanitize_config()
[all …]
Dat_hdmac.c1070 struct dma_slave_config *sconfig = &atchan->dma_sconfig; in atc_prep_slave_sg() local
1092 ctrla = ATC_SCSIZE(sconfig->src_maxburst) in atc_prep_slave_sg()
1093 | ATC_DCSIZE(sconfig->dst_maxburst); in atc_prep_slave_sg()
1098 reg_width = convert_buswidth(sconfig->dst_addr_width); in atc_prep_slave_sg()
1104 reg = sconfig->dst_addr; in atc_prep_slave_sg()
1138 reg_width = convert_buswidth(sconfig->src_addr_width); in atc_prep_slave_sg()
1145 reg = sconfig->src_addr; in atc_prep_slave_sg()
1232 struct dma_slave_config *sconfig = &atchan->dma_sconfig; in atc_dma_cyclic_fill_desc() local
1236 ctrla = ATC_SCSIZE(sconfig->src_maxburst) in atc_dma_cyclic_fill_desc()
1237 | ATC_DCSIZE(sconfig->dst_maxburst) in atc_dma_cyclic_fill_desc()
[all …]
Dsun6i-dma.c579 struct dma_slave_config *sconfig, in set_config() argument
587 src_addr_width = sconfig->src_addr_width; in set_config()
588 dst_addr_width = sconfig->dst_addr_width; in set_config()
589 src_maxburst = sconfig->src_maxburst; in set_config()
590 dst_maxburst = sconfig->dst_maxburst; in set_config()
689 struct dma_slave_config *sconfig = &vchan->cfg; in sun6i_dma_prep_slave_sg() local
700 ret = set_config(sdev, sconfig, dir, &lli_cfg); in sun6i_dma_prep_slave_sg()
720 v_lli->dst = sconfig->dst_addr; in sun6i_dma_prep_slave_sg()
728 &sconfig->dst_addr, &sg_dma_address(sg), in sun6i_dma_prep_slave_sg()
732 v_lli->src = sconfig->src_addr; in sun6i_dma_prep_slave_sg()
[all …]
Dowl-dma.c365 struct dma_slave_config *sconfig, in owl_dma_cfg_lli() argument
389 if (sconfig->dst_addr_width == DMA_SLAVE_BUSWIDTH_1_BYTE) in owl_dma_cfg_lli()
402 if (sconfig->src_addr_width == DMA_SLAVE_BUSWIDTH_1_BYTE) in owl_dma_cfg_lli()
885 struct dma_slave_config *sconfig = &vchan->cfg; in owl_dma_prep_slave_sg() local
917 dst = sconfig->dst_addr; in owl_dma_prep_slave_sg()
919 src = sconfig->src_addr; in owl_dma_prep_slave_sg()
923 ret = owl_dma_cfg_lli(vchan, lli, src, dst, len, dir, sconfig, in owl_dma_prep_slave_sg()
950 struct dma_slave_config *sconfig = &vchan->cfg; in owl_prep_dma_cyclic() local
973 dst = sconfig->dst_addr; in owl_prep_dma_cyclic()
975 src = sconfig->src_addr; in owl_prep_dma_cyclic()
[all …]
Dat_xdmac.c198 struct dma_slave_config sconfig; member
557 csize = ffs(atchan->sconfig.src_maxburst) - 1; in at_xdmac_compute_chan_conf()
563 dwidth = ffs(atchan->sconfig.src_addr_width) - 1; in at_xdmac_compute_chan_conf()
580 csize = ffs(atchan->sconfig.dst_maxburst) - 1; in at_xdmac_compute_chan_conf()
586 dwidth = ffs(atchan->sconfig.dst_addr_width) - 1; in at_xdmac_compute_chan_conf()
604 static int at_xdmac_check_slave_config(struct dma_slave_config *sconfig) in at_xdmac_check_slave_config() argument
606 if ((sconfig->src_maxburst > AT_XDMAC_MAX_CSIZE) in at_xdmac_check_slave_config()
607 || (sconfig->dst_maxburst > AT_XDMAC_MAX_CSIZE)) in at_xdmac_check_slave_config()
610 if ((sconfig->src_addr_width > AT_XDMAC_MAX_DWIDTH) in at_xdmac_check_slave_config()
611 || (sconfig->dst_addr_width > AT_XDMAC_MAX_DWIDTH)) in at_xdmac_check_slave_config()
[all …]
Dtegra210-adma.c138 struct dma_slave_config sconfig; member
212 struct dma_slave_config *sconfig) in tegra_adma_slave_config() argument
216 memcpy(&tdc->sconfig, sconfig, sizeof(*sconfig)); in tegra_adma_slave_config()
572 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()
Dtegra20-apb-dma.c339 struct dma_slave_config *sconfig) in tegra_dma_slave_config() argument
348 memcpy(&tdc->dma_sconfig, sconfig, sizeof(*sconfig)); in tegra_dma_slave_config()
350 sconfig->device_fc) { in tegra_dma_slave_config()
351 if (sconfig->slave_id > TEGRA_APBDMA_CSR_REQ_SEL_MASK) in tegra_dma_slave_config()
353 tdc->slave_id = sconfig->slave_id; in tegra_dma_slave_config()
/Linux-v5.4/drivers/dma/dw/
Ddw.c69 struct dma_slave_config *sconfig = &dwc->dma_sconfig; in dw_dma_prepare_ctllo() local
71 u8 smsize = is_slave ? sconfig->src_maxburst : DW_DMA_MSIZE_16; in dw_dma_prepare_ctllo()
72 u8 dmsize = is_slave ? sconfig->dst_maxburst : DW_DMA_MSIZE_16; in dw_dma_prepare_ctllo()
Didma32.c75 struct dma_slave_config *sconfig = &dwc->dma_sconfig; in idma32_prepare_ctllo() local
77 u8 smsize = is_slave ? sconfig->src_maxburst : IDMA32_MSIZE_8; in idma32_prepare_ctllo()
78 u8 dmsize = is_slave ? sconfig->dst_maxburst : IDMA32_MSIZE_8; in idma32_prepare_ctllo()
Dcore.c628 struct dma_slave_config *sconfig = &dwc->dma_sconfig; in dwc_prep_slave_sg() local
653 reg_width = __ffs(sconfig->dst_addr_width); in dwc_prep_slave_sg()
654 reg = sconfig->dst_addr; in dwc_prep_slave_sg()
660 ctllo |= sconfig->device_fc ? DWC_CTLL_FC(DW_DMA_FC_P_M2P) : in dwc_prep_slave_sg()
703 reg_width = __ffs(sconfig->src_addr_width); in dwc_prep_slave_sg()
704 reg = sconfig->src_addr; in dwc_prep_slave_sg()
710 ctllo |= sconfig->device_fc ? DWC_CTLL_FC(DW_DMA_FC_P_P2M) : in dwc_prep_slave_sg()
787 static int dwc_config(struct dma_chan *chan, struct dma_slave_config *sconfig) in dwc_config() argument
792 memcpy(&dwc->dma_sconfig, sconfig, sizeof(*sconfig)); in dwc_config()
/Linux-v5.4/drivers/soundwire/
Dintel.c673 struct sdw_stream_config sconfig; in intel_hw_params() local
721 sconfig.direction = dir; in intel_hw_params()
722 sconfig.ch_count = ch; in intel_hw_params()
723 sconfig.frame_rate = params_rate(params); in intel_hw_params()
724 sconfig.type = dma->stream_type; in intel_hw_params()
727 sconfig.frame_rate *= 50; in intel_hw_params()
728 sconfig.bps = 1; in intel_hw_params()
730 sconfig.bps = snd_pcm_format_width(params_format(params)); in intel_hw_params()
745 ret = sdw_stream_add_master(&cdns->bus, &sconfig, in intel_hw_params()
/Linux-v5.4/sound/soc/codecs/
Dwcd9335.c300 struct slim_stream_config sconfig; member
1713 struct slim_stream_config *cfg = &dai_data->sconfig; in wcd9335_slim_set_hw_params()
1885 wcd->dai[dai->id].sconfig.bps = params_width(params); in wcd9335_hw_params()
1932 wcd->dai[dai->id].sconfig.bps = params_width(params); in wcd9335_hw_params()
1946 wcd->dai[dai->id].sconfig.rate = params_rate(params); in wcd9335_hw_params()
1967 cfg = &dai_data->sconfig; in wcd9335_trigger()
3031 kfree(dai->sconfig.chs); in wcd9335_codec_enable_slim()