Home
last modified time | relevance | path

Searched refs:dcrtc (Results 1 – 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/armada/
Darmada_crtc.c82 armada_drm_crtc_update_regs(struct armada_crtc *dcrtc, struct armada_regs *regs) in armada_drm_crtc_update_regs() argument
85 void __iomem *reg = dcrtc->base + regs->offset; in armada_drm_crtc_update_regs()
96 static void armada_drm_crtc_update(struct armada_crtc *dcrtc, bool enable) in armada_drm_crtc_update() argument
100 dumb_ctrl = dcrtc->cfg_dumb_ctrl; in armada_drm_crtc_update()
118 dcrtc->base + LCD_SPU_DUMB_CTRL); in armada_drm_crtc_update()
123 struct armada_crtc *dcrtc = drm_to_armada_crtc(crtc); in armada_drm_crtc_queue_state_event() local
130 dcrtc->event = event; in armada_drm_crtc_queue_state_event()
175 struct armada_crtc *dcrtc = drm_to_armada_crtc(crtc); in armada_drm_crtc_mode_valid() local
187 if (!dcrtc->variant->has_spu_adv_reg && in armada_drm_crtc_mode_valid()
202 struct armada_crtc *dcrtc = drm_to_armada_crtc(crtc); in armada_drm_crtc_mode_fixup() local
[all …]
Darmada_510.c19 static int armada510_crtc_init(struct armada_crtc *dcrtc, struct device *dev) in armada510_crtc_init() argument
29 dcrtc->variant_data = v; in armada510_crtc_init()
69 dcrtc->base + LCD_CFG_RDREG4F); in armada510_crtc_init()
73 dcrtc->base + LCD_SPU_ADV_REG); in armada510_crtc_init()
100 static int armada510_crtc_compute_clock(struct armada_crtc *dcrtc, in armada510_crtc_compute_clock() argument
103 struct armada510_variant_data *v = dcrtc->variant_data; in armada510_crtc_compute_clock()
108 idx = armada_crtc_select_clock(dcrtc, &res, &armada510_clocking, in armada510_crtc_compute_clock()
125 swap(dcrtc->clk, res.clk); in armada510_crtc_compute_clock()
133 static void armada510_crtc_disable(struct armada_crtc *dcrtc) in armada510_crtc_disable() argument
135 if (dcrtc->clk) { in armada510_crtc_disable()
[all …]
Darmada_debugfs.c34 struct armada_crtc *dcrtc = m->private; in armada_debugfs_crtc_reg_show() local
38 u32 v = readl_relaxed(dcrtc->base + i); in armada_debugfs_crtc_reg_show()
54 struct armada_crtc *dcrtc; in armada_debugfs_crtc_reg_write() local
76 dcrtc = ((struct seq_file *)file->private_data)->private; in armada_debugfs_crtc_reg_write()
77 v = readl(dcrtc->base + reg); in armada_debugfs_crtc_reg_write()
80 writel(v, dcrtc->base + reg); in armada_debugfs_crtc_reg_write()
94 void armada_drm_crtc_debugfs_init(struct armada_crtc *dcrtc) in armada_drm_crtc_debugfs_init() argument
96 debugfs_create_file("armada-regs", 0600, dcrtc->crtc.debugfs_entry, in armada_drm_crtc_debugfs_init()
97 dcrtc, &armada_debugfs_crtc_reg_fops); in armada_drm_crtc_debugfs_init()
Darmada_plane.c162 struct armada_crtc *dcrtc; in armada_drm_primary_plane_atomic_update() local
178 dcrtc = drm_to_armada_crtc(state->crtc); in armada_drm_primary_plane_atomic_update()
179 regs = dcrtc->regs + dcrtc->regs_idx; in armada_drm_primary_plane_atomic_update()
241 dcrtc->regs_idx += idx; in armada_drm_primary_plane_atomic_update()
247 struct armada_crtc *dcrtc; in armada_drm_primary_plane_atomic_disable() local
261 dcrtc = drm_to_armada_crtc(old_state->crtc); in armada_drm_primary_plane_atomic_disable()
262 regs = dcrtc->regs + dcrtc->regs_idx; in armada_drm_primary_plane_atomic_disable()
270 dcrtc->regs_idx += idx; in armada_drm_primary_plane_atomic_disable()
Darmada_overlay.c72 struct armada_crtc *dcrtc; in armada_drm_overlay_plane_atomic_update() local
88 dcrtc = drm_to_armada_crtc(state->crtc); in armada_drm_overlay_plane_atomic_update()
89 regs = dcrtc->regs + dcrtc->regs_idx; in armada_drm_overlay_plane_atomic_update()
207 dcrtc->variant->has_spu_adv_reg) in armada_drm_overlay_plane_atomic_update()
211 dcrtc->regs_idx += idx; in armada_drm_overlay_plane_atomic_update()
217 struct armada_crtc *dcrtc; in armada_drm_overlay_plane_atomic_disable() local
231 dcrtc = drm_to_armada_crtc(old_state->crtc); in armada_drm_overlay_plane_atomic_disable()
232 regs = dcrtc->regs + dcrtc->regs_idx; in armada_drm_overlay_plane_atomic_disable()
239 dcrtc->regs_idx += idx; in armada_drm_overlay_plane_atomic_disable()
Darmada_drm.h59 struct armada_crtc *dcrtc[2]; member
83 void armada_drm_crtc_debugfs_init(struct armada_crtc *dcrtc);
Darmada_crtc.h88 int armada_crtc_select_clock(struct armada_crtc *dcrtc,