Lines Matching refs:mode
94 struct drm_display_mode *mode, in mdp5_vid_encoder_mode_set() argument
108 mode = adjusted_mode; in mdp5_vid_encoder_mode_set()
110 DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG(mode)); in mdp5_vid_encoder_mode_set()
116 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in mdp5_vid_encoder_mode_set()
118 if (mode->flags & DRM_MODE_FLAG_NVSYNC) in mdp5_vid_encoder_mode_set()
147 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp5_vid_encoder_mode_set()
148 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp5_vid_encoder_mode_set()
150 vsync_period = mode->vtotal * mode->htotal; in mdp5_vid_encoder_mode_set()
151 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp5_vid_encoder_mode_set()
152 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; in mdp5_vid_encoder_mode_set()
153 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dtv_hsync_s… in mdp5_vid_encoder_mode_set()
161 display_v_start += mode->htotal - mode->hsync_start; in mdp5_vid_encoder_mode_set()
162 display_v_end -= mode->hsync_start - mode->hdisplay; in mdp5_vid_encoder_mode_set()
168 MDP5_INTF_HSYNC_CTL_PULSEW(mode->hsync_end - mode->hsync_start) | in mdp5_vid_encoder_mode_set()
169 MDP5_INTF_HSYNC_CTL_PERIOD(mode->htotal)); in mdp5_vid_encoder_mode_set()
255 struct drm_display_mode *mode, in mdp5_encoder_mode_set() argument
261 if (intf->mode == MDP5_INTF_DSI_MODE_COMMAND) in mdp5_encoder_mode_set()
262 mdp5_cmd_encoder_mode_set(encoder, mode, adjusted_mode); in mdp5_encoder_mode_set()
264 mdp5_vid_encoder_mode_set(encoder, mode, adjusted_mode); in mdp5_encoder_mode_set()
272 if (intf->mode == MDP5_INTF_DSI_MODE_COMMAND) in mdp5_encoder_disable()
285 mdp5_encoder_mode_set(encoder, &cstate->mode, &cstate->adjusted_mode); in mdp5_encoder_enable()
287 if (intf->mode == MDP5_INTF_DSI_MODE_COMMAND) in mdp5_encoder_enable()
393 intf->mode = MDP5_INTF_DSI_MODE_COMMAND; in mdp5_encoder_set_intf_mode()
396 intf->mode = MDP5_INTF_DSI_MODE_VIDEO; in mdp5_encoder_set_intf_mode()
398 intf->mode = MDP5_INTF_MODE_NONE; in mdp5_encoder_set_intf_mode()