Lines Matching +full:layer +full:- +full:depth

1 // SPDX-License-Identifier: GPL-2.0
35 /* id for depth of CRB reg */
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, \
131 seq_puts(s, "---"); in mixer_dbg_crb()
134 if (i < GAM_MIXER_NB_DEPTH_LEVEL - 1) in mixer_dbg_crb()
145 seq_printf(s, "-0x%08X", (int)readl(addr + i * 4)); in mixer_dbg_mxn()
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()
154 sti_mixer_to_str(mixer), mixer->regs); in mixer_dbg_show()
168 mixer_dbg_mxn(s, mixer->regs + GAM_MIXER_MX0); in mixer_dbg_show()
187 switch (mixer->id) { in sti_mixer_debugfs_init()
205 minor->debugfs_root, minor); in sti_mixer_debugfs_init()
229 yds = sti_vtg_get_line_number(*mode, mode->vdisplay - 1); 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() local
243 switch (plane->desc) { in sti_mixer_set_plane_depth()
260 /* no need to set depth for cursor */ in sti_mixer_set_plane_depth()
263 DRM_ERROR("Unknown plane %d\n", plane->desc); in sti_mixer_set_plane_depth()
267 /* Search if a previous depth was already assigned to the plane */ in sti_mixer_set_plane_depth()
275 mask |= GAM_DEPTH_MASK_ID << (3 * depth); in sti_mixer_set_plane_depth()
276 plane_id = plane_id << (3 * depth); 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()
279 sti_plane_to_str(plane), depth); 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()
298 yds = sti_vtg_get_line_number(*mode, mode->vdisplay - 1); in sti_mixer_active_video_area()
300 xds = sti_vtg_get_pixel_number(*mode, mode->hdisplay - 1); in sti_mixer_active_video_area()
316 switch (plane->desc) { in sti_mixer_get_plane_mask()
346 DRM_ERROR("Can't find layer mask\n"); in sti_mixer_set_plane_status()
347 return -EINVAL; in sti_mixer_set_plane_status()
370 mixer->regs = baseaddr; in sti_mixer_create()
371 mixer->dev = dev; in sti_mixer_create()
372 mixer->id = id; in sti_mixer_create()
375 sti_mixer_to_str(mixer), mixer->regs); in sti_mixer_create()