Lines Matching defs:mode

69 static void oaktrail_lvds_dpms(struct drm_encoder *encoder, int mode)
74 if (mode == DRM_MODE_DPMS_ON)
83 struct drm_display_mode *mode,
124 DRM_ERROR("Couldn't find connector when setting mode");
136 if ((mode->vdisplay != adjusted_mode->crtc_vdisplay) ||
137 (mode->hdisplay != adjusted_mode->crtc_hdisplay)) {
138 if ((adjusted_mode->crtc_hdisplay * mode->vdisplay) ==
139 (mode->hdisplay * adjusted_mode->crtc_vdisplay))
142 mode->vdisplay) > (mode->hdisplay *
214 /* Returns the panel fixed mode from configuration. */
219 struct drm_display_mode *mode = NULL;
227 mode = kzalloc(sizeof(*mode), GFP_KERNEL);
228 if (!mode)
231 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo;
232 mode->vdisplay = (ti->vactive_hi << 8) | ti->vactive_lo;
233 mode->hsync_start = mode->hdisplay + \
236 mode->hsync_end = mode->hsync_start + \
239 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \
241 mode->vsync_start = \
242 mode->vdisplay + ((ti->vsync_offset_hi << 4) | \
244 mode->vsync_end = \
245 mode->vsync_start + ((ti->vsync_pulse_width_hi << 4) | \
247 mode->vtotal = mode->vdisplay + \
249 mode->clock = ti->pixel_clock * 10;
251 pr_info("hdisplay is %d\n", mode->hdisplay);
252 pr_info("vdisplay is %d\n", mode->vdisplay);
253 pr_info("HSS is %d\n", mode->hsync_start);
254 pr_info("HSE is %d\n", mode->hsync_end);
255 pr_info("htotal is %d\n", mode->htotal);
256 pr_info("VSS is %d\n", mode->vsync_start);
257 pr_info("VSE is %d\n", mode->vsync_end);
258 pr_info("vtotal is %d\n", mode->vtotal);
259 pr_info("clock is %d\n", mode->clock);
261 mode_dev->panel_fixed_mode = mode;
264 /* Use the BIOS VBT mode if available */
269 /* Then try the LVDS VBT mode */
276 /* If we still got no mode then bail */
287 * @mode_dev: PSB mode device
384 * Attempt to get the fixed panel mode from DDC. Assume that the
385 * preferred mode is the right one.
412 /* If we still don't have a mode after all that, give up. */