| /linux/drivers/dma/ |
| H A D | sun4i-dma.c | 477 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 D | uniphier-xdmac.c | 91 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 D | sun6i-dma.c | 603 struct dma_slave_config *sconfig, in set_config() argument 611 src_addr_width = sconfig->src_addr_width; in set_config() 612 dst_addr_width = sconfig->dst_addr_width; in set_config() 613 src_maxburst = sconfig->src_maxburst; in set_config() 614 dst_maxburst = sconfig->dst_maxburst; in set_config() 722 struct dma_slave_config *sconfig = &vchan->cfg; in sun6i_dma_prep_slave_sg() local 733 ret = set_config(sdev, sconfig, dir, &lli_cfg); in sun6i_dma_prep_slave_sg() 754 sconfig->dst_addr); in sun6i_dma_prep_slave_sg() 762 &sconfig->dst_addr, &sg_dma_address(sg), in sun6i_dma_prep_slave_sg() 767 sconfig->src_addr, in sun6i_dma_prep_slave_sg() [all …]
|
| H A D | owl-dma.c | 385 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 D | at_hdmac.c | 1256 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 D | tegra210-adma.c | 169 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() 675 burst_size = tdc->sconfig.dst_maxburst; in tegra_adma_set_xfer_params() 686 burst_size = tdc->sconfig.src_maxburst; in tegra_adma_set_xfer_params()
|
| H A D | tegra186-gpc-dma.c | 365 struct dma_slave_config *sconfig) in tegra_dma_slave_config() argument 369 memcpy(&tdc->dma_sconfig, sconfig, sizeof(*sconfig)); in tegra_dma_slave_config()
|
| H A D | tegra20-apb-dma.c | 330 struct dma_slave_config *sconfig) in tegra_dma_slave_config() argument 339 memcpy(&tdc->dma_sconfig, sconfig, sizeof(*sconfig)); in tegra_dma_slave_config()
|
| /linux/sound/soc/codecs/ |
| H A D | cs42l43-sdw.c | 27 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 D | wcd938x-sdw.c | 93 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 D | wsa881x.c | 671 struct sdw_stream_config sconfig; member 996 return sdw_stream_add_slave(wsa881x->slave, &wsa881x->sconfig, in wsa881x_hw_params() 1152 wsa881x->sconfig.ch_count = 1; in wsa881x_probe() 1153 wsa881x->sconfig.bps = 1; in wsa881x_probe() 1154 wsa881x->sconfig.frame_rate = 48000; in wsa881x_probe() 1155 wsa881x->sconfig.direction = SDW_DATA_DIR_RX; in wsa881x_probe() 1156 wsa881x->sconfig.type = SDW_STREAM_PDM; in wsa881x_probe()
|
| H A D | cs35l56.c | 593 struct sdw_stream_config sconfig; in cs35l56_sdw_dai_hw_params() local 605 memset(&sconfig, 0, sizeof(sconfig)); in cs35l56_sdw_dai_hw_params() 608 sconfig.frame_rate = params_rate(params); in cs35l56_sdw_dai_hw_params() 609 sconfig.bps = snd_pcm_format_width(params_format(params)); in cs35l56_sdw_dai_hw_params() 612 sconfig.direction = SDW_DATA_DIR_RX; in cs35l56_sdw_dai_hw_params() 616 sconfig.direction = SDW_DATA_DIR_TX; in cs35l56_sdw_dai_hw_params() 622 sconfig.ch_count = params_channels(params); in cs35l56_sdw_dai_hw_params() 623 pconfig.ch_mask = GENMASK(sconfig.ch_count - 1, 0); in cs35l56_sdw_dai_hw_params() 625 sconfig.ch_count = hweight32(pconfig.ch_mask); in cs35l56_sdw_dai_hw_params() 628 ret = sdw_stream_add_slave(cs35l56->sdw_peripheral, &sconfig, &pconfig, in cs35l56_sdw_dai_hw_params()
|
| H A D | wsa883x.c | 468 struct sdw_stream_config sconfig; member 1354 wsa883x->sconfig.frame_rate = params_rate(params); in wsa883x_hw_params() 1356 return sdw_stream_add_slave(wsa883x->slave, &wsa883x->sconfig, in wsa883x_hw_params() 1625 wsa883x->sconfig.ch_count = 1; in wsa883x_probe() 1626 wsa883x->sconfig.bps = 1; in wsa883x_probe() 1627 wsa883x->sconfig.direction = SDW_DATA_DIR_RX; in wsa883x_probe() 1628 wsa883x->sconfig.type = SDW_STREAM_PDM; in wsa883x_probe()
|
| H A D | wsa884x.c | 733 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 D | wcd9335.c | 294 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()
|
| H A D | wcd934x.c | 497 struct slim_stream_config sconfig; member 1698 struct slim_stream_config *cfg = &dai_data->sconfig; in wcd934x_slim_set_hw_params() 1791 wcd->dai[dai->id].sconfig.bps = params_width(params); in wcd934x_hw_params() 1838 wcd->dai[dai->id].sconfig.bps = params_width(params); in wcd934x_hw_params() 1852 wcd->dai[dai->id].sconfig.rate = params_rate(params); in wcd934x_hw_params() 1867 kfree(dai_data->sconfig.chs); in wcd934x_hw_free() 1887 cfg = &dai_data->sconfig; in wcd934x_trigger()
|
| /linux/drivers/dma/dw/ |
| H A D | dw.c | 78 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 D | core.c | 621 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 D | idma32.c | 209 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/drivers/soundwire/ |
| H A D | intel.c | 728 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() 779 ret = sdw_stream_add_master(&cdns->bus, &sconfig, in intel_hw_params()
|
| H A D | qcom.c | 1225 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/sdca/ |
| H A D | sdca_class_function.c | 135 struct sdw_stream_config sconfig = {0}; in class_function_sdw_add_peripheral() local 142 snd_sdw_params_to_config(substream, params, &sconfig, &pconfig); in class_function_sdw_add_peripheral() 154 ret = sdw_stream_add_slave(sdw, &sconfig, &pconfig, 1, sdw_stream); in class_function_sdw_add_peripheral()
|