Lines Matching defs:panel_fixed_mode
80 fill_detail_timing_data(struct drm_display_mode *panel_fixed_mode,
83 panel_fixed_mode->hdisplay = (dvo_timing->hactive_hi << 8) |
85 panel_fixed_mode->hsync_start = panel_fixed_mode->hdisplay +
87 panel_fixed_mode->hsync_end = panel_fixed_mode->hsync_start +
89 panel_fixed_mode->htotal = panel_fixed_mode->hdisplay +
92 panel_fixed_mode->vdisplay = (dvo_timing->vactive_hi << 8) |
94 panel_fixed_mode->vsync_start = panel_fixed_mode->vdisplay +
96 panel_fixed_mode->vsync_end = panel_fixed_mode->vsync_start +
98 panel_fixed_mode->vtotal = panel_fixed_mode->vdisplay +
100 panel_fixed_mode->clock = dvo_timing->clock * 10;
101 panel_fixed_mode->type = DRM_MODE_TYPE_PREFERRED;
104 panel_fixed_mode->flags |= DRM_MODE_FLAG_PHSYNC;
106 panel_fixed_mode->flags |= DRM_MODE_FLAG_NHSYNC;
109 panel_fixed_mode->flags |= DRM_MODE_FLAG_PVSYNC;
111 panel_fixed_mode->flags |= DRM_MODE_FLAG_NVSYNC;
114 if (panel_fixed_mode->hsync_end > panel_fixed_mode->htotal)
115 panel_fixed_mode->htotal = panel_fixed_mode->hsync_end + 1;
116 if (panel_fixed_mode->vsync_end > panel_fixed_mode->vtotal)
117 panel_fixed_mode->vtotal = panel_fixed_mode->vsync_end + 1;
119 drm_mode_set_name(panel_fixed_mode);
214 struct drm_display_mode *panel_fixed_mode;
241 panel_fixed_mode = kzalloc(sizeof(*panel_fixed_mode), GFP_KERNEL);
242 if (!panel_fixed_mode)
245 fill_detail_timing_data(panel_fixed_mode, panel_dvo_timing);
247 dev_priv->vbt.lfp_lvds_vbt_mode = panel_fixed_mode;
250 drm_mode_debug_printmodeline(panel_fixed_mode);
273 panel_fixed_mode->clock, 10*downclock);
281 if (fp_timing->x_res == panel_fixed_mode->hdisplay &&
282 fp_timing->y_res == panel_fixed_mode->vdisplay) {
296 struct drm_display_mode *panel_fixed_mode;
319 panel_fixed_mode = kzalloc(sizeof(*panel_fixed_mode), GFP_KERNEL);
320 if (!panel_fixed_mode)
323 fill_detail_timing_data(panel_fixed_mode, dvo_timing + index);
325 dev_priv->vbt.sdvo_lvds_vbt_mode = panel_fixed_mode;
328 drm_mode_debug_printmodeline(panel_fixed_mode);