Lines Matching refs:mode
20 struct drm_display_mode *mode, in mdp5_vid_encoder_mode_set() argument
34 mode = adjusted_mode; in mdp5_vid_encoder_mode_set()
36 DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG(mode)); in mdp5_vid_encoder_mode_set()
42 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in mdp5_vid_encoder_mode_set()
44 if (mode->flags & DRM_MODE_FLAG_NVSYNC) in mdp5_vid_encoder_mode_set()
73 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp5_vid_encoder_mode_set()
74 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp5_vid_encoder_mode_set()
76 vsync_period = mode->vtotal * mode->htotal; in mdp5_vid_encoder_mode_set()
77 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp5_vid_encoder_mode_set()
78 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; in mdp5_vid_encoder_mode_set()
79 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dtv_hsync_s… in mdp5_vid_encoder_mode_set()
87 display_v_start += mode->htotal - mode->hsync_start; in mdp5_vid_encoder_mode_set()
88 display_v_end -= mode->hsync_start - mode->hdisplay; in mdp5_vid_encoder_mode_set()
94 MDP5_INTF_HSYNC_CTL_PULSEW(mode->hsync_end - mode->hsync_start) | in mdp5_vid_encoder_mode_set()
95 MDP5_INTF_HSYNC_CTL_PERIOD(mode->htotal)); in mdp5_vid_encoder_mode_set()
178 struct drm_display_mode *mode, in mdp5_encoder_mode_set() argument
184 if (intf->mode == MDP5_INTF_DSI_MODE_COMMAND) in mdp5_encoder_mode_set()
185 mdp5_cmd_encoder_mode_set(encoder, mode, adjusted_mode); in mdp5_encoder_mode_set()
187 mdp5_vid_encoder_mode_set(encoder, mode, adjusted_mode); in mdp5_encoder_mode_set()
195 if (intf->mode == MDP5_INTF_DSI_MODE_COMMAND) in mdp5_encoder_disable()
208 mdp5_encoder_mode_set(encoder, &cstate->mode, &cstate->adjusted_mode); in mdp5_encoder_enable()
210 if (intf->mode == MDP5_INTF_DSI_MODE_COMMAND) in mdp5_encoder_enable()
274 intf->mode = MDP5_INTF_DSI_MODE_COMMAND; in mdp5_encoder_set_intf_mode()
277 intf->mode = MDP5_INTF_DSI_MODE_VIDEO; in mdp5_encoder_set_intf_mode()
279 intf->mode = MDP5_INTF_MODE_NONE; in mdp5_encoder_set_intf_mode()