Lines Matching refs:adjusted_mode

97 			   const struct drm_display_mode *adjusted_mode)  in intel_panel_downclock_mode()  argument
101 int max_vrefresh = drm_mode_vrefresh(adjusted_mode); in intel_panel_downclock_mode()
107 if (is_alt_drrs_mode(fixed_mode, adjusted_mode) && in intel_panel_downclock_mode()
119 const struct drm_display_mode *adjusted_mode) in intel_panel_highest_mode() argument
121 const struct drm_display_mode *fixed_mode, *best_mode = adjusted_mode; in intel_panel_highest_mode()
160 struct drm_display_mode *adjusted_mode) in intel_panel_compute_config() argument
163 intel_panel_fixed_mode(connector, adjusted_mode); in intel_panel_compute_config()
174 if (abs(drm_mode_vrefresh(adjusted_mode) - drm_mode_vrefresh(fixed_mode)) > 1) { in intel_panel_compute_config()
178 drm_mode_vrefresh(adjusted_mode), drm_mode_vrefresh(fixed_mode)); in intel_panel_compute_config()
183 drm_mode_copy(adjusted_mode, fixed_mode); in intel_panel_compute_config()
185 drm_mode_set_crtcinfo(adjusted_mode, 0); in intel_panel_compute_config()
327 const struct drm_display_mode *adjusted_mode = in pch_panel_fitting() local
328 &crtc_state->hw.adjusted_mode; in pch_panel_fitting()
334 if (adjusted_mode->crtc_hdisplay == pipe_src_w && in pch_panel_fitting()
335 adjusted_mode->crtc_vdisplay == pipe_src_h && in pch_panel_fitting()
343 x = (adjusted_mode->crtc_hdisplay - width + 1)/2; in pch_panel_fitting()
344 y = (adjusted_mode->crtc_vdisplay - height + 1)/2; in pch_panel_fitting()
350 u32 scaled_width = adjusted_mode->crtc_hdisplay * pipe_src_h; in pch_panel_fitting()
351 u32 scaled_height = pipe_src_w * adjusted_mode->crtc_vdisplay; in pch_panel_fitting()
356 x = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in pch_panel_fitting()
358 height = adjusted_mode->crtc_vdisplay; in pch_panel_fitting()
363 y = (adjusted_mode->crtc_vdisplay - height + 1) / 2; in pch_panel_fitting()
365 width = adjusted_mode->crtc_hdisplay; in pch_panel_fitting()
368 width = adjusted_mode->crtc_hdisplay; in pch_panel_fitting()
369 height = adjusted_mode->crtc_vdisplay; in pch_panel_fitting()
375 WARN_ON(adjusted_mode->crtc_hdisplay != pipe_src_w); in pch_panel_fitting()
376 WARN_ON(adjusted_mode->crtc_vdisplay != pipe_src_h); in pch_panel_fitting()
380 width = adjusted_mode->crtc_hdisplay; in pch_panel_fitting()
381 height = adjusted_mode->crtc_vdisplay; in pch_panel_fitting()
397 centre_horizontally(struct drm_display_mode *adjusted_mode, in centre_horizontally() argument
403 sync_width = adjusted_mode->crtc_hsync_end - adjusted_mode->crtc_hsync_start; in centre_horizontally()
404 blank_width = adjusted_mode->crtc_hblank_end - adjusted_mode->crtc_hblank_start; in centre_horizontally()
407 border = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in centre_horizontally()
410 adjusted_mode->crtc_hdisplay = width; in centre_horizontally()
411 adjusted_mode->crtc_hblank_start = width + border; in centre_horizontally()
412 adjusted_mode->crtc_hblank_end = adjusted_mode->crtc_hblank_start + blank_width; in centre_horizontally()
414 adjusted_mode->crtc_hsync_start = adjusted_mode->crtc_hblank_start + sync_pos; in centre_horizontally()
415 adjusted_mode->crtc_hsync_end = adjusted_mode->crtc_hsync_start + sync_width; in centre_horizontally()
419 centre_vertically(struct drm_display_mode *adjusted_mode, in centre_vertically() argument
425 sync_width = adjusted_mode->crtc_vsync_end - adjusted_mode->crtc_vsync_start; in centre_vertically()
426 blank_width = adjusted_mode->crtc_vblank_end - adjusted_mode->crtc_vblank_start; in centre_vertically()
429 border = (adjusted_mode->crtc_vdisplay - height + 1) / 2; in centre_vertically()
431 adjusted_mode->crtc_vdisplay = height; in centre_vertically()
432 adjusted_mode->crtc_vblank_start = height + border; in centre_vertically()
433 adjusted_mode->crtc_vblank_end = adjusted_mode->crtc_vblank_start + blank_width; in centre_vertically()
435 adjusted_mode->crtc_vsync_start = adjusted_mode->crtc_vblank_start + sync_pos; in centre_vertically()
436 adjusted_mode->crtc_vsync_end = adjusted_mode->crtc_vsync_start + sync_width; in centre_vertically()
455 const struct drm_display_mode *adjusted_mode = in i965_scale_aspect() local
456 &crtc_state->hw.adjusted_mode; in i965_scale_aspect()
459 u32 scaled_width = adjusted_mode->crtc_hdisplay * pipe_src_h; in i965_scale_aspect()
460 u32 scaled_height = pipe_src_w * adjusted_mode->crtc_vdisplay; in i965_scale_aspect()
469 else if (adjusted_mode->crtc_hdisplay != pipe_src_w) in i965_scale_aspect()
477 struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode; in i9xx_scale_aspect() local
480 u32 scaled_width = adjusted_mode->crtc_hdisplay * pipe_src_h; in i9xx_scale_aspect()
481 u32 scaled_height = pipe_src_w * adjusted_mode->crtc_vdisplay; in i9xx_scale_aspect()
490 centre_horizontally(adjusted_mode, in i9xx_scale_aspect()
494 if (pipe_src_h != adjusted_mode->crtc_vdisplay) { in i9xx_scale_aspect()
496 adjusted_mode->crtc_vdisplay); in i9xx_scale_aspect()
505 centre_vertically(adjusted_mode, in i9xx_scale_aspect()
509 if (pipe_src_w != adjusted_mode->crtc_hdisplay) { in i9xx_scale_aspect()
511 adjusted_mode->crtc_hdisplay); in i9xx_scale_aspect()
534 struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode; in gmch_panel_fitting() local
539 if (adjusted_mode->crtc_hdisplay == pipe_src_w && in gmch_panel_fitting()
540 adjusted_mode->crtc_vdisplay == pipe_src_h) in gmch_panel_fitting()
549 centre_horizontally(adjusted_mode, pipe_src_w); in gmch_panel_fitting()
550 centre_vertically(adjusted_mode, pipe_src_h); in gmch_panel_fitting()
566 if (pipe_src_h != adjusted_mode->crtc_vdisplay || in gmch_panel_fitting()
567 pipe_src_w != adjusted_mode->crtc_hdisplay) { in gmch_panel_fitting()