• Home
  • Raw
  • Download

Lines Matching refs:pipe_config

178 			struct intel_crtc_state *pipe_config,  in intel_pch_panel_fitting()  argument
181 const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_pch_panel_fitting()
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()
187 pipe_config->output_format != INTEL_OUTPUT_FORMAT_YCBCR420) in intel_pch_panel_fitting()
192 width = pipe_config->pipe_src_w; in intel_pch_panel_fitting()
193 height = pipe_config->pipe_src_h; in intel_pch_panel_fitting()
202 * pipe_config->pipe_src_h; in intel_pch_panel_fitting()
203 u32 scaled_height = pipe_config->pipe_src_w in intel_pch_panel_fitting()
206 width = scaled_height / pipe_config->pipe_src_h; in intel_pch_panel_fitting()
213 height = scaled_width / pipe_config->pipe_src_w; in intel_pch_panel_fitting()
239 pipe_config->pch_pfit.pos = (x << 16) | y; in intel_pch_panel_fitting()
240 pipe_config->pch_pfit.size = (width << 16) | height; in intel_pch_panel_fitting()
241 pipe_config->pch_pfit.enabled = pipe_config->pch_pfit.size != 0; in intel_pch_panel_fitting()
300 static void i965_scale_aspect(struct intel_crtc_state *pipe_config, in i965_scale_aspect() argument
303 const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in i965_scale_aspect()
305 pipe_config->pipe_src_h; in i965_scale_aspect()
306 u32 scaled_height = pipe_config->pipe_src_w * in i965_scale_aspect()
316 else if (adjusted_mode->crtc_hdisplay != pipe_config->pipe_src_w) in i965_scale_aspect()
320 static void i9xx_scale_aspect(struct intel_crtc_state *pipe_config, in i9xx_scale_aspect() argument
324 struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in i9xx_scale_aspect()
326 pipe_config->pipe_src_h; in i9xx_scale_aspect()
327 u32 scaled_height = pipe_config->pipe_src_w * in i9xx_scale_aspect()
339 pipe_config->pipe_src_h); in i9xx_scale_aspect()
342 if (pipe_config->pipe_src_h != adjusted_mode->crtc_vdisplay) { in i9xx_scale_aspect()
343 bits = panel_fitter_scaling(pipe_config->pipe_src_h, in i9xx_scale_aspect()
355 pipe_config->pipe_src_w); in i9xx_scale_aspect()
358 if (pipe_config->pipe_src_w != adjusted_mode->crtc_hdisplay) { in i9xx_scale_aspect()
359 bits = panel_fitter_scaling(pipe_config->pipe_src_w, in i9xx_scale_aspect()
378 struct intel_crtc_state *pipe_config, in intel_gmch_panel_fitting() argument
383 struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_gmch_panel_fitting()
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()
403 i965_scale_aspect(pipe_config, &pfit_control); in intel_gmch_panel_fitting()
405 i9xx_scale_aspect(pipe_config, &pfit_control, 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()
443 if (INTEL_GEN(dev_priv) < 4 && pipe_config->pipe_bpp == 18) in intel_gmch_panel_fitting()
446 pipe_config->gmch_pfit.control = pfit_control; in intel_gmch_panel_fitting()
447 pipe_config->gmch_pfit.pgm_ratios = pfit_pgm_ratios; in intel_gmch_panel_fitting()
448 pipe_config->gmch_pfit.lvds_border_bits = border; in intel_gmch_panel_fitting()