Lines Matching refs:mode
133 struct drm_display_mode *mode, in hdmi_bridge_mode_set() argument
141 mode = adjusted_mode; in hdmi_bridge_mode_set()
143 hdmi->pixclock = mode->clock * 1000; in hdmi_bridge_mode_set()
145 hdmi->hdmi_mode = drm_match_cea_mode(mode) > 1; in hdmi_bridge_mode_set()
147 hstart = mode->htotal - mode->hsync_start; in hdmi_bridge_mode_set()
148 hend = mode->htotal - mode->hsync_start + mode->hdisplay; in hdmi_bridge_mode_set()
150 vstart = mode->vtotal - mode->vsync_start - 1; in hdmi_bridge_mode_set()
151 vend = mode->vtotal - mode->vsync_start + mode->vdisplay - 1; in hdmi_bridge_mode_set()
154 mode->htotal, mode->vtotal, hstart, hend, vstart, vend); in hdmi_bridge_mode_set()
157 HDMI_TOTAL_H_TOTAL(mode->htotal - 1) | in hdmi_bridge_mode_set()
158 HDMI_TOTAL_V_TOTAL(mode->vtotal - 1)); in hdmi_bridge_mode_set()
167 if (mode->flags & DRM_MODE_FLAG_INTERLACE) { in hdmi_bridge_mode_set()
169 HDMI_VSYNC_TOTAL_F2_V_TOTAL(mode->vtotal)); in hdmi_bridge_mode_set()
182 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in hdmi_bridge_mode_set()
184 if (mode->flags & DRM_MODE_FLAG_NVSYNC) in hdmi_bridge_mode_set()
186 if (mode->flags & DRM_MODE_FLAG_INTERLACE) in hdmi_bridge_mode_set()