Lines Matching defs:mode

67 static void oaktrail_lvds_dpms(struct drm_encoder *encoder, int mode)
72 if (mode == DRM_MODE_DPMS_ON)
81 struct drm_display_mode *mode,
122 DRM_ERROR("Couldn't find connector when setting mode");
134 if ((mode->vdisplay != adjusted_mode->crtc_vdisplay) ||
135 (mode->hdisplay != adjusted_mode->crtc_hdisplay)) {
136 if ((adjusted_mode->crtc_hdisplay * mode->vdisplay) ==
137 (mode->hdisplay * adjusted_mode->crtc_vdisplay))
140 mode->vdisplay) > (mode->hdisplay *
212 /* Returns the panel fixed mode from configuration. */
217 struct drm_display_mode *mode = NULL;
225 mode = kzalloc(sizeof(*mode), GFP_KERNEL);
226 if (!mode)
229 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo;
230 mode->vdisplay = (ti->vactive_hi << 8) | ti->vactive_lo;
231 mode->hsync_start = mode->hdisplay + \
234 mode->hsync_end = mode->hsync_start + \
237 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \
239 mode->vsync_start = \
240 mode->vdisplay + ((ti->vsync_offset_hi << 4) | \
242 mode->vsync_end = \
243 mode->vsync_start + ((ti->vsync_pulse_width_hi << 4) | \
245 mode->vtotal = mode->vdisplay + \
247 mode->clock = ti->pixel_clock * 10;
249 pr_info("hdisplay is %d\n", mode->hdisplay);
250 pr_info("vdisplay is %d\n", mode->vdisplay);
251 pr_info("HSS is %d\n", mode->hsync_start);
252 pr_info("HSE is %d\n", mode->hsync_end);
253 pr_info("htotal is %d\n", mode->htotal);
254 pr_info("VSS is %d\n", mode->vsync_start);
255 pr_info("VSE is %d\n", mode->vsync_end);
256 pr_info("vtotal is %d\n", mode->vtotal);
257 pr_info("clock is %d\n", mode->clock);
259 mode_dev->panel_fixed_mode = mode;
262 /* Use the BIOS VBT mode if available */
267 /* Then try the LVDS VBT mode */
274 /* If we still got no mode then bail */
285 * @mode_dev: PSB mode device
382 * Attempt to get the fixed panel mode from DDC. Assume that the
383 * preferred mode is the right one.
410 /* If we still don't have a mode after all that, give up. */