/kernel/linux/linux-5.10/drivers/dma/ |
D | sun4i-dma.c | 386 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 …]
|
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() 357 ? xc->sconfig.src_addr : sg_dma_address(sg); in uniphier_xdmac_prep_slave_sg() 359 ? 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()
|
D | at_hdmac.c | 1068 struct dma_slave_config *sconfig = &atchan->dma_sconfig; in atc_prep_slave_sg() local 1090 ctrla = ATC_SCSIZE(sconfig->src_maxburst) in atc_prep_slave_sg() 1091 | ATC_DCSIZE(sconfig->dst_maxburst); in atc_prep_slave_sg() 1096 reg_width = convert_buswidth(sconfig->dst_addr_width); in atc_prep_slave_sg() 1102 reg = sconfig->dst_addr; in atc_prep_slave_sg() 1136 reg_width = convert_buswidth(sconfig->src_addr_width); in atc_prep_slave_sg() 1143 reg = sconfig->src_addr; in atc_prep_slave_sg() 1230 struct dma_slave_config *sconfig = &atchan->dma_sconfig; in atc_dma_cyclic_fill_desc() local 1234 ctrla = ATC_SCSIZE(sconfig->src_maxburst) in atc_dma_cyclic_fill_desc() 1235 | ATC_DCSIZE(sconfig->dst_maxburst) in atc_dma_cyclic_fill_desc() [all …]
|
D | sun6i-dma.c | 579 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 …]
|
D | at_xdmac.c | 199 struct dma_slave_config sconfig; member 555 csize = ffs(atchan->sconfig.src_maxburst) - 1; in at_xdmac_compute_chan_conf() 561 dwidth = ffs(atchan->sconfig.src_addr_width) - 1; in at_xdmac_compute_chan_conf() 578 csize = ffs(atchan->sconfig.dst_maxburst) - 1; in at_xdmac_compute_chan_conf() 584 dwidth = ffs(atchan->sconfig.dst_addr_width) - 1; in at_xdmac_compute_chan_conf() 602 static int at_xdmac_check_slave_config(struct dma_slave_config *sconfig) in at_xdmac_check_slave_config() argument 604 if ((sconfig->src_maxburst > AT_XDMAC_MAX_CSIZE) in at_xdmac_check_slave_config() 605 || (sconfig->dst_maxburst > AT_XDMAC_MAX_CSIZE)) in at_xdmac_check_slave_config() 608 if ((sconfig->src_addr_width > AT_XDMAC_MAX_DWIDTH) in at_xdmac_check_slave_config() 609 || (sconfig->dst_addr_width > AT_XDMAC_MAX_DWIDTH)) in at_xdmac_check_slave_config() [all …]
|
D | owl-dma.c | 384 struct dma_slave_config *sconfig, in owl_dma_cfg_lli() argument 408 if (sconfig->dst_addr_width == DMA_SLAVE_BUSWIDTH_1_BYTE) in owl_dma_cfg_lli() 421 if (sconfig->src_addr_width == DMA_SLAVE_BUSWIDTH_1_BYTE) in owl_dma_cfg_lli() 923 struct dma_slave_config *sconfig = &vchan->cfg; in owl_dma_prep_slave_sg() local 955 dst = sconfig->dst_addr; in owl_dma_prep_slave_sg() 957 src = sconfig->src_addr; in owl_dma_prep_slave_sg() 961 ret = owl_dma_cfg_lli(vchan, lli, src, dst, len, dir, sconfig, in owl_dma_prep_slave_sg() 988 struct dma_slave_config *sconfig = &vchan->cfg; in owl_prep_dma_cyclic() local 1011 dst = sconfig->dst_addr; in owl_prep_dma_cyclic() 1013 src = sconfig->src_addr; in owl_prep_dma_cyclic() [all …]
|
D | tegra210-adma.c | 138 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()
|
D | tegra20-apb-dma.c | 336 struct dma_slave_config *sconfig) in tegra_dma_slave_config() argument 345 memcpy(&tdc->dma_sconfig, sconfig, sizeof(*sconfig)); in tegra_dma_slave_config() 347 sconfig->device_fc) { in tegra_dma_slave_config() 348 if (sconfig->slave_id > TEGRA_APBDMA_CSR_REQ_SEL_MASK) in tegra_dma_slave_config() 350 tdc->slave_id = sconfig->slave_id; in tegra_dma_slave_config()
|
/kernel/linux/linux-5.10/drivers/dma/dw/ |
D | idma32.c | 75 struct dma_slave_config *sconfig = &dwc->dma_sconfig; in idma32_prepare_ctllo() local 76 u8 smsize = (dwc->direction == DMA_DEV_TO_MEM) ? sconfig->src_maxburst : 0; in idma32_prepare_ctllo() 77 u8 dmsize = (dwc->direction == DMA_MEM_TO_DEV) ? sconfig->dst_maxburst : 0; in idma32_prepare_ctllo()
|
D | dw.c | 69 struct dma_slave_config *sconfig = &dwc->dma_sconfig; in dw_dma_prepare_ctllo() local 70 u8 smsize = (dwc->direction == DMA_DEV_TO_MEM) ? sconfig->src_maxburst : 0; in dw_dma_prepare_ctllo() 71 u8 dmsize = (dwc->direction == DMA_MEM_TO_DEV) ? sconfig->dst_maxburst : 0; in dw_dma_prepare_ctllo()
|
D | core.c | 623 struct dma_slave_config *sconfig = &dwc->dma_sconfig; in dwc_prep_slave_sg() local 648 reg_width = __ffs(sconfig->dst_addr_width); in dwc_prep_slave_sg() 649 reg = sconfig->dst_addr; in dwc_prep_slave_sg() 655 ctllo |= sconfig->device_fc ? DWC_CTLL_FC(DW_DMA_FC_P_M2P) : in dwc_prep_slave_sg() 698 reg_width = __ffs(sconfig->src_addr_width); in dwc_prep_slave_sg() 699 reg = sconfig->src_addr; in dwc_prep_slave_sg() 705 ctllo |= sconfig->device_fc ? DWC_CTLL_FC(DW_DMA_FC_P_P2M) : in dwc_prep_slave_sg() 786 static int dwc_config(struct dma_chan *chan, struct dma_slave_config *sconfig) in dwc_config() argument 791 memcpy(&dwc->dma_sconfig, sconfig, sizeof(*sconfig)); in dwc_config()
|
/kernel/linux/linux-5.10/drivers/soundwire/ |
D | qcom.c | 534 struct sdw_stream_config sconfig; in qcom_swrm_stream_alloc_ports() local 569 sconfig.direction = SDW_DATA_DIR_TX; in qcom_swrm_stream_alloc_ports() 571 sconfig.direction = SDW_DATA_DIR_RX; in qcom_swrm_stream_alloc_ports() 574 sconfig.ch_count = 1; in qcom_swrm_stream_alloc_ports() 575 sconfig.frame_rate = params_rate(params); in qcom_swrm_stream_alloc_ports() 576 sconfig.type = stream->type; in qcom_swrm_stream_alloc_ports() 577 sconfig.bps = 1; in qcom_swrm_stream_alloc_ports() 578 sdw_stream_add_master(&ctrl->bus, &sconfig, pconfig, in qcom_swrm_stream_alloc_ports()
|
D | intel.c | 914 struct sdw_stream_config sconfig; in intel_hw_params() local 960 sconfig.direction = dir; in intel_hw_params() 961 sconfig.ch_count = ch; in intel_hw_params() 962 sconfig.frame_rate = params_rate(params); in intel_hw_params() 963 sconfig.type = dma->stream_type; in intel_hw_params() 966 sconfig.frame_rate *= 50; in intel_hw_params() 967 sconfig.bps = 1; in intel_hw_params() 969 sconfig.bps = snd_pcm_format_width(params_format(params)); in intel_hw_params() 982 ret = sdw_stream_add_master(&cdns->bus, &sconfig, in intel_hw_params()
|
/kernel/linux/linux-5.10/sound/soc/codecs/ |
D | wsa881x.c | 676 struct sdw_stream_config sconfig; member 986 return sdw_stream_add_slave(wsa881x->slave, &wsa881x->sconfig, in wsa881x_hw_params() 1119 wsa881x->sconfig.ch_count = 1; in wsa881x_probe() 1120 wsa881x->sconfig.bps = 1; in wsa881x_probe() 1121 wsa881x->sconfig.frame_rate = 48000; in wsa881x_probe() 1122 wsa881x->sconfig.direction = SDW_DATA_DIR_RX; in wsa881x_probe() 1123 wsa881x->sconfig.type = SDW_STREAM_PDM; in wsa881x_probe()
|
D | wcd9335.c | 300 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()
|
D | wcd934x.c | 491 struct slim_stream_config sconfig; member 1660 struct slim_stream_config *cfg = &dai_data->sconfig; in wcd934x_slim_set_hw_params() 1753 wcd->dai[dai->id].sconfig.bps = params_width(params); in wcd934x_hw_params() 1800 wcd->dai[dai->id].sconfig.bps = params_width(params); in wcd934x_hw_params() 1814 wcd->dai[dai->id].sconfig.rate = params_rate(params); in wcd934x_hw_params() 1829 kfree(dai_data->sconfig.chs); in wcd934x_hw_free() 1849 cfg = &dai_data->sconfig; in wcd934x_trigger()
|