Lines Matching refs:adjusted_mode
39 struct drm_display_mode *adjusted_mode) in intel_fixed_panel_mode() argument
41 drm_mode_copy(adjusted_mode, fixed_mode); in intel_fixed_panel_mode()
43 drm_mode_set_crtcinfo(adjusted_mode, 0); in intel_fixed_panel_mode()
105 struct drm_display_mode *adjusted_mode; in intel_pch_panel_fitting() local
108 adjusted_mode = &pipe_config->base.adjusted_mode; in intel_pch_panel_fitting()
113 if (adjusted_mode->hdisplay == pipe_config->pipe_src_w && in intel_pch_panel_fitting()
114 adjusted_mode->vdisplay == pipe_config->pipe_src_h) in intel_pch_panel_fitting()
121 x = (adjusted_mode->hdisplay - width + 1)/2; in intel_pch_panel_fitting()
122 y = (adjusted_mode->vdisplay - height + 1)/2; in intel_pch_panel_fitting()
128 u32 scaled_width = adjusted_mode->hdisplay in intel_pch_panel_fitting()
131 * adjusted_mode->vdisplay; in intel_pch_panel_fitting()
136 x = (adjusted_mode->hdisplay - width + 1) / 2; in intel_pch_panel_fitting()
138 height = adjusted_mode->vdisplay; in intel_pch_panel_fitting()
143 y = (adjusted_mode->vdisplay - height + 1) / 2; in intel_pch_panel_fitting()
145 width = adjusted_mode->hdisplay; in intel_pch_panel_fitting()
148 width = adjusted_mode->hdisplay; in intel_pch_panel_fitting()
149 height = adjusted_mode->vdisplay; in intel_pch_panel_fitting()
156 width = adjusted_mode->hdisplay; in intel_pch_panel_fitting()
157 height = adjusted_mode->vdisplay; in intel_pch_panel_fitting()
230 struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in i965_scale_aspect() local
231 u32 scaled_width = adjusted_mode->hdisplay * in i965_scale_aspect()
234 adjusted_mode->vdisplay; in i965_scale_aspect()
243 else if (adjusted_mode->hdisplay != pipe_config->pipe_src_w) in i965_scale_aspect()
251 struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in i9xx_scale_aspect() local
252 u32 scaled_width = adjusted_mode->hdisplay * in i9xx_scale_aspect()
255 adjusted_mode->vdisplay; in i9xx_scale_aspect()
264 centre_horizontally(adjusted_mode, in i9xx_scale_aspect()
269 if (pipe_config->pipe_src_h != adjusted_mode->vdisplay) { in i9xx_scale_aspect()
271 adjusted_mode->vdisplay); in i9xx_scale_aspect()
280 centre_vertically(adjusted_mode, in i9xx_scale_aspect()
285 if (pipe_config->pipe_src_w != adjusted_mode->hdisplay) { in i9xx_scale_aspect()
287 adjusted_mode->hdisplay); in i9xx_scale_aspect()
310 struct drm_display_mode *adjusted_mode; in intel_gmch_panel_fitting() local
312 adjusted_mode = &pipe_config->base.adjusted_mode; in intel_gmch_panel_fitting()
315 if (adjusted_mode->hdisplay == pipe_config->pipe_src_w && in intel_gmch_panel_fitting()
316 adjusted_mode->vdisplay == pipe_config->pipe_src_h) in intel_gmch_panel_fitting()
325 centre_horizontally(adjusted_mode, pipe_config->pipe_src_w); in intel_gmch_panel_fitting()
326 centre_vertically(adjusted_mode, pipe_config->pipe_src_h); in intel_gmch_panel_fitting()
342 if (pipe_config->pipe_src_h != adjusted_mode->vdisplay || in intel_gmch_panel_fitting()
343 pipe_config->pipe_src_w != adjusted_mode->hdisplay) { in intel_gmch_panel_fitting()