Lines Matching refs:mode
137 struct drm_display_mode *mode, in hdmi_bridge_mode_set() argument
145 mode = adjusted_mode; in hdmi_bridge_mode_set()
147 hdmi->pixclock = mode->clock * 1000; in hdmi_bridge_mode_set()
149 hdmi->hdmi_mode = drm_match_cea_mode(mode) > 1; in hdmi_bridge_mode_set()
151 hstart = mode->htotal - mode->hsync_start; in hdmi_bridge_mode_set()
152 hend = mode->htotal - mode->hsync_start + mode->hdisplay; in hdmi_bridge_mode_set()
154 vstart = mode->vtotal - mode->vsync_start - 1; in hdmi_bridge_mode_set()
155 vend = mode->vtotal - mode->vsync_start + mode->vdisplay - 1; in hdmi_bridge_mode_set()
158 mode->htotal, mode->vtotal, hstart, hend, vstart, vend); in hdmi_bridge_mode_set()
161 HDMI_TOTAL_H_TOTAL(mode->htotal - 1) | in hdmi_bridge_mode_set()
162 HDMI_TOTAL_V_TOTAL(mode->vtotal - 1)); in hdmi_bridge_mode_set()
171 if (mode->flags & DRM_MODE_FLAG_INTERLACE) { in hdmi_bridge_mode_set()
173 HDMI_VSYNC_TOTAL_F2_V_TOTAL(mode->vtotal)); in hdmi_bridge_mode_set()
186 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in hdmi_bridge_mode_set()
188 if (mode->flags & DRM_MODE_FLAG_NVSYNC) in hdmi_bridge_mode_set()
190 if (mode->flags & DRM_MODE_FLAG_INTERLACE) in hdmi_bridge_mode_set()