| /drivers/dma/ |
| A D | sun4i-dma.c | 487 sconfig->src_addr_width = sconfig->dst_addr_width; in sanitize_config() 490 sconfig->src_maxburst = sconfig->dst_maxburst; in sanitize_config() 500 sconfig->dst_addr_width = sconfig->src_addr_width; in sanitize_config() 503 sconfig->dst_maxburst = sconfig->src_maxburst; in sanitize_config() 547 sconfig->src_maxburst, sconfig->dst_maxburst, in generate_ndma_promise() 548 sconfig->src_addr_width, sconfig->dst_addr_width); in generate_ndma_promise() 794 dest = sconfig->dst_addr; in sun4i_dma_prep_dma_cyclic() 800 src = sconfig->src_addr; in sun4i_dma_prep_dma_cyclic() 858 plength, sconfig); in sun4i_dma_prep_dma_cyclic() 951 sconfig); in sun4i_dma_prep_slave_sg() [all …]
|
| A D | loongson2-apb-dma.c | 128 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 …]
|
| 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()
|
| A D | sun6i-dma.c | 587 struct dma_slave_config *sconfig, in set_config() argument 595 src_addr_width = sconfig->src_addr_width; in set_config() 596 dst_addr_width = sconfig->dst_addr_width; in set_config() 597 src_maxburst = sconfig->src_maxburst; in set_config() 598 dst_maxburst = sconfig->dst_maxburst; in set_config() 740 sconfig->dst_addr); in sun6i_dma_prep_slave_sg() 748 &sconfig->dst_addr, &sg_dma_address(sg), in sun6i_dma_prep_slave_sg() 753 sconfig->src_addr, in sun6i_dma_prep_slave_sg() 762 &sg_dma_address(sg), &sconfig->src_addr, in sun6i_dma_prep_slave_sg() 825 sconfig->dst_addr); in sun6i_dma_prep_dma_cyclic() [all …]
|
| A D | at_hdmac.c | 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() 1446 lli->daddr = sconfig->dst_addr; in atc_dma_cyclic_fill_desc() 1458 lli->saddr = sconfig->src_addr; in atc_dma_cyclic_fill_desc() 1474 FIELD_PREP(ATC_DCSIZE, sconfig->dst_maxburst) | in atc_dma_cyclic_fill_desc() 1560 struct dma_slave_config *sconfig) in atc_config() argument [all …]
|
| 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 …]
|
| A D | at_xdmac.c | 232 struct dma_slave_config sconfig; member 684 csize = ffs(atchan->sconfig.src_maxburst) - 1; in at_xdmac_compute_chan_conf() 709 csize = ffs(atchan->sconfig.dst_maxburst) - 1; in at_xdmac_compute_chan_conf() 735 if ((sconfig->src_maxburst > AT_XDMAC_MAX_CSIZE) in at_xdmac_check_slave_config() 747 struct dma_slave_config *sconfig) in at_xdmac_set_slave_config() argument 751 if (at_xdmac_check_slave_config(sconfig)) { in at_xdmac_set_slave_config() 756 memcpy(&atchan->sconfig, sconfig, sizeof(atchan->sconfig)); in at_xdmac_set_slave_config() 818 desc->lld.mbr_sa = atchan->sconfig.src_addr; in at_xdmac_prep_slave_sg() 822 desc->lld.mbr_da = atchan->sconfig.dst_addr; in at_xdmac_prep_slave_sg() 911 desc->lld.mbr_sa = atchan->sconfig.src_addr; in at_xdmac_prep_dma_cyclic() [all …]
|
| 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() 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()
|
| 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()
|
| 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()
|
| /drivers/soundwire/ |
| A D | intel_ace2x.c | 31 sconfig.frame_rate = 16000; in sdw_slave_bpt_stream_add() 32 sconfig.ch_count = 1; 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() 54 struct sdw_stream_config sconfig; in intel_ace2x_bpt_open_stream() local 109 sconfig.direction = dir; in intel_ace2x_bpt_open_stream() 110 sconfig.ch_count = 1; in intel_ace2x_bpt_open_stream() 111 sconfig.frame_rate = 16000; in intel_ace2x_bpt_open_stream() 112 sconfig.type = SDW_STREAM_BPT; in intel_ace2x_bpt_open_stream() 668 sconfig.direction = dir; in intel_hw_params() [all …]
|
| 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() 780 ret = sdw_stream_add_master(&cdns->bus, &sconfig, in intel_hw_params()
|
| A D | amd_manager.c | 698 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()
|
| A D | qcom.c | 1162 struct sdw_stream_config sconfig; in qcom_swrm_stream_alloc_ports() local 1172 sconfig.direction = SDW_DATA_DIR_TX; in qcom_swrm_stream_alloc_ports() 1174 sconfig.direction = SDW_DATA_DIR_RX; in qcom_swrm_stream_alloc_ports() 1177 sconfig.ch_count = 1; in qcom_swrm_stream_alloc_ports() 1178 sconfig.frame_rate = params_rate(params); in qcom_swrm_stream_alloc_ports() 1179 sconfig.type = stream->type; in qcom_swrm_stream_alloc_ports() 1180 sconfig.bps = 1; in qcom_swrm_stream_alloc_ports() 1220 sdw_stream_add_master(&ctrl->bus, &sconfig, pconfig, in qcom_swrm_stream_alloc_ports()
|
| /drivers/dma/dw/ |
| 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()
|
| 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 …]
|
| 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()
|