/linux-master/drivers/dma/ |
H A D | sun4i-dma.c | 397 static int sanitize_config(struct dma_slave_config *sconfig, argument 402 if ((sconfig->dst_addr_width == DMA_SLAVE_BUSWIDTH_UNDEFINED) || 403 !sconfig->dst_maxburst) 406 if (sconfig->src_addr_width == DMA_SLAVE_BUSWIDTH_UNDEFINED) 407 sconfig->src_addr_width = sconfig->dst_addr_width; 409 if (!sconfig->src_maxburst) 410 sconfig->src_maxburst = sconfig->dst_maxburst; 415 if ((sconfig 443 generate_ndma_promise(struct dma_chan *chan, dma_addr_t src, dma_addr_t dest, size_t len, struct dma_slave_config *sconfig, enum dma_transfer_direction direction) argument 510 generate_ddma_promise(struct dma_chan *chan, dma_addr_t src, dma_addr_t dest, size_t len, struct dma_slave_config *sconfig) argument 626 struct dma_slave_config *sconfig = &vchan->cfg; local 677 struct dma_slave_config *sconfig = &vchan->cfg; local 797 struct dma_slave_config *sconfig = &vchan->cfg; local [all...] |
H A D | ls2x-apb-dma.c | 121 * @sconfig: configuration for slave transfers, passed via .device_config 128 struct dma_slave_config sconfig; member in struct:ls2x_dma_chan 223 if ((lchan->sconfig.src_addr_width & LDMA_SLAVE_BUSWIDTHS) && 224 (lchan->sconfig.dst_addr_width & LDMA_SLAVE_BUSWIDTHS)) 227 if (lchan->sconfig.direction == DMA_MEM_TO_DEV) { 228 maxburst = lchan->sconfig.dst_maxburst; 229 buswidth = lchan->sconfig.dst_addr_width; 231 maxburst = lchan->sconfig.src_maxburst; 232 buswidth = lchan->sconfig.src_addr_width; 247 ldma_sg->hw->apb_addr = lchan->sconfig [all...] |
H A D | uniphier-xdmac.c | 91 struct dma_slave_config sconfig; member in struct:uniphier_xdmac_chan 151 buswidth = xc->sconfig.src_addr_width; 160 buswidth = xc->sconfig.dst_addr_width; 336 buswidth = xc->sconfig.src_addr_width; 337 maxburst = xc->sconfig.src_maxburst; 339 buswidth = xc->sconfig.dst_addr_width; 340 maxburst = xc->sconfig.dst_maxburst; 358 ? xc->sconfig.src_addr : sg_dma_address(sg); 360 ? xc->sconfig.dst_addr : sg_dma_address(sg); 400 memcpy(&xc->sconfig, confi [all...] |
H A D | at_hdmac.c | 304 * Fix sconfig's burst size according to at_hdmac. We need to convert them as: 318 * Fix sconfig's bus width according to at_hdmac. 1256 struct dma_slave_config *sconfig = &atchan->dma_sconfig; local 1282 ctrla = FIELD_PREP(ATC_SCSIZE, sconfig->src_maxburst) | 1283 FIELD_PREP(ATC_DCSIZE, sconfig->dst_maxburst); 1288 reg_width = convert_buswidth(sconfig->dst_addr_width); 1296 reg = sconfig->dst_addr; 1336 reg_width = convert_buswidth(sconfig->src_addr_width); 1345 reg = sconfig->src_addr; 1433 struct dma_slave_config *sconfig local 1499 struct dma_slave_config *sconfig = &atchan->dma_sconfig; local 1559 atc_config(struct dma_chan *chan, struct dma_slave_config *sconfig) argument [all...] |
H A D | sun6i-dma.c | 586 struct dma_slave_config *sconfig, 594 src_addr_width = sconfig->src_addr_width; 595 dst_addr_width = sconfig->dst_addr_width; 596 src_maxburst = sconfig->src_maxburst; 597 dst_maxburst = sconfig->dst_maxburst; 707 struct dma_slave_config *sconfig = &vchan->cfg; local 718 ret = set_config(sdev, sconfig, dir, &lli_cfg); 739 sconfig->dst_addr); 747 &sconfig->dst_addr, &sg_dma_address(sg), 752 sconfig 585 set_config(struct sun6i_dma_dev *sdev, struct dma_slave_config *sconfig, enum dma_transfer_direction direction, u32 *p_cfg) argument 793 struct dma_slave_config *sconfig = &vchan->cfg; local [all...] |
H A D | owl-dma.c | 385 struct dma_slave_config *sconfig, 409 if (sconfig->dst_addr_width == DMA_SLAVE_BUSWIDTH_1_BYTE) 422 if (sconfig->src_addr_width == DMA_SLAVE_BUSWIDTH_1_BYTE) 924 struct dma_slave_config *sconfig = &vchan->cfg; local 956 dst = sconfig->dst_addr; 958 src = sconfig->src_addr; 962 ret = owl_dma_cfg_lli(vchan, lli, src, dst, len, dir, sconfig, 989 struct dma_slave_config *sconfig = &vchan->cfg; local 1012 dst = sconfig->dst_addr; 1014 src = sconfig 381 owl_dma_cfg_lli(struct owl_dma_vchan *vchan, struct owl_dma_lli *lli, dma_addr_t src, dma_addr_t dst, u32 len, enum dma_transfer_direction dir, struct dma_slave_config *sconfig, bool is_cyclic) argument [all...] |
H A D | at_xdmac.c | 232 struct dma_slave_config sconfig; member in struct:at_xdmac_chan 684 csize = ffs(atchan->sconfig.src_maxburst) - 1; 690 dwidth = ffs(atchan->sconfig.src_addr_width) - 1; 709 csize = ffs(atchan->sconfig.dst_maxburst) - 1; 715 dwidth = ffs(atchan->sconfig.dst_addr_width) - 1; 733 static int at_xdmac_check_slave_config(struct dma_slave_config *sconfig) argument 735 if ((sconfig->src_maxburst > AT_XDMAC_MAX_CSIZE) 736 || (sconfig->dst_maxburst > AT_XDMAC_MAX_CSIZE)) 739 if ((sconfig->src_addr_width > AT_XDMAC_MAX_DWIDTH) 740 || (sconfig 746 at_xdmac_set_slave_config(struct dma_chan *chan, struct dma_slave_config *sconfig) argument [all...] |
H A D | tegra210-adma.c | 136 struct dma_slave_config sconfig; member in struct:tegra_adma_chan 211 struct dma_slave_config *sconfig) 215 memcpy(&tdc->sconfig, sconfig, sizeof(*sconfig)); 571 burst_size = tdc->sconfig.dst_maxburst; 582 burst_size = tdc->sconfig.src_maxburst; 210 tegra_adma_slave_config(struct dma_chan *dc, struct dma_slave_config *sconfig) argument
|
H A D | tegra186-gpc-dma.c | 364 struct dma_slave_config *sconfig) 368 memcpy(&tdc->dma_sconfig, sconfig, sizeof(*sconfig)); 363 tegra_dma_slave_config(struct dma_chan *dc, struct dma_slave_config *sconfig) argument
|
H A D | tegra20-apb-dma.c | 330 struct dma_slave_config *sconfig) 339 memcpy(&tdc->dma_sconfig, sconfig, sizeof(*sconfig)); 329 tegra_dma_slave_config(struct dma_chan *dc, struct dma_slave_config *sconfig) argument
|
/linux-master/sound/soc/codecs/ |
H A D | cs42l43-sdw.c | 27 struct sdw_stream_config sconfig = {0}; local 34 snd_sdw_params_to_config(substream, params, &sconfig, &pconfig); 37 ret = sdw_stream_add_slave(sdw, &sconfig, &pconfig, 1, sdw_stream);
|
H A D | cs35l56.c | 706 struct sdw_stream_config sconfig; local 718 memset(&sconfig, 0, sizeof(sconfig)); 721 sconfig.frame_rate = params_rate(params); 722 sconfig.bps = snd_pcm_format_width(params_format(params)); 725 sconfig.direction = SDW_DATA_DIR_RX; 729 sconfig.direction = SDW_DATA_DIR_TX; 735 sconfig.ch_count = params_channels(params); 736 pconfig.ch_mask = GENMASK(sconfig.ch_count - 1, 0); 738 sconfig [all...] |
H A D | wcd938x-sdw.c | 111 wcd->sconfig.ch_count = 1; 120 wcd->sconfig.ch_count++; 126 wcd->sconfig.bps = 1; 127 wcd->sconfig.frame_rate = params_rate(params); 129 wcd->sconfig.direction = SDW_DATA_DIR_TX; 131 wcd->sconfig.direction = SDW_DATA_DIR_RX; 133 wcd->sconfig.type = SDW_STREAM_PCM; 135 return sdw_stream_add_slave(wcd->sdev, &wcd->sconfig,
|
H A D | wcd939x-sdw.c | 153 wcd->sconfig.ch_count = 1; 162 wcd->sconfig.ch_count++; 168 wcd->sconfig.bps = 1; 169 wcd->sconfig.frame_rate = params_rate(params); 171 wcd->sconfig.direction = SDW_DATA_DIR_TX; 173 wcd->sconfig.direction = SDW_DATA_DIR_RX; 175 wcd->sconfig.type = SDW_STREAM_PCM; 177 return sdw_stream_add_slave(wcd->sdev, &wcd->sconfig, &port_config[0],
|
H A D | wsa881x.c | 674 struct sdw_stream_config sconfig; member in struct:wsa881x_priv 996 return sdw_stream_add_slave(wsa881x->slave, &wsa881x->sconfig, 1150 wsa881x->sconfig.ch_count = 1; 1151 wsa881x->sconfig.bps = 1; 1152 wsa881x->sconfig.frame_rate = 48000; 1153 wsa881x->sconfig.direction = SDW_DATA_DIR_RX; 1154 wsa881x->sconfig.type = SDW_STREAM_PDM;
|
H A D | wsa883x.c | 436 struct sdw_stream_config sconfig; member in struct:wsa883x_priv 1292 wsa883x->sconfig.frame_rate = params_rate(params); 1294 return sdw_stream_add_slave(wsa883x->slave, &wsa883x->sconfig, 1397 wsa883x->sconfig.ch_count = 1; 1398 wsa883x->sconfig.bps = 1; 1399 wsa883x->sconfig.direction = SDW_DATA_DIR_RX; 1400 wsa883x->sconfig.type = SDW_STREAM_PDM;
|
H A D | wsa884x.c | 699 struct sdw_stream_config sconfig; member in struct:wsa884x_priv 1729 wsa884x->sconfig.frame_rate = params_rate(params); 1731 return sdw_stream_add_slave(wsa884x->slave, &wsa884x->sconfig, 1885 wsa884x->sconfig.ch_count = 1; 1886 wsa884x->sconfig.bps = 1; 1887 wsa884x->sconfig.direction = SDW_DATA_DIR_RX; 1888 wsa884x->sconfig.type = SDW_STREAM_PDM;
|
H A D | wcd9335.c | 291 struct slim_stream_config sconfig; member in struct:wcd_slim_codec_dai_data 1716 struct slim_stream_config *cfg = &dai_data->sconfig; 1886 wcd->dai[dai->id].sconfig.bps = params_width(params); 1933 wcd->dai[dai->id].sconfig.bps = params_width(params); 1947 wcd->dai[dai->id].sconfig.rate = params_rate(params); 1968 cfg = &dai_data->sconfig; 3023 kfree(dai->sconfig.chs);
|
/linux-master/drivers/dma/dw/ |
H A D | dw.c | 69 struct dma_slave_config *sconfig = &dwc->dma_sconfig; local 70 u8 smsize = (dwc->direction == DMA_DEV_TO_MEM) ? sconfig->src_maxburst : 0; 71 u8 dmsize = (dwc->direction == DMA_MEM_TO_DEV) ? sconfig->dst_maxburst : 0;
|
H A D | idma32.c | 204 struct dma_slave_config *sconfig = &dwc->dma_sconfig; local 205 u8 smsize = (dwc->direction == DMA_DEV_TO_MEM) ? sconfig->src_maxburst : 0; 206 u8 dmsize = (dwc->direction == DMA_MEM_TO_DEV) ? sconfig->dst_maxburst : 0;
|
H A D | core.c | 620 struct dma_slave_config *sconfig = &dwc->dma_sconfig; local 645 reg_width = __ffs(sconfig->dst_addr_width); 646 reg = sconfig->dst_addr; 652 ctllo |= sconfig->device_fc ? DWC_CTLL_FC(DW_DMA_FC_P_M2P) : 695 reg_width = __ffs(sconfig->src_addr_width); 696 reg = sconfig->src_addr; 702 ctllo |= sconfig->device_fc ? DWC_CTLL_FC(DW_DMA_FC_P_P2M) : 783 static int dwc_config(struct dma_chan *chan, struct dma_slave_config *sconfig) argument 788 memcpy(&dwc->dma_sconfig, sconfig, sizeof(*sconfig)); [all...] |
/linux-master/drivers/soundwire/ |
H A D | intel_ace2x.c | 249 struct sdw_stream_config sconfig; local 287 sconfig.direction = dir; 288 sconfig.ch_count = ch; 289 sconfig.frame_rate = params_rate(params); 290 sconfig.type = dai_runtime->stream_type; 292 sconfig.bps = snd_pcm_format_width(params_format(params)); 304 ret = sdw_stream_add_master(&cdns->bus, &sconfig,
|
H A D | intel.c | 679 struct sdw_stream_config sconfig; local 718 sconfig.direction = dir; 719 sconfig.ch_count = ch; 720 sconfig.frame_rate = params_rate(params); 721 sconfig.type = dai_runtime->stream_type; 723 sconfig.bps = snd_pcm_format_width(params_format(params)); 735 ret = sdw_stream_add_master(&cdns->bus, &sconfig,
|
H A D | amd_manager.c | 603 struct sdw_stream_config sconfig; local 619 sconfig.direction = dir; 620 sconfig.ch_count = ch; 621 sconfig.frame_rate = params_rate(params); 622 sconfig.type = dai_runtime->stream_type; 624 sconfig.bps = snd_pcm_format_width(params_format(params)); 635 ret = sdw_stream_add_master(&amd_manager->bus, &sconfig,
|
H A D | qcom.c | 1154 struct sdw_stream_config sconfig; local 1164 sconfig.direction = SDW_DATA_DIR_TX; 1166 sconfig.direction = SDW_DATA_DIR_RX; 1169 sconfig.ch_count = 1; 1170 sconfig.frame_rate = params_rate(params); 1171 sconfig.type = stream->type; 1172 sconfig.bps = 1; 1207 sdw_stream_add_master(&ctrl->bus, &sconfig, pconfig,
|