| /drivers/dma/dw-edma/ |
| A D | dw-edma-v0-debugfs.c | 38 { dw, #name, REGS_ADDR(dw, name) } 41 { dw, #name, REGS_CH_ADDR(dw, name, dir, ch), dir, ch } 44 { dw, #name, REGS_ADDR(dw, wr_##name) } 46 { dw, #name, REGS_ADDR(dw, rd_##name) } 49 { dw, #name, REGS_ADDR(dw, type.legacy.wr_##name) } 51 { dw, #name, REGS_ADDR(dw, type.legacy.rd_##name) } 54 { dw, #name, REGS_ADDR(dw, type.unroll.wr_##name) } 56 { dw, #name, REGS_ADDR(dw, type.unroll.rd_##name) } 64 struct dw_edma *dw; member 74 struct dw_edma *dw = entry->dw; in dw_edma_debugfs_u32_get() local [all …]
|
| A D | dw-edma-v0-core.c | 30 return dw->chip->reg_base; in __dw_regs() 50 : GET_32(dw, rd_##name)) 157 writel_ch(dw, dir, ch, value, &(__dw_ch_regs(dw, dir, ch)->name)) 160 readl_ch(dw, dir, ch, &(__dw_ch_regs(dw, dir, ch)->name)) 191 struct dw_edma *dw = chan->dw; in dw_edma_v0_core_ch_status() local 207 struct dw_edma *dw = chan->dw; in dw_edma_v0_core_clear_done_int() local 215 struct dw_edma *dw = chan->dw; in dw_edma_v0_core_clear_abort_int() local 237 struct dw_edma *dw = dw_irq->dw; in dw_edma_v0_core_handle_int() local 250 off = dw->wr_ch_cnt; in dw_edma_v0_core_handle_int() 366 struct dw_edma *dw = chan->dw; in dw_edma_v0_core_start() local [all …]
|
| A D | dw-hdma-v0-debugfs.c | 16 #define REGS_ADDR(dw, name) \ argument 83 CTX_REGISTER(dw, ch_en, dir, ch), in dw_hdma_debugfs_regs_ch() 87 CTX_REGISTER(dw, llp.lsb, dir, ch), in dw_hdma_debugfs_regs_ch() 88 CTX_REGISTER(dw, llp.msb, dir, ch), in dw_hdma_debugfs_regs_ch() 91 CTX_REGISTER(dw, sar.lsb, dir, ch), in dw_hdma_debugfs_regs_ch() 92 CTX_REGISTER(dw, sar.msb, dir, ch), in dw_hdma_debugfs_regs_ch() 98 CTX_REGISTER(dw, qos, dir, ch), in dw_hdma_debugfs_regs_ch() 165 debugfs_create_u32("mf", 0444, dw->dma.dbg_dev_root, &dw->chip->mf); in dw_hdma_v0_debugfs_on() 166 debugfs_create_u16("wr_ch_cnt", 0444, dw->dma.dbg_dev_root, &dw->wr_ch_cnt); in dw_hdma_v0_debugfs_on() 167 debugfs_create_u16("rd_ch_cnt", 0444, dw->dma.dbg_dev_root, &dw->rd_ch_cnt); in dw_hdma_v0_debugfs_on() [all …]
|
| A D | dw-hdma-v0-core.c | 28 return dw->chip->reg_base; in __dw_regs() 78 struct dw_edma *dw = chan->dw; in dw_hdma_v0_core_ch_status() local 94 struct dw_edma *dw = chan->dw; in dw_hdma_v0_core_clear_done_int() local 101 struct dw_edma *dw = chan->dw; in dw_hdma_v0_core_clear_abort_int() local 108 struct dw_edma *dw = chan->dw; in dw_hdma_v0_core_status_int() local 117 struct dw_edma *dw = dw_irq->dw; in dw_hdma_v0_core_handle_int() local 124 total = dw->wr_ch_cnt; in dw_hdma_v0_core_handle_int() 128 total = dw->rd_ch_cnt; in dw_hdma_v0_core_handle_int() 129 off = dw->wr_ch_cnt; in dw_hdma_v0_core_handle_int() 231 struct dw_edma *dw = chan->dw; in dw_hdma_v0_core_start() local [all …]
|
| A D | dw-edma-core.c | 176 struct dw_edma *dw = chan->dw; in dw_edma_start_transfer() local 709 ch_cnt = dw->wr_ch_cnt + dw->rd_ch_cnt; in dw_edma_channel_setup() 717 chan->dw = dw; in dw_edma_channel_setup() 755 irq->dw = dw; in dw_edma_channel_setup() 831 ch_cnt = dw->wr_ch_cnt + dw->rd_ch_cnt; in dw_edma_irq_request() 844 IRQF_SHARED, dw->name, &dw->irq[0]); in dw_edma_irq_request() 931 if (!dw->wr_ch_cnt && !dw->rd_ch_cnt) in dw_edma_probe() 935 dw->wr_ch_cnt, dw->rd_ch_cnt); in dw_edma_probe() 938 dw->chan = devm_kcalloc(dev, dw->wr_ch_cnt + dw->rd_ch_cnt, in dw_edma_probe() 962 chip->dw = dw; in dw_edma_probe() [all …]
|
| A D | dw-edma-core.h | 76 struct dw_edma *dw; member 95 struct dw_edma *dw; member 121 void (*off)(struct dw_edma *dw); 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() 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() 194 dw->core->start(chunk, first); in dw_edma_core_start() 200 chan->dw->core->ch_config(chan); in dw_edma_core_ch_config() [all …]
|
| A D | Makefile | 3 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
|
| /drivers/gpu/drm/xe/ |
| A D | xe_ring_ops.c | 77 dw[i++] = 0; in emit_store_imm_ggtt() 86 dw[i++] = 0; in emit_flush_dw() 87 dw[i++] = 0; in emit_flush_dw() 88 dw[i++] = 0; in emit_flush_dw() 98 dw[i++] = 0; in emit_flush_imm_ggtt() 119 dw[i++] = 0; in emit_flush_invalidate() 131 dw[i++] = 0; in emit_pipe_control() 281 xe_lrc_write_ring(lrc, dw, i * sizeof(*dw)); in __emit_job_gen12_simple() 344 xe_lrc_write_ring(lrc, dw, i * sizeof(*dw)); in __emit_job_gen12_video() 395 xe_lrc_write_ring(lrc, dw, i * sizeof(*dw)); in __emit_job_gen12_render_compute() [all …]
|
| /drivers/misc/ |
| A D | dw-xdata-pcie.c | 82 mutex_lock(&dw->mutex); in dw_xdata_stop() 100 dw_xdata_stop(dw); in dw_xdata_start() 102 mutex_lock(&dw->mutex); in dw_xdata_start() 235 dw_xdata_stop(dw); in write_store() 272 dw_xdata_stop(dw); in read_store() 292 struct dw_xdata *dw; in dw_xdata_pcie_probe() local 315 dw = devm_kzalloc(dev, sizeof(*dw), GFP_KERNEL); in dw_xdata_pcie_probe() 316 if (!dw) in dw_xdata_pcie_probe() 334 dw->pdev = pdev; in dw_xdata_pcie_probe() 362 dw->max_wr_len * 4, dw->max_rd_len * 4); in dw_xdata_pcie_probe() [all …]
|
| /drivers/gpu/drm/bridge/synopsys/ |
| A D | dw-hdmi-ahb-audio.c | 193 cs = dw->cs[dw->iec_offset++]; in dw_hdmi_reformat_s24() 197 i = dw->channels; in dw_hdmi_reformat_s24() 218 memset(dw->cs, 0, sizeof(dw->cs)); in dw_hdmi_create_cs() 241 dw->reformat(dw, offset, period); in dw_hdmi_start_dma() 287 if (dw->substream) in snd_dw_hdmi_irq() 329 eld = dw->data.get_eld(dw->data.hdmi); in dw_hdmi_open() 385 free_irq(dw->data.irq, dw); in dw_hdmi_close() 475 dw->iec_offset = 0; in dw_hdmi_prepare() 574 dw->card = card; in snd_dw_hdmi_probe() 575 dw->data = *data; in snd_dw_hdmi_probe() [all …]
|
| A D | dw-hdmi-gp-audio.c | 79 struct snd_dw_hdmi *dw = dev_get_drvdata(dev); in audio_hw_params() local 89 dw_hdmi_set_sample_non_pcm(dw->data.hdmi, in audio_hw_params() 106 dw_hdmi_audio_enable(dw->data.hdmi); in audio_mute_stream() 108 dw_hdmi_audio_disable(dw->data.hdmi); in audio_mute_stream() 149 struct snd_dw_hdmi *dw; in snd_dw_hdmi_probe() local 159 dw = devm_kzalloc(&pdev->dev, sizeof(*dw), GFP_KERNEL); in snd_dw_hdmi_probe() 160 if (!dw) in snd_dw_hdmi_probe() 163 dw->data = *data; in snd_dw_hdmi_probe() 165 platform_set_drvdata(pdev, dw); in snd_dw_hdmi_probe() 172 return PTR_ERR_OR_ZERO(dw->audio_pdev); in snd_dw_hdmi_probe() [all …]
|
| A D | Makefile | 2 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_HDMI_QP) += dw-hdmi-qp.o 10 obj-$(CONFIG_DRM_DW_MIPI_DSI) += dw-mipi-dsi.o 11 obj-$(CONFIG_DRM_DW_MIPI_DSI2) += dw-mipi-dsi2.o
|
| /drivers/dma/dw/ |
| A D | core.c | 466 struct dw_dma *dw = from_tasklet(dw, t, tasklet); in dw_dma_tasklet() local 1153 struct dw_dma *dw = chip->dw; in do_dma_probe() local 1214 dw->disable(dw); in do_dma_probe() 1217 dw->set_device_name(dw, chip->id); in do_dma_probe() 1231 dw->name, dw); in do_dma_probe() 1301 dma_writel(dw, CLEAR.XFER, dw->all_chan_mask); in do_dma_probe() 1364 struct dw_dma *dw = chip->dw; in do_dma_remove() local 1387 struct dw_dma *dw = chip->dw; in do_dw_dma_disable() local 1389 dw->disable(dw); in do_dw_dma_disable() 1396 struct dw_dma *dw = chip->dw; in do_dw_dma_enable() local [all …]
|
| A D | dw.c | 102 snprintf(dw->name, sizeof(dw->name), "dw:dmac%d", id); in dw_dma_set_device_name() 107 do_dw_dma_off(dw); in dw_dma_disable() 112 do_dw_dma_on(dw); in dw_dma_enable() 117 struct dw_dma *dw; in dw_dma_probe() local 119 dw = devm_kzalloc(chip->dev, sizeof(*dw), GFP_KERNEL); in dw_dma_probe() 120 if (!dw) in dw_dma_probe() 126 dw->resume_chan = dw_dma_resume_chan; in dw_dma_probe() 128 dw->bytes2block = dw_dma_bytes2block; in dw_dma_probe() 133 dw->disable = dw_dma_disable; in dw_dma_probe() 134 dw->enable = dw_dma_enable; in dw_dma_probe() [all …]
|
| A D | idma32.c | 223 snprintf(dw->name, sizeof(dw->name), "idma32:dmac%d", id); in idma32_set_device_name() 251 do_dw_dma_off(dw); in idma32_disable() 252 idma32_fifo_partition(dw); in idma32_disable() 257 idma32_fifo_partition(dw); in idma32_enable() 258 do_dw_dma_on(dw); in idma32_enable() 263 struct dw_dma *dw; in idma32_dma_probe() local 265 dw = devm_kzalloc(chip->dev, sizeof(*dw), GFP_KERNEL); in idma32_dma_probe() 266 if (!dw) in idma32_dma_probe() 282 dw->disable = idma32_disable; in idma32_dma_probe() 283 dw->enable = idma32_enable; in idma32_dma_probe() [all …]
|
| A D | internal.h | 18 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
|
| A D | regs.h | 336 void (*disable)(struct dw_dma *dw); 337 void (*enable)(struct dw_dma *dw); 345 return dw->regs; in __dw_regs() 348 #define dma_readl(dw, name) \ argument 349 readl(&(__dw_regs(dw)->name)) 350 #define dma_writel(dw, name, val) \ argument 351 writel((val), &(__dw_regs(dw)->name)) 353 #define idma32_readq(dw, name) \ argument 354 hi_lo_readq(&(__dw_regs(dw)->name)) 355 #define idma32_writeq(dw, name, val) \ argument [all …]
|
| A D | of.c | 19 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()
|
| /drivers/pci/controller/dwc/ |
| A D | pcie-rcar-gen4.c | 81 struct dw_pcie dw; member 175 struct dw_pcie *dw = &rcar->dw; in rcar_gen4_pcie_common_init() local 198 if (dw->num_lanes < 4) in rcar_gen4_pcie_common_init() 220 struct dw_pcie *dw = &rcar->dw; in rcar_gen4_pcie_common_deinit() local 276 rcar->dw.ops = &dw_pcie_ops; in rcar_gen4_pcie_alloc() 277 rcar->dw.dev = dev; in rcar_gen4_pcie_alloc() 565 struct dw_pcie *dw = &rcar->dw; in rcar_gen4_pcie_additional_common_init() local 570 if (dw->num_lanes < 4) in rcar_gen4_pcie_additional_common_init() 599 struct dw_pcie *dw = &rcar->dw; in rcar_gen4_pcie_reg_test_bit() local 616 struct dw_pcie *dw = &rcar->dw; in rcar_gen4_pcie_download_phy_firmware() local [all …]
|
| /drivers/gpu/drm/amd/amdgpu/ |
| A D | amdgpu_ih.c | 269 uint32_t dw[8]; in amdgpu_ih_decode_iv_helper() local 280 entry->client_id = dw[0] & 0xff; in amdgpu_ih_decode_iv_helper() 283 entry->vmid = (dw[0] >> 24) & 0xf; in amdgpu_ih_decode_iv_helper() 284 entry->vmid_src = (dw[0] >> 31); in amdgpu_ih_decode_iv_helper() 285 entry->timestamp = dw[1] | ((u64)(dw[2] & 0xffff) << 32); in amdgpu_ih_decode_iv_helper() 286 entry->timestamp_src = dw[2] >> 31; in amdgpu_ih_decode_iv_helper() 287 entry->pasid = dw[3] & 0xffff; in amdgpu_ih_decode_iv_helper() 289 entry->src_data[0] = dw[4]; in amdgpu_ih_decode_iv_helper() 290 entry->src_data[1] = dw[5]; in amdgpu_ih_decode_iv_helper() 291 entry->src_data[2] = dw[6]; in amdgpu_ih_decode_iv_helper() [all …]
|
| /drivers/dma/dw-axi-dmac/ |
| A D | dw-axi-dmac-platform.c | 1152 struct dw_axi_dma *dw = chip->dw; in dw_axi_dma_interrupt() local 1162 chan = &dw->chan[i]; in dw_axi_dma_interrupt() 1467 struct dw_axi_dma *dw; in dw_probe() local 1478 dw = devm_kzalloc(&pdev->dev, sizeof(*dw), GFP_KERNEL); in dw_probe() 1479 if (!dw) in dw_probe() 1486 chip->dw = dw; in dw_probe() 1488 chip->dw->hdata = hdata; in dw_probe() 1527 if (!dw->chan) in dw_probe() 1560 dw->dma.dev = chip->dev; in dw_probe() 1581 dw->dma.dev->dma_parms = &dw->dma_parms; in dw_probe() [all …]
|
| /drivers/edac/ |
| A D | i5100_edac.c | 476 u32 dw; in i5100_read_log() local 543 u32 dw, dw2; in i5100_check_error() local 571 u32 dw; in i5100_refresh_scrubbing() local 579 if (i5100_mc_scrbdone(dw)) { in i5100_refresh_scrubbing() 595 u32 dw; in i5100_set_scrub_rate() local 600 dw |= I5100_MC_SCRBEN_MASK; in i5100_set_scrub_rate() 620 u32 dw; in i5100_get_scrub_rate() local 793 u32 dw; in i5100_init_interleaving() local 828 i5100_dmir_rank(dw, k); in i5100_init_interleaving() 983 u32 dw; in i5100_init_one() local [all …]
|
| /drivers/gpu/drm/i915/display/ |
| A D | intel_combo_phy_regs.h | 24 #define _ICL_PORT_CL_DW(dw, phy) (_ICL_COMBOPHY(phy) + \ argument 25 4 * (dw)) 51 #define _ICL_PORT_COMP_DW(dw, phy) (_ICL_COMBOPHY(phy) + \ argument 52 _ICL_PORT_COMP + 4 * (dw)) 81 _ICL_PORT_PCS_AUX + 4 * (dw)) 83 _ICL_PORT_PCS_GRP + 4 * (dw)) 85 _ICL_PORT_PCS_LN(ln) + 4 * (dw)) 100 #define _ICL_PORT_TX_DW_AUX(dw, phy) (_ICL_COMBOPHY(phy) + \ argument 101 _ICL_PORT_TX_AUX + 4 * (dw)) 103 _ICL_PORT_TX_GRP + 4 * (dw)) [all …]
|
| A D | vlv_dpio_phy_regs.h | 11 #define _VLV_CMN(dw) (0x8100 + (dw) * 4) argument 12 #define _CHV_CMN(cl, dw) (0x8100 - (cl) * 0x80 + (dw) * 4) argument 13 #define _VLV_PLL(ch, dw) (0x8000 + (ch) * 0x20 + (dw) * 4) /* dw 0-7,16-23 */ argument 14 #define _CHV_PLL(ch, dw) (0x8000 + (ch) * 0x180 + (dw) * 4) argument 15 #define _VLV_REF(dw) (0x80a0 + ((dw) - 8) * 4) /* dw 8-15 */ argument 16 #define _VLV_PCS(ch, spline, dw) (0x200 + (ch) * 0x2400 + (spline) * 0x200 + (dw) * 4) argument 17 #define _VLV_PCS_GRP(ch, dw) (0x8200 + (ch) * 0x200 + (dw) * 4) argument 18 #define _VLV_PCS_BCAST(dw) (0xc000 + (dw) * 4) argument 19 #define _VLV_TX(ch, lane, dw) (0x80 + (ch) * 0x2400 + (lane) * 0x200 + (dw) * 4) argument 20 #define _VLV_TX_GRP(ch, dw) (0x8280 + (ch) * 0x200 + (dw) * 4) argument [all …]
|
| /drivers/gpu/drm/i915/gt/ |
| A D | selftest_lrc.c | 177 int dw; in live_lrc_layout() local 192 dw = 0; in live_lrc_layout() 198 dw++; in live_lrc_layout() 205 dw++; in live_lrc_layout() 218 engine->name, dw, lri, lrc[dw]); in live_lrc_layout() 237 dw++; in live_lrc_layout() 244 engine->name, dw, offset, lrc[dw]); in live_lrc_layout() 1035 dw++; in store_context() 1194 dw++; in load_context() 1347 dw++; in compare_isolation() [all …]
|