Lines Matching refs:panel_fixed_mode

147 static void fill_detail_timing_data(struct drm_display_mode *panel_fixed_mode,  in fill_detail_timing_data()  argument
150 panel_fixed_mode->hdisplay = (dvo_timing->hactive_hi << 8) | in fill_detail_timing_data()
152 panel_fixed_mode->hsync_start = panel_fixed_mode->hdisplay + in fill_detail_timing_data()
154 panel_fixed_mode->hsync_end = panel_fixed_mode->hsync_start + in fill_detail_timing_data()
156 panel_fixed_mode->htotal = panel_fixed_mode->hdisplay + in fill_detail_timing_data()
159 panel_fixed_mode->vdisplay = (dvo_timing->vactive_hi << 8) | in fill_detail_timing_data()
161 panel_fixed_mode->vsync_start = panel_fixed_mode->vdisplay + in fill_detail_timing_data()
163 panel_fixed_mode->vsync_end = panel_fixed_mode->vsync_start + in fill_detail_timing_data()
165 panel_fixed_mode->vtotal = panel_fixed_mode->vdisplay + in fill_detail_timing_data()
167 panel_fixed_mode->clock = dvo_timing->clock * 10; in fill_detail_timing_data()
168 panel_fixed_mode->type = DRM_MODE_TYPE_PREFERRED; in fill_detail_timing_data()
171 panel_fixed_mode->flags |= DRM_MODE_FLAG_PHSYNC; in fill_detail_timing_data()
173 panel_fixed_mode->flags |= DRM_MODE_FLAG_NHSYNC; in fill_detail_timing_data()
176 panel_fixed_mode->flags |= DRM_MODE_FLAG_PVSYNC; in fill_detail_timing_data()
178 panel_fixed_mode->flags |= DRM_MODE_FLAG_NVSYNC; in fill_detail_timing_data()
181 if (panel_fixed_mode->hsync_end > panel_fixed_mode->htotal) in fill_detail_timing_data()
182 panel_fixed_mode->htotal = panel_fixed_mode->hsync_end + 1; in fill_detail_timing_data()
183 if (panel_fixed_mode->vsync_end > panel_fixed_mode->vtotal) in fill_detail_timing_data()
184 panel_fixed_mode->vtotal = panel_fixed_mode->vsync_end + 1; in fill_detail_timing_data()
186 drm_mode_set_name(panel_fixed_mode); in fill_detail_timing_data()
225 struct drm_display_mode *panel_fixed_mode; in parse_lfp_panel_data() local
249 panel_fixed_mode = kzalloc(sizeof(*panel_fixed_mode), in parse_lfp_panel_data()
251 if (panel_fixed_mode == NULL) { in parse_lfp_panel_data()
257 fill_detail_timing_data(panel_fixed_mode, dvo_timing); in parse_lfp_panel_data()
259 if (panel_fixed_mode->htotal > 0 && panel_fixed_mode->vtotal > 0) { in parse_lfp_panel_data()
260 dev_priv->lfp_lvds_vbt_mode = panel_fixed_mode; in parse_lfp_panel_data()
261 drm_mode_debug_printmodeline(panel_fixed_mode); in parse_lfp_panel_data()
265 kfree(panel_fixed_mode); in parse_lfp_panel_data()
276 struct drm_display_mode *panel_fixed_mode; in parse_sdvo_panel_data() local
288 panel_fixed_mode = kzalloc(sizeof(*panel_fixed_mode), GFP_KERNEL); in parse_sdvo_panel_data()
290 if (!panel_fixed_mode) in parse_sdvo_panel_data()
293 fill_detail_timing_data(panel_fixed_mode, in parse_sdvo_panel_data()
296 dev_priv->sdvo_lvds_vbt_mode = panel_fixed_mode; in parse_sdvo_panel_data()