Lines Matching refs:adjusted_mode
42 struct drm_display_mode *adjusted_mode) in intel_fixed_panel_mode() argument
44 drm_mode_copy(adjusted_mode, fixed_mode); in intel_fixed_panel_mode()
46 drm_mode_set_crtcinfo(adjusted_mode, 0); in intel_fixed_panel_mode()
108 const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_pch_panel_fitting() local
112 if (adjusted_mode->crtc_hdisplay == pipe_config->pipe_src_w && in intel_pch_panel_fitting()
113 adjusted_mode->crtc_vdisplay == pipe_config->pipe_src_h) in intel_pch_panel_fitting()
120 x = (adjusted_mode->crtc_hdisplay - width + 1)/2; in intel_pch_panel_fitting()
121 y = (adjusted_mode->crtc_vdisplay - height + 1)/2; in intel_pch_panel_fitting()
127 u32 scaled_width = adjusted_mode->crtc_hdisplay in intel_pch_panel_fitting()
130 * adjusted_mode->crtc_vdisplay; in intel_pch_panel_fitting()
135 x = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in intel_pch_panel_fitting()
137 height = adjusted_mode->crtc_vdisplay; in intel_pch_panel_fitting()
142 y = (adjusted_mode->crtc_vdisplay - height + 1) / 2; in intel_pch_panel_fitting()
144 width = adjusted_mode->crtc_hdisplay; in intel_pch_panel_fitting()
147 width = adjusted_mode->crtc_hdisplay; in intel_pch_panel_fitting()
148 height = adjusted_mode->crtc_vdisplay; in intel_pch_panel_fitting()
155 width = adjusted_mode->crtc_hdisplay; in intel_pch_panel_fitting()
156 height = adjusted_mode->crtc_vdisplay; in intel_pch_panel_fitting()
171 centre_horizontally(struct drm_display_mode *adjusted_mode, in centre_horizontally() argument
177 sync_width = adjusted_mode->crtc_hsync_end - adjusted_mode->crtc_hsync_start; in centre_horizontally()
178 blank_width = adjusted_mode->crtc_hblank_end - adjusted_mode->crtc_hblank_start; in centre_horizontally()
181 border = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in centre_horizontally()
184 adjusted_mode->crtc_hdisplay = width; in centre_horizontally()
185 adjusted_mode->crtc_hblank_start = width + border; in centre_horizontally()
186 adjusted_mode->crtc_hblank_end = adjusted_mode->crtc_hblank_start + blank_width; in centre_horizontally()
188 adjusted_mode->crtc_hsync_start = adjusted_mode->crtc_hblank_start + sync_pos; in centre_horizontally()
189 adjusted_mode->crtc_hsync_end = adjusted_mode->crtc_hsync_start + sync_width; in centre_horizontally()
193 centre_vertically(struct drm_display_mode *adjusted_mode, in centre_vertically() argument
199 sync_width = adjusted_mode->crtc_vsync_end - adjusted_mode->crtc_vsync_start; in centre_vertically()
200 blank_width = adjusted_mode->crtc_vblank_end - adjusted_mode->crtc_vblank_start; in centre_vertically()
203 border = (adjusted_mode->crtc_vdisplay - height + 1) / 2; in centre_vertically()
205 adjusted_mode->crtc_vdisplay = height; in centre_vertically()
206 adjusted_mode->crtc_vblank_start = height + border; in centre_vertically()
207 adjusted_mode->crtc_vblank_end = adjusted_mode->crtc_vblank_start + blank_width; in centre_vertically()
209 adjusted_mode->crtc_vsync_start = adjusted_mode->crtc_vblank_start + sync_pos; in centre_vertically()
210 adjusted_mode->crtc_vsync_end = adjusted_mode->crtc_vsync_start + sync_width; in centre_vertically()
229 const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in i965_scale_aspect() local
230 u32 scaled_width = adjusted_mode->crtc_hdisplay * in i965_scale_aspect()
233 adjusted_mode->crtc_vdisplay; in i965_scale_aspect()
242 else if (adjusted_mode->crtc_hdisplay != pipe_config->pipe_src_w) in i965_scale_aspect()
250 struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in i9xx_scale_aspect() local
251 u32 scaled_width = adjusted_mode->crtc_hdisplay * in i9xx_scale_aspect()
254 adjusted_mode->crtc_vdisplay; in i9xx_scale_aspect()
263 centre_horizontally(adjusted_mode, in i9xx_scale_aspect()
268 if (pipe_config->pipe_src_h != adjusted_mode->crtc_vdisplay) { in i9xx_scale_aspect()
270 adjusted_mode->crtc_vdisplay); in i9xx_scale_aspect()
279 centre_vertically(adjusted_mode, in i9xx_scale_aspect()
284 if (pipe_config->pipe_src_w != adjusted_mode->crtc_hdisplay) { in i9xx_scale_aspect()
286 adjusted_mode->crtc_hdisplay); in i9xx_scale_aspect()
309 struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_gmch_panel_fitting() local
312 if (adjusted_mode->crtc_hdisplay == pipe_config->pipe_src_w && in intel_gmch_panel_fitting()
313 adjusted_mode->crtc_vdisplay == pipe_config->pipe_src_h) in intel_gmch_panel_fitting()
322 centre_horizontally(adjusted_mode, pipe_config->pipe_src_w); in intel_gmch_panel_fitting()
323 centre_vertically(adjusted_mode, pipe_config->pipe_src_h); in intel_gmch_panel_fitting()
339 if (pipe_config->pipe_src_h != adjusted_mode->crtc_vdisplay || in intel_gmch_panel_fitting()
340 pipe_config->pipe_src_w != adjusted_mode->crtc_hdisplay) { in intel_gmch_panel_fitting()