Lines Matching refs:adjusted_mode

129 			   const struct drm_display_mode *adjusted_mode)  in intel_panel_downclock_mode()  argument
133 int max_vrefresh = drm_mode_vrefresh(adjusted_mode); in intel_panel_downclock_mode()
139 if (is_alt_drrs_mode(fixed_mode, adjusted_mode) && in intel_panel_downclock_mode()
151 const struct drm_display_mode *adjusted_mode) in intel_panel_highest_mode() argument
153 const struct drm_display_mode *fixed_mode, *best_mode = adjusted_mode; in intel_panel_highest_mode()
204 struct drm_display_mode *adjusted_mode) in intel_panel_compute_config() argument
207 intel_panel_fixed_mode(connector, adjusted_mode); in intel_panel_compute_config()
214 vrefresh = drm_mode_vrefresh(adjusted_mode); in intel_panel_compute_config()
241 drm_mode_copy(adjusted_mode, fixed_mode); in intel_panel_compute_config()
244 adjusted_mode->vtotal = in intel_panel_compute_config()
245 DIV_ROUND_CLOSEST(adjusted_mode->clock * 1000, in intel_panel_compute_config()
246 adjusted_mode->htotal * vrefresh); in intel_panel_compute_config()
248 drm_mode_set_crtcinfo(adjusted_mode, 0); in intel_panel_compute_config()
390 const struct drm_display_mode *adjusted_mode = in pch_panel_fitting() local
391 &crtc_state->hw.adjusted_mode; in pch_panel_fitting()
397 if (adjusted_mode->crtc_hdisplay == pipe_src_w && in pch_panel_fitting()
398 adjusted_mode->crtc_vdisplay == pipe_src_h && in pch_panel_fitting()
406 x = (adjusted_mode->crtc_hdisplay - width + 1)/2; in pch_panel_fitting()
407 y = (adjusted_mode->crtc_vdisplay - height + 1)/2; in pch_panel_fitting()
413 u32 scaled_width = adjusted_mode->crtc_hdisplay * pipe_src_h; in pch_panel_fitting()
414 u32 scaled_height = pipe_src_w * adjusted_mode->crtc_vdisplay; in pch_panel_fitting()
419 x = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in pch_panel_fitting()
421 height = adjusted_mode->crtc_vdisplay; in pch_panel_fitting()
426 y = (adjusted_mode->crtc_vdisplay - height + 1) / 2; in pch_panel_fitting()
428 width = adjusted_mode->crtc_hdisplay; in pch_panel_fitting()
431 width = adjusted_mode->crtc_hdisplay; in pch_panel_fitting()
432 height = adjusted_mode->crtc_vdisplay; in pch_panel_fitting()
438 WARN_ON(adjusted_mode->crtc_hdisplay != pipe_src_w); in pch_panel_fitting()
439 WARN_ON(adjusted_mode->crtc_vdisplay != pipe_src_h); in pch_panel_fitting()
443 width = adjusted_mode->crtc_hdisplay; in pch_panel_fitting()
444 height = adjusted_mode->crtc_vdisplay; in pch_panel_fitting()
460 centre_horizontally(struct drm_display_mode *adjusted_mode, in centre_horizontally() argument
466 sync_width = adjusted_mode->crtc_hsync_end - adjusted_mode->crtc_hsync_start; in centre_horizontally()
467 blank_width = adjusted_mode->crtc_hblank_end - adjusted_mode->crtc_hblank_start; in centre_horizontally()
470 border = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in centre_horizontally()
473 adjusted_mode->crtc_hdisplay = width; in centre_horizontally()
474 adjusted_mode->crtc_hblank_start = width + border; in centre_horizontally()
475 adjusted_mode->crtc_hblank_end = adjusted_mode->crtc_hblank_start + blank_width; in centre_horizontally()
477 adjusted_mode->crtc_hsync_start = adjusted_mode->crtc_hblank_start + sync_pos; in centre_horizontally()
478 adjusted_mode->crtc_hsync_end = adjusted_mode->crtc_hsync_start + sync_width; in centre_horizontally()
482 centre_vertically(struct drm_display_mode *adjusted_mode, in centre_vertically() argument
488 sync_width = adjusted_mode->crtc_vsync_end - adjusted_mode->crtc_vsync_start; in centre_vertically()
489 blank_width = adjusted_mode->crtc_vblank_end - adjusted_mode->crtc_vblank_start; in centre_vertically()
492 border = (adjusted_mode->crtc_vdisplay - height + 1) / 2; in centre_vertically()
494 adjusted_mode->crtc_vdisplay = height; in centre_vertically()
495 adjusted_mode->crtc_vblank_start = height + border; in centre_vertically()
496 adjusted_mode->crtc_vblank_end = adjusted_mode->crtc_vblank_start + blank_width; in centre_vertically()
498 adjusted_mode->crtc_vsync_start = adjusted_mode->crtc_vblank_start + sync_pos; in centre_vertically()
499 adjusted_mode->crtc_vsync_end = adjusted_mode->crtc_vsync_start + sync_width; in centre_vertically()
518 const struct drm_display_mode *adjusted_mode = in i965_scale_aspect() local
519 &crtc_state->hw.adjusted_mode; in i965_scale_aspect()
522 u32 scaled_width = adjusted_mode->crtc_hdisplay * pipe_src_h; in i965_scale_aspect()
523 u32 scaled_height = pipe_src_w * adjusted_mode->crtc_vdisplay; in i965_scale_aspect()
532 else if (adjusted_mode->crtc_hdisplay != pipe_src_w) in i965_scale_aspect()
540 struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode; in i9xx_scale_aspect() local
543 u32 scaled_width = adjusted_mode->crtc_hdisplay * pipe_src_h; in i9xx_scale_aspect()
544 u32 scaled_height = pipe_src_w * adjusted_mode->crtc_vdisplay; in i9xx_scale_aspect()
553 centre_horizontally(adjusted_mode, in i9xx_scale_aspect()
557 if (pipe_src_h != adjusted_mode->crtc_vdisplay) { in i9xx_scale_aspect()
559 adjusted_mode->crtc_vdisplay); in i9xx_scale_aspect()
568 centre_vertically(adjusted_mode, in i9xx_scale_aspect()
572 if (pipe_src_w != adjusted_mode->crtc_hdisplay) { in i9xx_scale_aspect()
574 adjusted_mode->crtc_hdisplay); in i9xx_scale_aspect()
598 struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode; in gmch_panel_fitting() local
603 if (adjusted_mode->crtc_hdisplay == pipe_src_w && in gmch_panel_fitting()
604 adjusted_mode->crtc_vdisplay == pipe_src_h) in gmch_panel_fitting()
613 centre_horizontally(adjusted_mode, pipe_src_w); in gmch_panel_fitting()
614 centre_vertically(adjusted_mode, pipe_src_h); in gmch_panel_fitting()
630 if (pipe_src_h != adjusted_mode->crtc_vdisplay || in gmch_panel_fitting()
631 pipe_src_w != adjusted_mode->crtc_hdisplay) { in gmch_panel_fitting()