Lines Matching refs:pipe_config

105 			struct intel_crtc_state *pipe_config,  in intel_pch_panel_fitting()  argument
108 const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_pch_panel_fitting()
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()
114 !pipe_config->ycbcr420) in intel_pch_panel_fitting()
119 width = pipe_config->pipe_src_w; in intel_pch_panel_fitting()
120 height = pipe_config->pipe_src_h; in intel_pch_panel_fitting()
129 * pipe_config->pipe_src_h; in intel_pch_panel_fitting()
130 u32 scaled_height = pipe_config->pipe_src_w in intel_pch_panel_fitting()
133 width = scaled_height / pipe_config->pipe_src_h; in intel_pch_panel_fitting()
140 height = scaled_width / pipe_config->pipe_src_w; in intel_pch_panel_fitting()
166 pipe_config->pch_pfit.pos = (x << 16) | y; in intel_pch_panel_fitting()
167 pipe_config->pch_pfit.size = (width << 16) | height; in intel_pch_panel_fitting()
168 pipe_config->pch_pfit.enabled = pipe_config->pch_pfit.size != 0; in intel_pch_panel_fitting()
227 static void i965_scale_aspect(struct intel_crtc_state *pipe_config, in i965_scale_aspect() argument
230 const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in i965_scale_aspect()
232 pipe_config->pipe_src_h; in i965_scale_aspect()
233 u32 scaled_height = pipe_config->pipe_src_w * in i965_scale_aspect()
243 else if (adjusted_mode->crtc_hdisplay != pipe_config->pipe_src_w) in i965_scale_aspect()
247 static void i9xx_scale_aspect(struct intel_crtc_state *pipe_config, in i9xx_scale_aspect() argument
251 struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in i9xx_scale_aspect()
253 pipe_config->pipe_src_h; in i9xx_scale_aspect()
254 u32 scaled_height = pipe_config->pipe_src_w * in i9xx_scale_aspect()
266 pipe_config->pipe_src_h); in i9xx_scale_aspect()
269 if (pipe_config->pipe_src_h != adjusted_mode->crtc_vdisplay) { in i9xx_scale_aspect()
270 bits = panel_fitter_scaling(pipe_config->pipe_src_h, in i9xx_scale_aspect()
282 pipe_config->pipe_src_w); in i9xx_scale_aspect()
285 if (pipe_config->pipe_src_w != adjusted_mode->crtc_hdisplay) { in i9xx_scale_aspect()
286 bits = panel_fitter_scaling(pipe_config->pipe_src_w, in i9xx_scale_aspect()
305 struct intel_crtc_state *pipe_config, in intel_gmch_panel_fitting() argument
310 struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_gmch_panel_fitting()
313 if (adjusted_mode->crtc_hdisplay == pipe_config->pipe_src_w && in intel_gmch_panel_fitting()
314 adjusted_mode->crtc_vdisplay == pipe_config->pipe_src_h) in intel_gmch_panel_fitting()
323 centre_horizontally(adjusted_mode, pipe_config->pipe_src_w); in intel_gmch_panel_fitting()
324 centre_vertically(adjusted_mode, pipe_config->pipe_src_h); in intel_gmch_panel_fitting()
330 i965_scale_aspect(pipe_config, &pfit_control); in intel_gmch_panel_fitting()
332 i9xx_scale_aspect(pipe_config, &pfit_control, in intel_gmch_panel_fitting()
340 if (pipe_config->pipe_src_h != adjusted_mode->crtc_vdisplay || in intel_gmch_panel_fitting()
341 pipe_config->pipe_src_w != adjusted_mode->crtc_hdisplay) { in intel_gmch_panel_fitting()
370 if (INTEL_GEN(dev_priv) < 4 && pipe_config->pipe_bpp == 18) in intel_gmch_panel_fitting()
373 pipe_config->gmch_pfit.control = pfit_control; in intel_gmch_panel_fitting()
374 pipe_config->gmch_pfit.pgm_ratios = pfit_pgm_ratios; in intel_gmch_panel_fitting()
375 pipe_config->gmch_pfit.lvds_border_bits = border; in intel_gmch_panel_fitting()