Lines Matching refs:mode

78 static void oaktrail_lvds_dpms(struct drm_encoder *encoder, int mode)
84 if (mode == DRM_MODE_DPMS_ON)
93 struct drm_display_mode *mode,
132 DRM_ERROR("Couldn't find connector when setting mode");
144 if ((mode->vdisplay != adjusted_mode->crtc_vdisplay) ||
145 (mode->hdisplay != adjusted_mode->crtc_hdisplay)) {
146 if ((adjusted_mode->crtc_hdisplay * mode->vdisplay) ==
147 (mode->hdisplay * adjusted_mode->crtc_vdisplay))
150 mode->vdisplay) > (mode->hdisplay *
225 /* hard coded fixed mode for TPO LTPS LPJ040K001A */
228 /* hard coded fixed mode for LVDS 800x480 */
231 /* hard coded fixed mode for Samsung 480wsvga LVDS 1024x600@75 */
234 /* hard coded fixed mode for Samsung 480wsvga LVDS 1024x600@75 */
237 /* hard coded fixed mode for Sharp wsvga LVDS 1024x600 */
240 /* hard coded fixed mode for LVDS 1024x768 */
243 /* hard coded fixed mode for LVDS 1366x768 */
248 /* Returns the panel fixed mode from configuration. */
253 struct drm_display_mode *mode = NULL;
261 mode = kzalloc(sizeof(*mode), GFP_KERNEL);
262 if (!mode)
265 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo;
266 mode->vdisplay = (ti->vactive_hi << 8) | ti->vactive_lo;
267 mode->hsync_start = mode->hdisplay + \
270 mode->hsync_end = mode->hsync_start + \
273 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \
275 mode->vsync_start = \
276 mode->vdisplay + ((ti->vsync_offset_hi << 4) | \
278 mode->vsync_end = \
279 mode->vsync_start + ((ti->vsync_pulse_width_hi << 4) | \
281 mode->vtotal = mode->vdisplay + \
283 mode->clock = ti->pixel_clock * 10;
285 printk(KERN_INFO "hdisplay is %d\n", mode->hdisplay);
286 printk(KERN_INFO "vdisplay is %d\n", mode->vdisplay);
287 printk(KERN_INFO "HSS is %d\n", mode->hsync_start);
288 printk(KERN_INFO "HSE is %d\n", mode->hsync_end);
289 printk(KERN_INFO "htotal is %d\n", mode->htotal);
290 printk(KERN_INFO "VSS is %d\n", mode->vsync_start);
291 printk(KERN_INFO "VSE is %d\n", mode->vsync_end);
292 printk(KERN_INFO "vtotal is %d\n", mode->vtotal);
293 printk(KERN_INFO "clock is %d\n", mode->clock);
295 mode_dev->panel_fixed_mode = mode;
298 /* Use the BIOS VBT mode if available */
303 /* Then try the LVDS VBT mode */
394 * Attempt to get the fixed panel mode from DDC. Assume that the
395 * preferred mode is the right one.
425 /* If we still don't have a mode after all that, give up. */