Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/armada/
H A 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 …]
H A Darmada_510.c20 static int armada510_crtc_init(struct armada_crtc *dcrtc, struct device *dev) in armada510_crtc_init() argument
30 dcrtc->variant_data = v; in armada510_crtc_init()
70 dcrtc->base + LCD_CFG_RDREG4F); in armada510_crtc_init()
74 dcrtc->base + LCD_SPU_ADV_REG); in armada510_crtc_init()
101 static int armada510_crtc_compute_clock(struct armada_crtc *dcrtc, in armada510_crtc_compute_clock() argument
104 struct armada510_variant_data *v = dcrtc->variant_data; in armada510_crtc_compute_clock()
109 idx = armada_crtc_select_clock(dcrtc, &res, &armada510_clocking, in armada510_crtc_compute_clock()
126 swap(dcrtc->clk, res.clk); in armada510_crtc_compute_clock()
134 static void armada510_crtc_disable(struct armada_crtc *dcrtc) in armada510_crtc_disable() argument
136 if (dcrtc->clk) { in armada510_crtc_disable()
[all …]
H A Darmada_debugfs.c35 struct armada_crtc *dcrtc = m->private; in armada_debugfs_crtc_reg_show() local
39 u32 v = readl_relaxed(dcrtc->base + i); in armada_debugfs_crtc_reg_show()
55 struct armada_crtc *dcrtc; in armada_debugfs_crtc_reg_write() local
77 dcrtc = ((struct seq_file *)file->private_data)->private; in armada_debugfs_crtc_reg_write()
78 v = readl(dcrtc->base + reg); in armada_debugfs_crtc_reg_write()
81 writel(v, dcrtc->base + reg); in armada_debugfs_crtc_reg_write()
95 void armada_drm_crtc_debugfs_init(struct armada_crtc *dcrtc) in armada_drm_crtc_debugfs_init() argument
97 debugfs_create_file("armada-regs", 0600, dcrtc->crtc.debugfs_entry, in armada_drm_crtc_debugfs_init()
98 dcrtc, &armada_debugfs_crtc_reg_fops); in armada_drm_crtc_debugfs_init()
H A Darmada_plane.c143 struct armada_crtc *dcrtc; in armada_drm_primary_plane_atomic_update() local
159 dcrtc = drm_to_armada_crtc(new_state->crtc); in armada_drm_primary_plane_atomic_update()
160 regs = dcrtc->regs + dcrtc->regs_idx; in armada_drm_primary_plane_atomic_update()
223 dcrtc->regs_idx += idx; in armada_drm_primary_plane_atomic_update()
231 struct armada_crtc *dcrtc; in armada_drm_primary_plane_atomic_disable() local
245 dcrtc = drm_to_armada_crtc(old_state->crtc); in armada_drm_primary_plane_atomic_disable()
246 regs = dcrtc->regs + dcrtc->regs_idx; in armada_drm_primary_plane_atomic_disable()
254 dcrtc->regs_idx += idx; in armada_drm_primary_plane_atomic_disable()
H A Darmada_overlay.c77 struct armada_crtc *dcrtc; in armada_drm_overlay_plane_atomic_update() local
93 dcrtc = drm_to_armada_crtc(new_state->crtc); in armada_drm_overlay_plane_atomic_update()
94 regs = dcrtc->regs + dcrtc->regs_idx; in armada_drm_overlay_plane_atomic_update()
214 dcrtc->variant->has_spu_adv_reg) in armada_drm_overlay_plane_atomic_update()
218 dcrtc->regs_idx += idx; in armada_drm_overlay_plane_atomic_update()
226 struct armada_crtc *dcrtc; in armada_drm_overlay_plane_atomic_disable() local
240 dcrtc = drm_to_armada_crtc(old_state->crtc); in armada_drm_overlay_plane_atomic_disable()
241 regs = dcrtc->regs + dcrtc->regs_idx; in armada_drm_overlay_plane_atomic_disable()
248 dcrtc->regs_idx += idx; in armada_drm_overlay_plane_atomic_disable()
H A Darmada_drm.h57 struct armada_crtc *dcrtc[2]; member
85 void armada_drm_crtc_debugfs_init(struct armada_crtc *dcrtc);
H A Darmada_crtc.h88 int armada_crtc_select_clock(struct armada_crtc *dcrtc,