Lines Matching defs:adjusted_mode

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