Home
last modified time | relevance | path

Searched refs:dw (Results 1 – 25 of 365) sorted by relevance

12345678910>>...15

/linux-6.1.9/drivers/dma/dw-edma/
Ddw-edma-v0-core.c26 static inline struct dw_edma_v0_regs __iomem *__dw_regs(struct dw_edma *dw) in __dw_regs() argument
28 return dw->chip->reg_base; in __dw_regs()
31 #define SET_32(dw, name, value) \ argument
32 writel(value, &(__dw_regs(dw)->name))
34 #define GET_32(dw, name) \ argument
35 readl(&(__dw_regs(dw)->name))
37 #define SET_RW_32(dw, dir, name, value) \ argument
40 SET_32(dw, wr_##name, value); \
42 SET_32(dw, rd_##name, value); \
45 #define GET_RW_32(dw, dir, name) \ argument
[all …]
Ddw-edma-core.c66 struct dw_edma_chip *chip = desc->chan->dw->chip; in dw_edma_alloc_chunk()
367 if (chan->dw->chip->flags & DW_EDMA_CHIP_LOCAL) { in dw_edma_device_transfer()
621 struct dw_edma *dw = dw_irq->dw; in dw_edma_interrupt() local
627 total = dw->wr_ch_cnt; in dw_edma_interrupt()
631 total = dw->rd_ch_cnt; in dw_edma_interrupt()
632 off = dw->wr_ch_cnt; in dw_edma_interrupt()
636 val = dw_edma_v0_core_status_done_int(dw, write ? in dw_edma_interrupt()
641 struct dw_edma_chan *chan = &dw->chan[pos + off]; in dw_edma_interrupt()
646 val = dw_edma_v0_core_status_abort_int(dw, write ? in dw_edma_interrupt()
651 struct dw_edma_chan *chan = &dw->chan[pos + off]; in dw_edma_interrupt()
[all …]
Ddw-edma-v0-debugfs.c41 static struct dw_edma *dw; variable
57 if (dw->chip->mf == EDMA_MF_EDMA_LEGACY && in dw_edma_debugfs_u32_get()
64 for (ch = 0; ch < dw->wr_ch_cnt; ch++) in dw_edma_debugfs_u32_get()
70 for (ch = 0; ch < dw->rd_ch_cnt; ch++) in dw_edma_debugfs_u32_get()
82 raw_spin_lock_irqsave(&dw->lock, flags); in dw_edma_debugfs_u32_get()
87 raw_spin_unlock_irqrestore(&dw->lock, flags); in dw_edma_debugfs_u32_get()
176 if (dw->chip->mf == EDMA_MF_HDMA_COMPAT) { in dw_edma_debugfs_regs_wr()
182 for (i = 0; i < dw->wr_ch_cnt; i++) { in dw_edma_debugfs_regs_wr()
245 if (dw->chip->mf == EDMA_MF_HDMA_COMPAT) { in dw_edma_debugfs_regs_rd()
251 for (i = 0; i < dw->rd_ch_cnt; i++) { in dw_edma_debugfs_regs_rd()
[all …]
DMakefile3 obj-$(CONFIG_DW_EDMA) += dw-edma.o
4 dw-edma-$(CONFIG_DEBUG_FS) := dw-edma-v0-debugfs.o
5 dw-edma-objs := dw-edma-core.o \
6 dw-edma-v0-core.o $(dw-edma-y)
7 obj-$(CONFIG_DW_EDMA_PCIE) += dw-edma-pcie.o
/linux-6.1.9/drivers/misc/
Ddw-xdata-pcie.c73 static inline struct dw_xdata_regs __iomem *__dw_regs(struct dw_xdata *dw) in __dw_regs() argument
75 return dw->rg_region.vaddr; in __dw_regs()
78 static void dw_xdata_stop(struct dw_xdata *dw) in dw_xdata_stop() argument
82 mutex_lock(&dw->mutex); in dw_xdata_stop()
84 burst = readl(&(__dw_regs(dw)->burst_cnt)); in dw_xdata_stop()
88 writel(burst, &(__dw_regs(dw)->burst_cnt)); in dw_xdata_stop()
91 mutex_unlock(&dw->mutex); in dw_xdata_stop()
94 static void dw_xdata_start(struct dw_xdata *dw, bool write) in dw_xdata_start() argument
96 struct device *dev = &dw->pdev->dev; in dw_xdata_start()
100 dw_xdata_stop(dw); in dw_xdata_start()
[all …]
/linux-6.1.9/drivers/gpu/drm/bridge/synopsys/
Ddw-hdmi-ahb-audio.c153 static void dw_hdmi_reformat_iec958(struct snd_dw_hdmi *dw, in dw_hdmi_reformat_iec958() argument
156 u32 *src = dw->buf_src + offset; in dw_hdmi_reformat_iec958()
157 u32 *dst = dw->buf_dst + offset; in dw_hdmi_reformat_iec958()
158 u32 *end = dw->buf_src + offset + bytes; in dw_hdmi_reformat_iec958()
181 static void dw_hdmi_reformat_s24(struct snd_dw_hdmi *dw, in dw_hdmi_reformat_s24() argument
184 u32 *src = dw->buf_src + offset; in dw_hdmi_reformat_s24()
185 u32 *dst = dw->buf_dst + offset; in dw_hdmi_reformat_s24()
186 u32 *end = dw->buf_src + offset + bytes; in dw_hdmi_reformat_s24()
192 cs = dw->cs[dw->iec_offset++]; in dw_hdmi_reformat_s24()
193 if (dw->iec_offset >= 192) in dw_hdmi_reformat_s24()
[all …]
Ddw-hdmi-gp-audio.c79 struct snd_dw_hdmi *dw = dev_get_drvdata(dev); in audio_hw_params() local
82 dw_hdmi_set_sample_rate(dw->data.hdmi, params->sample_rate); in audio_hw_params()
86 dw_hdmi_set_channel_count(dw->data.hdmi, params->channels); in audio_hw_params()
87 dw_hdmi_set_channel_allocation(dw->data.hdmi, ca); in audio_hw_params()
89 dw_hdmi_set_sample_non_pcm(dw->data.hdmi, in audio_hw_params()
91 dw_hdmi_set_sample_width(dw->data.hdmi, params->sample_width); in audio_hw_params()
103 struct snd_dw_hdmi *dw = dev_get_drvdata(dev); in audio_mute_stream() local
106 dw_hdmi_audio_enable(dw->data.hdmi); in audio_mute_stream()
108 dw_hdmi_audio_disable(dw->data.hdmi); in audio_mute_stream()
133 struct snd_dw_hdmi *dw = dev_get_drvdata(dev); in audio_hook_plugged_cb() local
[all …]
DMakefile2 obj-$(CONFIG_DRM_DW_HDMI) += dw-hdmi.o
3 obj-$(CONFIG_DRM_DW_HDMI_AHB_AUDIO) += dw-hdmi-ahb-audio.o
4 obj-$(CONFIG_DRM_DW_HDMI_GP_AUDIO) += dw-hdmi-gp-audio.o
5 obj-$(CONFIG_DRM_DW_HDMI_I2S_AUDIO) += dw-hdmi-i2s-audio.o
6 obj-$(CONFIG_DRM_DW_HDMI_CEC) += dw-hdmi-cec.o
8 obj-$(CONFIG_DRM_DW_MIPI_DSI) += dw-mipi-dsi.o
/linux-6.1.9/drivers/dma/dw/
Dcore.c79 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_desc_get() local
83 desc = dma_pool_zalloc(dw->desc_pool, GFP_ATOMIC, &phys); in dwc_desc_get()
98 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_desc_put() local
106 dma_pool_free(dw->desc_pool, child, child->txd.phys); in dwc_desc_put()
110 dma_pool_free(dw->desc_pool, desc, desc->txd.phys); in dwc_desc_put()
116 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_initialize() local
118 dw->initialize_chan(dwc); in dwc_initialize()
121 channel_set_bit(dw, MASK.XFER, dwc->mask); in dwc_initialize()
122 channel_set_bit(dw, MASK.ERROR, dwc->mask); in dwc_initialize()
138 static inline void dwc_chan_disable(struct dw_dma *dw, struct dw_dma_chan *dwc) in dwc_chan_disable() argument
[all …]
Ddw.c16 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dw_dma_initialize_chan() local
23 cfghi |= DWC_CFGH_PROTCTL(dw->pdata->protctl); in dw_dma_initialize_chan()
91 static void dw_dma_set_device_name(struct dw_dma *dw, int id) in dw_dma_set_device_name() argument
93 snprintf(dw->name, sizeof(dw->name), "dw:dmac%d", id); in dw_dma_set_device_name()
96 static void dw_dma_disable(struct dw_dma *dw) in dw_dma_disable() argument
98 do_dw_dma_off(dw); in dw_dma_disable()
101 static void dw_dma_enable(struct dw_dma *dw) in dw_dma_enable() argument
103 do_dw_dma_on(dw); in dw_dma_enable()
108 struct dw_dma *dw; in dw_dma_probe() local
110 dw = devm_kzalloc(chip->dev, sizeof(*dw), GFP_KERNEL); in dw_dma_probe()
[all …]
Didma32.c48 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in idma32_initialize_chan_xbar() local
49 void __iomem *misc = __dw_regs(dw); in idma32_initialize_chan_xbar()
217 static void idma32_set_device_name(struct dw_dma *dw, int id) in idma32_set_device_name() argument
219 snprintf(dw->name, sizeof(dw->name), "idma32:dmac%d", id); in idma32_set_device_name()
228 static void idma32_fifo_partition(struct dw_dma *dw) in idma32_fifo_partition() argument
241 idma32_writeq(dw, FIFO_PARTITION1, fifo_partition); in idma32_fifo_partition()
242 idma32_writeq(dw, FIFO_PARTITION0, fifo_partition); in idma32_fifo_partition()
245 static void idma32_disable(struct dw_dma *dw) in idma32_disable() argument
247 do_dw_dma_off(dw); in idma32_disable()
248 idma32_fifo_partition(dw); in idma32_disable()
[all …]
Dinternal.h18 void do_dw_dma_on(struct dw_dma *dw);
19 void do_dw_dma_off(struct dw_dma *dw);
27 void dw_dma_acpi_controller_register(struct dw_dma *dw);
28 void dw_dma_acpi_controller_free(struct dw_dma *dw);
30 static inline void dw_dma_acpi_controller_register(struct dw_dma *dw) {} in dw_dma_acpi_controller_register() argument
31 static inline void dw_dma_acpi_controller_free(struct dw_dma *dw) {} in dw_dma_acpi_controller_free() argument
38 void dw_dma_of_controller_register(struct dw_dma *dw);
39 void dw_dma_of_controller_free(struct dw_dma *dw);
45 static inline void dw_dma_of_controller_register(struct dw_dma *dw) {} in dw_dma_of_controller_register() argument
46 static inline void dw_dma_of_controller_free(struct dw_dma *dw) {} in dw_dma_of_controller_free() argument
Dof.c19 struct dw_dma *dw = ofdma->of_dma_data; in dw_dma_of_xlate() local
21 .dma_dev = dw->dma.dev, in dw_dma_of_xlate()
37 slave.m_master >= dw->pdata->nr_masters || in dw_dma_of_xlate()
38 slave.p_master >= dw->pdata->nr_masters || in dw_dma_of_xlate()
39 slave.channels >= BIT(dw->pdata->nr_channels))) in dw_dma_of_xlate()
101 void dw_dma_of_controller_register(struct dw_dma *dw) in dw_dma_of_controller_register() argument
103 struct device *dev = dw->dma.dev; in dw_dma_of_controller_register()
109 ret = of_dma_controller_register(dev->of_node, dw_dma_of_xlate, dw); in dw_dma_of_controller_register()
114 void dw_dma_of_controller_free(struct dw_dma *dw) in dw_dma_of_controller_free() argument
116 struct device *dev = dw->dma.dev; in dw_dma_of_controller_free()
Dregs.h336 void (*set_device_name)(struct dw_dma *dw, int id);
337 void (*disable)(struct dw_dma *dw);
338 void (*enable)(struct dw_dma *dw);
344 static inline struct dw_dma_regs __iomem *__dw_regs(struct dw_dma *dw) in __dw_regs() argument
346 return dw->regs; in __dw_regs()
349 #define dma_readl(dw, name) \ argument
350 readl(&(__dw_regs(dw)->name))
351 #define dma_writel(dw, name, val) \ argument
352 writel((val), &(__dw_regs(dw)->name))
354 #define idma32_readq(dw, name) \ argument
[all …]
/linux-6.1.9/Documentation/devicetree/bindings/mmc/
Dsamsung,exynos-dw-mshc.yaml4 $id: http://devicetree.org/schemas/mmc/samsung,exynos-dw-mshc.yaml#
18 - samsung,exynos4210-dw-mshc
19 - samsung,exynos4412-dw-mshc
20 - samsung,exynos5250-dw-mshc
21 - samsung,exynos5420-dw-mshc
22 - samsung,exynos5420-dw-mshc-smu
23 - samsung,exynos7-dw-mshc
24 - samsung,exynos7-dw-mshc-smu
25 - axis,artpec8-dw-mshc
44 samsung,dw-mshc-ciu-div:
[all …]
Drockchip-dw-mshc.yaml4 $id: http://devicetree.org/schemas/mmc/rockchip-dw-mshc.yaml#
12 This file documents the combined properties for the core Synopsys dw mshc
13 controller that are not already included in the synopsys-dw-mshc-common.yaml
17 - $ref: "synopsys-dw-mshc-common.yaml#"
27 - const: rockchip,rk2928-dw-mshc
29 - const: rockchip,rk3288-dw-mshc
32 - rockchip,px30-dw-mshc
33 - rockchip,rk1808-dw-mshc
34 - rockchip,rk3036-dw-mshc
35 - rockchip,rk3128-dw-mshc
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ih.c254 uint32_t dw[8]; in amdgpu_ih_decode_iv_helper() local
256 dw[0] = le32_to_cpu(ih->ring[ring_index + 0]); in amdgpu_ih_decode_iv_helper()
257 dw[1] = le32_to_cpu(ih->ring[ring_index + 1]); in amdgpu_ih_decode_iv_helper()
258 dw[2] = le32_to_cpu(ih->ring[ring_index + 2]); in amdgpu_ih_decode_iv_helper()
259 dw[3] = le32_to_cpu(ih->ring[ring_index + 3]); in amdgpu_ih_decode_iv_helper()
260 dw[4] = le32_to_cpu(ih->ring[ring_index + 4]); in amdgpu_ih_decode_iv_helper()
261 dw[5] = le32_to_cpu(ih->ring[ring_index + 5]); in amdgpu_ih_decode_iv_helper()
262 dw[6] = le32_to_cpu(ih->ring[ring_index + 6]); in amdgpu_ih_decode_iv_helper()
263 dw[7] = le32_to_cpu(ih->ring[ring_index + 7]); in amdgpu_ih_decode_iv_helper()
265 entry->client_id = dw[0] & 0xff; in amdgpu_ih_decode_iv_helper()
[all …]
/linux-6.1.9/drivers/gpu/drm/i915/display/
Dintel_combo_phy_regs.h24 #define _ICL_PORT_CL_DW(dw, phy) (_ICL_COMBOPHY(phy) + \ argument
25 4 * (dw))
53 #define _ICL_PORT_COMP_DW(dw, phy) (_ICL_COMBOPHY(phy) + \ argument
54 _ICL_PORT_COMP + 4 * (dw))
84 #define _ICL_PORT_PCS_DW_AUX(dw, phy) (_ICL_COMBOPHY(phy) + \ argument
85 _ICL_PORT_PCS_AUX + 4 * (dw))
86 #define _ICL_PORT_PCS_DW_GRP(dw, phy) (_ICL_COMBOPHY(phy) + \ argument
87 _ICL_PORT_PCS_GRP + 4 * (dw))
88 #define _ICL_PORT_PCS_DW_LN(dw, ln, phy) (_ICL_COMBOPHY(phy) + \ argument
89 _ICL_PORT_PCS_LN(ln) + 4 * (dw))
[all …]
/linux-6.1.9/drivers/dma/dw-axi-dmac/
Ddw-axi-dmac-platform.c89 if (chan->chip->dw->hdata->reg_map_8_channels) { in axi_chan_config_write()
183 if (chan->chip->dw->hdata->reg_map_8_channels) in axi_chan_disable()
195 if (chan->chip->dw->hdata->reg_map_8_channels) in axi_chan_enable()
218 for (i = 0; i < chip->dw->hdata->nr_channels; i++) { in axi_dma_hw_init()
219 axi_chan_irq_disable(&chip->dw->chan[i], DWAXIDMAC_IRQ_ALL); in axi_dma_hw_init()
220 axi_chan_disable(&chip->dw->chan[i]); in axi_dma_hw_init()
230 u32 max_width = chan->chip->dw->hdata->m_data_width; in axi_chan_get_xfer_width()
375 u32 priority = chan->chip->dw->hdata->priority[chan->id]; in axi_chan_block_xfer_start()
590 if (desc->chan->chip->dw->hdata->nr_masters > 1) in set_desc_dest_master()
602 unsigned int data_width = BIT(chan->chip->dw->hdata->m_data_width); in dw_axi_dma_set_hw_desc()
[all …]
/linux-6.1.9/sound/soc/intel/avs/boards/
Di2s_test.c85 struct snd_soc_dapm_widget *dw; in avs_create_dapm_widgets() local
88 dw = devm_kcalloc(dev, num_dw, sizeof(*dw), GFP_KERNEL); in avs_create_dapm_widgets()
89 if (!dw) in avs_create_dapm_widgets()
92 dw[0].id = snd_soc_dapm_hp; in avs_create_dapm_widgets()
93 dw[0].reg = SND_SOC_NOPM; in avs_create_dapm_widgets()
94 dw[0].name = devm_kasprintf(dev, GFP_KERNEL, "ssp%dpb", ssp_port); in avs_create_dapm_widgets()
95 if (!dw[0].name) in avs_create_dapm_widgets()
98 dw[1].id = snd_soc_dapm_mic; in avs_create_dapm_widgets()
99 dw[1].reg = SND_SOC_NOPM; in avs_create_dapm_widgets()
100 dw[1].name = devm_kasprintf(dev, GFP_KERNEL, "ssp%dcp", ssp_port); in avs_create_dapm_widgets()
[all …]
/linux-6.1.9/drivers/edac/
Di5100_edac.c476 u32 dw; in i5100_read_log() local
485 pci_read_config_dword(pdev, I5100_VALIDLOG, &dw); in i5100_read_log()
487 if (i5100_validlog_redmemvalid(dw)) { in i5100_read_log()
493 if (i5100_validlog_recmemvalid(dw)) { in i5100_read_log()
515 if (i5100_validlog_nrecmemvalid(dw)) { in i5100_read_log()
537 pci_write_config_dword(pdev, I5100_VALIDLOG, dw); in i5100_read_log()
543 u32 dw, dw2; in i5100_check_error() local
545 pci_read_config_dword(priv->mc, I5100_FERR_NF_MEM, &dw); in i5100_check_error()
546 if (i5100_ferr_nf_mem_any(dw)) { in i5100_check_error()
550 i5100_read_log(mci, i5100_ferr_nf_mem_chan_indx(dw), in i5100_check_error()
[all …]
/linux-6.1.9/arch/arm/boot/dts/
Dberlin2cd.dtsi175 compatible = "snps,dw-apb-gpio";
181 compatible = "snps,dw-apb-gpio-port";
193 compatible = "snps,dw-apb-gpio";
199 compatible = "snps,dw-apb-gpio-port";
211 compatible = "snps,dw-apb-gpio";
217 compatible = "snps,dw-apb-gpio-port";
229 compatible = "snps,dw-apb-gpio";
235 compatible = "snps,dw-apb-gpio-port";
267 compatible = "snps,dw-apb-ssi";
277 compatible = "snps,dw-wdt";
[all …]
Dberlin2.dtsi185 compatible = "snps,dw-apb-gpio";
191 compatible = "snps,dw-apb-gpio-port";
203 compatible = "snps,dw-apb-gpio";
209 compatible = "snps,dw-apb-gpio-port";
221 compatible = "snps,dw-apb-gpio";
227 compatible = "snps,dw-apb-gpio-port";
239 compatible = "snps,dw-apb-gpio";
245 compatible = "snps,dw-apb-gpio-port";
257 compatible = "snps,dw-apb-timer";
266 compatible = "snps,dw-apb-timer";
[all …]
/linux-6.1.9/arch/arm64/boot/dts/synaptics/
Dberlin4ct.dtsi134 compatible = "snps,dw-apb-gpio";
140 compatible = "snps,dw-apb-gpio-port";
152 compatible = "snps,dw-apb-gpio";
158 compatible = "snps,dw-apb-gpio-port";
170 compatible = "snps,dw-apb-gpio";
176 compatible = "snps,dw-apb-gpio-port";
188 compatible = "snps,dw-apb-gpio";
194 compatible = "snps,dw-apb-gpio-port";
206 compatible = "snps,dw-apb-ictl";
233 compatible = "snps,dw-apb-ictl";
[all …]
/linux-6.1.9/drivers/gpu/drm/i915/gt/
Dselftest_lrc.c176 int dw; in live_lrc_layout() local
191 dw = 0; in live_lrc_layout()
193 u32 lri = READ_ONCE(hw[dw]); in live_lrc_layout()
197 dw++; in live_lrc_layout()
201 if (lrc[dw] == 0) { in live_lrc_layout()
203 engine->name, lri, dw); in live_lrc_layout()
204 dw++; in live_lrc_layout()
210 engine->name, dw, lri); in live_lrc_layout()
215 if (lrc[dw] != lri) { in live_lrc_layout()
217 engine->name, dw, lri, lrc[dw]); in live_lrc_layout()
[all …]

12345678910>>...15