Lines Matching refs:mode
40 struct drm_display_mode *mode, in mdp4_dtv_encoder_mode_set() argument
49 mode = adjusted_mode; in mdp4_dtv_encoder_mode_set()
51 DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG(mode)); in mdp4_dtv_encoder_mode_set()
53 mdp4_dtv_encoder->pixclock = mode->clock * 1000; in mdp4_dtv_encoder_mode_set()
58 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in mdp4_dtv_encoder_mode_set()
60 if (mode->flags & DRM_MODE_FLAG_NVSYNC) in mdp4_dtv_encoder_mode_set()
66 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp4_dtv_encoder_mode_set()
67 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp4_dtv_encoder_mode_set()
69 vsync_period = mode->vtotal * mode->htotal; in mdp4_dtv_encoder_mode_set()
70 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp4_dtv_encoder_mode_set()
71 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; in mdp4_dtv_encoder_mode_set()
72 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dtv_hsync_s… in mdp4_dtv_encoder_mode_set()
75 MDP4_DTV_HSYNC_CTRL_PULSEW(mode->hsync_end - mode->hsync_start) | in mdp4_dtv_encoder_mode_set()
76 MDP4_DTV_HSYNC_CTRL_PERIOD(mode->htotal)); in mdp4_dtv_encoder_mode_set()