Lines Matching refs:mode
42 struct drm_display_mode *mode, in mdp4_dsi_encoder_mode_set() argument
50 mode = adjusted_mode; in mdp4_dsi_encoder_mode_set()
52 DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG(mode)); in mdp4_dsi_encoder_mode_set()
55 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in mdp4_dsi_encoder_mode_set()
57 if (mode->flags & DRM_MODE_FLAG_NVSYNC) in mdp4_dsi_encoder_mode_set()
63 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp4_dsi_encoder_mode_set()
64 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp4_dsi_encoder_mode_set()
66 vsync_period = mode->vtotal * mode->htotal; in mdp4_dsi_encoder_mode_set()
67 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp4_dsi_encoder_mode_set()
68 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dsi_hsync_skew; in mdp4_dsi_encoder_mode_set()
69 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dsi_hsync_s… in mdp4_dsi_encoder_mode_set()
72 MDP4_DSI_HSYNC_CTRL_PULSEW(mode->hsync_end - mode->hsync_start) | in mdp4_dsi_encoder_mode_set()
73 MDP4_DSI_HSYNC_CTRL_PERIOD(mode->htotal)); in mdp4_dsi_encoder_mode_set()