Home
last modified time | relevance | path

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

12345678910>>...18

/openbmc/linux/drivers/dma/dw-edma/
H A Ddw-edma-v0-debugfs.c16 #define REGS_ADDR(dw, name) \ argument
18 struct dw_edma_v0_regs __iomem *__regs = (dw)->chip->reg_base; \
23 #define REGS_CH_ADDR(dw, name, _dir, _ch) \ argument
27 if ((dw)->chip->mf == EDMA_MF_EDMA_LEGACY) \
28 __ch_regs = REGS_ADDR(dw, type.legacy.ch); \
30 __ch_regs = REGS_ADDR(dw, type.unroll.ch[_ch].rd); \
32 __ch_regs = REGS_ADDR(dw, type.unroll.ch[_ch].wr); \
37 #define REGISTER(dw, name) \ argument
38 { dw, #name, REGS_ADDR(dw, name) }
40 #define CTX_REGISTER(dw, name, dir, ch) \ argument
[all …]
H A Ddw-edma-v0-core.c28 static inline struct dw_edma_v0_regs __iomem *__dw_regs(struct dw_edma *dw) in __dw_regs() argument
30 return dw->chip->reg_base; in __dw_regs()
33 #define SET_32(dw, name, value) \ argument
34 writel(value, &(__dw_regs(dw)->name))
36 #define GET_32(dw, name) \ argument
37 readl(&(__dw_regs(dw)->name))
39 #define SET_RW_32(dw, dir, name, value) \ argument
42 SET_32(dw, wr_##name, value); \
44 SET_32(dw, rd_##name, value); \
47 #define GET_RW_32(dw, dir, name) \ argument
[all …]
H A Ddw-hdma-v0-debugfs.c16 #define REGS_ADDR(dw, name) \ argument
18 struct dw_hdma_v0_regs __iomem *__regs = (dw)->chip->reg_base; \
23 #define REGS_CH_ADDR(dw, name, _dir, _ch) \ argument
28 __ch_regs = REGS_ADDR(dw, ch[_ch].rd); \
30 __ch_regs = REGS_ADDR(dw, ch[_ch].wr); \
35 #define CTX_REGISTER(dw, name, dir, ch) \ argument
36 {#name, REGS_CH_ADDR(dw, name, dir, ch)}
59 static void dw_hdma_debugfs_create_x32(struct dw_edma *dw, in dw_hdma_debugfs_create_x32() argument
66 entries = devm_kcalloc(dw->chip->dev, nr_entries, sizeof(*entries), in dw_hdma_debugfs_create_x32()
79 static void dw_hdma_debugfs_regs_ch(struct dw_edma *dw, enum dw_edma_dir dir, in dw_hdma_debugfs_regs_ch() argument
[all …]
H A Ddw-hdma-v0-core.c26 static inline struct dw_hdma_v0_regs __iomem *__dw_regs(struct dw_edma *dw) in __dw_regs() argument
28 return dw->chip->reg_base; in __dw_regs()
32 __dw_ch_regs(struct dw_edma *dw, enum dw_edma_dir dir, u16 ch) in __dw_ch_regs() argument
35 return &(__dw_regs(dw)->ch[ch].wr); in __dw_ch_regs()
37 return &(__dw_regs(dw)->ch[ch].rd); in __dw_ch_regs()
40 #define SET_CH_32(dw, dir, ch, name, value) \ argument
41 writel(value, &(__dw_ch_regs(dw, dir, ch)->name))
43 #define GET_CH_32(dw, dir, ch, name) \ argument
44 readl(&(__dw_ch_regs(dw, dir, ch)->name))
46 #define SET_BOTH_CH_32(dw, ch, name, value) \ argument
[all …]
H A Ddw-edma-core.c46 struct dw_edma_chip *chip = chan->dw->chip; in dw_edma_get_pci_address()
78 struct dw_edma_chip *chip = desc->chan->dw->chip; in dw_edma_alloc_chunk()
187 struct dw_edma *dw = chan->dw; in dw_edma_start_transfer() local
205 dw_edma_core_start(dw, child, !desc->xfer_sz); in dw_edma_start_transfer()
220 if (chan->dw->chip->flags & DW_EDMA_CHIP_LOCAL) { in dw_edma_device_caps()
404 if (chan->dw->chip->flags & DW_EDMA_CHIP_LOCAL) { in dw_edma_device_transfer()
710 static int dw_edma_channel_setup(struct dw_edma *dw, u32 wr_alloc, u32 rd_alloc) in dw_edma_channel_setup() argument
712 struct dw_edma_chip *chip = dw->chip; in dw_edma_channel_setup()
720 ch_cnt = dw->wr_ch_cnt + dw->rd_ch_cnt; in dw_edma_channel_setup()
721 dma = &dw->dma; in dw_edma_channel_setup()
[all …]
H A Ddw-edma-core.h76 struct dw_edma *dw; member
95 struct dw_edma *dw; member
121 void (*off)(struct dw_edma *dw);
122 u16 (*ch_count)(struct dw_edma *dw, enum dw_edma_dir dir);
128 void (*debugfs_on)(struct dw_edma *dw);
167 void dw_edma_core_off(struct dw_edma *dw) in dw_edma_core_off() argument
169 dw->core->off(dw); in dw_edma_core_off()
173 u16 dw_edma_core_ch_count(struct dw_edma *dw, enum dw_edma_dir dir) in dw_edma_core_ch_count() argument
175 return dw->core->ch_count(dw, dir); in dw_edma_core_ch_count()
181 return chan->dw->core->ch_status(chan); in dw_edma_core_ch_status()
[all …]
H A DMakefile3 obj-$(CONFIG_DW_EDMA) += dw-edma.o
4 dw-edma-$(CONFIG_DEBUG_FS) := dw-edma-v0-debugfs.o \
5 dw-hdma-v0-debugfs.o
6 dw-edma-objs := dw-edma-core.o \
7 dw-edma-v0-core.o \
8 dw-hdma-v0-core.o $(dw-edma-y)
9 obj-$(CONFIG_DW_EDMA_PCIE) += dw-edma-pcie.o
/openbmc/linux/drivers/misc/
H A 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 …]
/openbmc/linux/drivers/gpu/drm/bridge/synopsys/
H A 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 …]
H A 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 …]
/openbmc/linux/drivers/dma/dw/
H A Dcore.c80 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_desc_get() local
84 desc = dma_pool_zalloc(dw->desc_pool, GFP_ATOMIC, &phys); in dwc_desc_get()
99 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_desc_put() local
107 dma_pool_free(dw->desc_pool, child, child->txd.phys); in dwc_desc_put()
111 dma_pool_free(dw->desc_pool, desc, desc->txd.phys); in dwc_desc_put()
117 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_initialize() local
119 dw->initialize_chan(dwc); in dwc_initialize()
122 channel_set_bit(dw, MASK.XFER, dwc->mask); in dwc_initialize()
123 channel_set_bit(dw, MASK.ERROR, dwc->mask); in dwc_initialize()
139 static inline void dwc_chan_disable(struct dw_dma *dw, struct dw_dma_chan *dwc) in dwc_chan_disable() argument
[all …]
H A 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 …]
H A 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 …]
H A 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
H A 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()
H A 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 …]
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ih.c258 uint32_t dw[8]; in amdgpu_ih_decode_iv_helper() local
260 dw[0] = le32_to_cpu(ih->ring[ring_index + 0]); in amdgpu_ih_decode_iv_helper()
261 dw[1] = le32_to_cpu(ih->ring[ring_index + 1]); in amdgpu_ih_decode_iv_helper()
262 dw[2] = le32_to_cpu(ih->ring[ring_index + 2]); in amdgpu_ih_decode_iv_helper()
263 dw[3] = le32_to_cpu(ih->ring[ring_index + 3]); in amdgpu_ih_decode_iv_helper()
264 dw[4] = le32_to_cpu(ih->ring[ring_index + 4]); in amdgpu_ih_decode_iv_helper()
265 dw[5] = le32_to_cpu(ih->ring[ring_index + 5]); in amdgpu_ih_decode_iv_helper()
266 dw[6] = le32_to_cpu(ih->ring[ring_index + 6]); in amdgpu_ih_decode_iv_helper()
267 dw[7] = le32_to_cpu(ih->ring[ring_index + 7]); in amdgpu_ih_decode_iv_helper()
269 entry->client_id = dw[0] & 0xff; in amdgpu_ih_decode_iv_helper()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/display/
H A 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 …]
/openbmc/linux/drivers/dma/dw-axi-dmac/
H A Ddw-axi-dmac-platform.c94 if (chan->chip->dw->hdata->reg_map_8_channels && in axi_chan_config_write()
95 !chan->chip->dw->hdata->use_cfg2) { in axi_chan_config_write()
189 if (chan->chip->dw->hdata->reg_map_8_channels) in axi_chan_disable()
201 if (chan->chip->dw->hdata->reg_map_8_channels) in axi_chan_enable()
224 for (i = 0; i < chip->dw->hdata->nr_channels; i++) { in axi_dma_hw_init()
225 axi_chan_irq_disable(&chip->dw->chan[i], DWAXIDMAC_IRQ_ALL); in axi_dma_hw_init()
226 axi_chan_disable(&chip->dw->chan[i]); in axi_dma_hw_init()
236 u32 max_width = chan->chip->dw->hdata->m_data_width; in axi_chan_get_xfer_width()
380 u32 priority = chan->chip->dw->hdata->priority[chan->id]; in axi_chan_block_xfer_start()
595 if (desc->chan->chip->dw->hdata->nr_masters > 1) in set_desc_dest_master()
[all …]
/openbmc/linux/drivers/edac/
H A 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 …]
/openbmc/linux/sound/soc/intel/avs/boards/
H A Di2s_test.c83 struct snd_soc_dapm_widget *dw; in avs_create_dapm_widgets() local
86 dw = devm_kcalloc(dev, num_dw, sizeof(*dw), GFP_KERNEL); in avs_create_dapm_widgets()
87 if (!dw) in avs_create_dapm_widgets()
90 dw[0].id = snd_soc_dapm_hp; in avs_create_dapm_widgets()
91 dw[0].reg = SND_SOC_NOPM; in avs_create_dapm_widgets()
92 dw[0].name = devm_kasprintf(dev, GFP_KERNEL, "ssp%dpb", ssp_port); in avs_create_dapm_widgets()
93 if (!dw[0].name) in avs_create_dapm_widgets()
96 dw[1].id = snd_soc_dapm_mic; in avs_create_dapm_widgets()
97 dw[1].reg = SND_SOC_NOPM; in avs_create_dapm_widgets()
98 dw[1].name = devm_kasprintf(dev, GFP_KERNEL, "ssp%dcp", ssp_port); in avs_create_dapm_widgets()
[all …]
/openbmc/linux/arch/arm/boot/dts/synaptics/
H A 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 …]
H A 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 …]
/openbmc/linux/drivers/gpu/drm/i915/gt/
H A 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 …]
/openbmc/linux/arch/riscv/boot/dts/thead/
H A Dth1520.dtsi168 compatible = "snps,dw-apb-uart";
178 compatible = "snps,dw-apb-uart";
188 compatible = "snps,dw-apb-uart";
198 compatible = "snps,dw-apb-gpio";
204 compatible = "snps,dw-apb-gpio-port";
216 compatible = "snps,dw-apb-gpio";
222 compatible = "snps,dw-apb-gpio-port";
234 compatible = "snps,dw-apb-gpio";
240 compatible = "snps,dw-apb-gpio-port";
252 compatible = "snps,dw-apb-gpio";
[all …]

12345678910>>...18