Lines Matching refs:mode

105 				      struct drm_display_mode *mode,  in mdp5_vid_encoder_mode_set()  argument
119 mode = adjusted_mode; in mdp5_vid_encoder_mode_set()
122 mode->base.id, mode->name, in mdp5_vid_encoder_mode_set()
123 mode->vrefresh, mode->clock, in mdp5_vid_encoder_mode_set()
124 mode->hdisplay, mode->hsync_start, in mdp5_vid_encoder_mode_set()
125 mode->hsync_end, mode->htotal, in mdp5_vid_encoder_mode_set()
126 mode->vdisplay, mode->vsync_start, in mdp5_vid_encoder_mode_set()
127 mode->vsync_end, mode->vtotal, in mdp5_vid_encoder_mode_set()
128 mode->type, mode->flags); in mdp5_vid_encoder_mode_set()
134 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in mdp5_vid_encoder_mode_set()
136 if (mode->flags & DRM_MODE_FLAG_NVSYNC) in mdp5_vid_encoder_mode_set()
165 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp5_vid_encoder_mode_set()
166 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp5_vid_encoder_mode_set()
168 vsync_period = mode->vtotal * mode->htotal; in mdp5_vid_encoder_mode_set()
169 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp5_vid_encoder_mode_set()
170 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; in mdp5_vid_encoder_mode_set()
171 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dtv_hsync_s… in mdp5_vid_encoder_mode_set()
179 display_v_start += mode->htotal - mode->hsync_start; in mdp5_vid_encoder_mode_set()
180 display_v_end -= mode->hsync_start - mode->hdisplay; in mdp5_vid_encoder_mode_set()
186 MDP5_INTF_HSYNC_CTL_PULSEW(mode->hsync_end - mode->hsync_start) | in mdp5_vid_encoder_mode_set()
187 MDP5_INTF_HSYNC_CTL_PERIOD(mode->htotal)); in mdp5_vid_encoder_mode_set()
273 struct drm_display_mode *mode, in mdp5_encoder_mode_set() argument
279 if (intf->mode == MDP5_INTF_DSI_MODE_COMMAND) in mdp5_encoder_mode_set()
280 mdp5_cmd_encoder_mode_set(encoder, mode, adjusted_mode); in mdp5_encoder_mode_set()
282 mdp5_vid_encoder_mode_set(encoder, mode, adjusted_mode); in mdp5_encoder_mode_set()
290 if (intf->mode == MDP5_INTF_DSI_MODE_COMMAND) in mdp5_encoder_disable()
303 mdp5_encoder_mode_set(encoder, &cstate->mode, &cstate->adjusted_mode); in mdp5_encoder_enable()
305 if (intf->mode == MDP5_INTF_DSI_MODE_COMMAND) in mdp5_encoder_enable()
411 intf->mode = MDP5_INTF_DSI_MODE_COMMAND; in mdp5_encoder_set_intf_mode()
414 intf->mode = MDP5_INTF_DSI_MODE_VIDEO; in mdp5_encoder_set_intf_mode()
416 intf->mode = MDP5_INTF_MODE_NONE; in mdp5_encoder_set_intf_mode()