Lines Matching refs:adjusted_mode

47 		       struct drm_display_mode *adjusted_mode)  in intel_fixed_panel_mode()  argument
49 drm_mode_copy(adjusted_mode, fixed_mode); in intel_fixed_panel_mode()
51 drm_mode_set_crtcinfo(adjusted_mode, 0); in intel_fixed_panel_mode()
181 const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_pch_panel_fitting() local
185 if (adjusted_mode->crtc_hdisplay == pipe_config->pipe_src_w && in intel_pch_panel_fitting()
186 adjusted_mode->crtc_vdisplay == pipe_config->pipe_src_h && in intel_pch_panel_fitting()
194 x = (adjusted_mode->crtc_hdisplay - width + 1)/2; in intel_pch_panel_fitting()
195 y = (adjusted_mode->crtc_vdisplay - height + 1)/2; in intel_pch_panel_fitting()
201 u32 scaled_width = adjusted_mode->crtc_hdisplay in intel_pch_panel_fitting()
204 * adjusted_mode->crtc_vdisplay; in intel_pch_panel_fitting()
209 x = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in intel_pch_panel_fitting()
211 height = adjusted_mode->crtc_vdisplay; in intel_pch_panel_fitting()
216 y = (adjusted_mode->crtc_vdisplay - height + 1) / 2; in intel_pch_panel_fitting()
218 width = adjusted_mode->crtc_hdisplay; in intel_pch_panel_fitting()
221 width = adjusted_mode->crtc_hdisplay; in intel_pch_panel_fitting()
222 height = adjusted_mode->crtc_vdisplay; in intel_pch_panel_fitting()
229 width = adjusted_mode->crtc_hdisplay; in intel_pch_panel_fitting()
230 height = adjusted_mode->crtc_vdisplay; in intel_pch_panel_fitting()
245 centre_horizontally(struct drm_display_mode *adjusted_mode, in centre_horizontally() argument
251 sync_width = adjusted_mode->crtc_hsync_end - adjusted_mode->crtc_hsync_start; in centre_horizontally()
252 blank_width = adjusted_mode->crtc_hblank_end - adjusted_mode->crtc_hblank_start; in centre_horizontally()
255 border = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in centre_horizontally()
258 adjusted_mode->crtc_hdisplay = width; in centre_horizontally()
259 adjusted_mode->crtc_hblank_start = width + border; in centre_horizontally()
260 adjusted_mode->crtc_hblank_end = adjusted_mode->crtc_hblank_start + blank_width; in centre_horizontally()
262 adjusted_mode->crtc_hsync_start = adjusted_mode->crtc_hblank_start + sync_pos; in centre_horizontally()
263 adjusted_mode->crtc_hsync_end = adjusted_mode->crtc_hsync_start + sync_width; in centre_horizontally()
267 centre_vertically(struct drm_display_mode *adjusted_mode, in centre_vertically() argument
273 sync_width = adjusted_mode->crtc_vsync_end - adjusted_mode->crtc_vsync_start; in centre_vertically()
274 blank_width = adjusted_mode->crtc_vblank_end - adjusted_mode->crtc_vblank_start; in centre_vertically()
277 border = (adjusted_mode->crtc_vdisplay - height + 1) / 2; in centre_vertically()
279 adjusted_mode->crtc_vdisplay = height; in centre_vertically()
280 adjusted_mode->crtc_vblank_start = height + border; in centre_vertically()
281 adjusted_mode->crtc_vblank_end = adjusted_mode->crtc_vblank_start + blank_width; in centre_vertically()
283 adjusted_mode->crtc_vsync_start = adjusted_mode->crtc_vblank_start + sync_pos; in centre_vertically()
284 adjusted_mode->crtc_vsync_end = adjusted_mode->crtc_vsync_start + sync_width; in centre_vertically()
303 const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in i965_scale_aspect() local
304 u32 scaled_width = adjusted_mode->crtc_hdisplay * in i965_scale_aspect()
307 adjusted_mode->crtc_vdisplay; in i965_scale_aspect()
316 else if (adjusted_mode->crtc_hdisplay != pipe_config->pipe_src_w) in i965_scale_aspect()
324 struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in i9xx_scale_aspect() local
325 u32 scaled_width = adjusted_mode->crtc_hdisplay * in i9xx_scale_aspect()
328 adjusted_mode->crtc_vdisplay; in i9xx_scale_aspect()
337 centre_horizontally(adjusted_mode, in i9xx_scale_aspect()
342 if (pipe_config->pipe_src_h != adjusted_mode->crtc_vdisplay) { in i9xx_scale_aspect()
344 adjusted_mode->crtc_vdisplay); in i9xx_scale_aspect()
353 centre_vertically(adjusted_mode, in i9xx_scale_aspect()
358 if (pipe_config->pipe_src_w != adjusted_mode->crtc_hdisplay) { in i9xx_scale_aspect()
360 adjusted_mode->crtc_hdisplay); in i9xx_scale_aspect()
383 struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_gmch_panel_fitting() local
386 if (adjusted_mode->crtc_hdisplay == pipe_config->pipe_src_w && in intel_gmch_panel_fitting()
387 adjusted_mode->crtc_vdisplay == pipe_config->pipe_src_h) in intel_gmch_panel_fitting()
396 centre_horizontally(adjusted_mode, pipe_config->pipe_src_w); in intel_gmch_panel_fitting()
397 centre_vertically(adjusted_mode, pipe_config->pipe_src_h); in intel_gmch_panel_fitting()
413 if (pipe_config->pipe_src_h != adjusted_mode->crtc_vdisplay || in intel_gmch_panel_fitting()
414 pipe_config->pipe_src_w != adjusted_mode->crtc_hdisplay) { in intel_gmch_panel_fitting()