Lines Matching +full:s +full:- +full:mode

1 // SPDX-License-Identifier: GPL-2.0
56 switch (mixer->id) { in sti_mixer_to_str()
68 return readl(mixer->regs + reg_id); in sti_mixer_reg_read()
74 writel(val, mixer->regs + reg_id); in sti_mixer_reg_write()
77 #define DBGFS_DUMP(reg) seq_printf(s, "\n %-25s 0x%08X", #reg, \
80 static void mixer_dbg_ctl(struct seq_file *s, int val) in mixer_dbg_ctl() argument
87 seq_puts(s, "\tEnabled: "); in mixer_dbg_ctl()
90 seq_printf(s, "%s ", disp_layer[i]); in mixer_dbg_ctl()
98 seq_puts(s, "CURS "); in mixer_dbg_ctl()
102 seq_puts(s, "Nothing"); in mixer_dbg_ctl()
105 static void mixer_dbg_crb(struct seq_file *s, int val) in mixer_dbg_crb() argument
109 seq_puts(s, "\tDepth: "); in mixer_dbg_crb()
113 seq_puts(s, "VID0"); in mixer_dbg_crb()
116 seq_puts(s, "VID1"); in mixer_dbg_crb()
119 seq_puts(s, "GDP0"); in mixer_dbg_crb()
122 seq_puts(s, "GDP1"); in mixer_dbg_crb()
125 seq_puts(s, "GDP2"); in mixer_dbg_crb()
128 seq_puts(s, "GDP3"); in mixer_dbg_crb()
131 seq_puts(s, "---"); in mixer_dbg_crb()
134 if (i < GAM_MIXER_NB_DEPTH_LEVEL - 1) in mixer_dbg_crb()
135 seq_puts(s, " < "); in mixer_dbg_crb()
140 static void mixer_dbg_mxn(struct seq_file *s, void *addr) in mixer_dbg_mxn() argument
145 seq_printf(s, "-0x%08X", (int)readl(addr + i * 4)); in mixer_dbg_mxn()
148 static int mixer_dbg_show(struct seq_file *s, void *arg) in mixer_dbg_show() argument
150 struct drm_info_node *node = s->private; in mixer_dbg_show()
151 struct sti_mixer *mixer = (struct sti_mixer *)node->info_ent->data; in mixer_dbg_show()
153 seq_printf(s, "%s: (vaddr = 0x%p)", in mixer_dbg_show()
154 sti_mixer_to_str(mixer), mixer->regs); in mixer_dbg_show()
157 mixer_dbg_ctl(s, sti_mixer_reg_read(mixer, GAM_MIXER_CTL)); in mixer_dbg_show()
164 mixer_dbg_crb(s, sti_mixer_reg_read(mixer, GAM_MIXER_CRB)); in mixer_dbg_show()
168 mixer_dbg_mxn(s, mixer->regs + GAM_MIXER_MX0); in mixer_dbg_show()
169 seq_putc(s, '\n'); in mixer_dbg_show()
187 switch (mixer->id) { in sti_mixer_debugfs_init()
205 minor->debugfs_root, minor); in sti_mixer_debugfs_init()
224 struct drm_display_mode *mode) in sti_mixer_set_background_area() argument
228 ydo = sti_vtg_get_line_number(*mode, 0); in sti_mixer_set_background_area()
229 yds = sti_vtg_get_line_number(*mode, mode->vdisplay - 1); in sti_mixer_set_background_area()
230 xdo = sti_vtg_get_pixel_number(*mode, 0); in sti_mixer_set_background_area()
231 xds = sti_vtg_get_pixel_number(*mode, mode->hdisplay - 1); in sti_mixer_set_background_area()
239 int plane_id, depth = plane->drm_plane.state->normalized_zpos; in sti_mixer_set_plane_depth()
243 switch (plane->desc) { in sti_mixer_set_plane_depth()
263 DRM_ERROR("Unknown plane %d\n", plane->desc); in sti_mixer_set_plane_depth()
278 DRM_DEBUG_DRIVER("%s %s depth=%d\n", sti_mixer_to_str(mixer), in sti_mixer_set_plane_depth()
280 dev_dbg(mixer->dev, "GAM_MIXER_CRB val 0x%x mask 0x%x\n", in sti_mixer_set_plane_depth()
287 dev_dbg(mixer->dev, "Read GAM_MIXER_CRB 0x%x\n", in sti_mixer_set_plane_depth()
293 struct drm_display_mode *mode) in sti_mixer_active_video_area() argument
297 ydo = sti_vtg_get_line_number(*mode, 0); in sti_mixer_active_video_area()
298 yds = sti_vtg_get_line_number(*mode, mode->vdisplay - 1); in sti_mixer_active_video_area()
299 xdo = sti_vtg_get_pixel_number(*mode, 0); in sti_mixer_active_video_area()
300 xds = sti_vtg_get_pixel_number(*mode, mode->hdisplay - 1); in sti_mixer_active_video_area()
302 DRM_DEBUG_DRIVER("%s active video area xdo:%d ydo:%d xds:%d yds:%d\n", in sti_mixer_active_video_area()
309 sti_mixer_set_background_area(mixer, mode); in sti_mixer_active_video_area()
316 switch (plane->desc) { in sti_mixer_get_plane_mask()
341 DRM_DEBUG_DRIVER("%s %s %s\n", status ? "enable" : "disable", in sti_mixer_set_plane_status()
347 return -EINVAL; in sti_mixer_set_plane_status()
365 dev_dbg(dev, "%s\n", __func__); in sti_mixer_create()
370 mixer->regs = baseaddr; in sti_mixer_create()
371 mixer->dev = dev; in sti_mixer_create()
372 mixer->id = id; in sti_mixer_create()
374 DRM_DEBUG_DRIVER("%s created. Regs=%p\n", in sti_mixer_create()
375 sti_mixer_to_str(mixer), mixer->regs); in sti_mixer_create()