Lines Matching refs:pstate

1193 				   const struct intel_plane_state *pstate,
2465 const struct intel_plane_state *pstate, in ilk_compute_pri_wm() argument
2472 if (!intel_wm_plane_visible(cstate, pstate)) in ilk_compute_pri_wm()
2475 cpp = pstate->base.fb->format->cpp[0]; in ilk_compute_pri_wm()
2484 drm_rect_width(&pstate->base.dst), in ilk_compute_pri_wm()
2495 const struct intel_plane_state *pstate, in ilk_compute_spr_wm() argument
2501 if (!intel_wm_plane_visible(cstate, pstate)) in ilk_compute_spr_wm()
2504 cpp = pstate->base.fb->format->cpp[0]; in ilk_compute_spr_wm()
2509 drm_rect_width(&pstate->base.dst), in ilk_compute_spr_wm()
2519 const struct intel_plane_state *pstate, in ilk_compute_cur_wm() argument
2524 if (!intel_wm_plane_visible(cstate, pstate)) in ilk_compute_cur_wm()
2527 cpp = pstate->base.fb->format->cpp[0]; in ilk_compute_cur_wm()
2531 pstate->base.crtc_w, cpp, mem_value); in ilk_compute_cur_wm()
2536 const struct intel_plane_state *pstate, in ilk_compute_fbc_wm() argument
2541 if (!intel_wm_plane_visible(cstate, pstate)) in ilk_compute_fbc_wm()
2544 cpp = pstate->base.fb->format->cpp[0]; in ilk_compute_fbc_wm()
2546 return ilk_wm_fbc(pri_val, drm_rect_width(&pstate->base.dst), cpp); in ilk_compute_fbc_wm()
3850 const struct intel_plane_state *pstate) in skl_plane_downscale_amount() argument
3852 struct intel_plane *plane = to_intel_plane(pstate->base.plane); in skl_plane_downscale_amount()
3857 if (WARN_ON(!intel_wm_plane_visible(cstate, pstate))) in skl_plane_downscale_amount()
3866 src_w = pstate->base.src_w >> 16; in skl_plane_downscale_amount()
3867 src_h = pstate->base.src_h >> 16; in skl_plane_downscale_amount()
3868 dst_w = pstate->base.crtc_w; in skl_plane_downscale_amount()
3869 dst_h = pstate->base.crtc_h; in skl_plane_downscale_amount()
3876 src_w = drm_rect_width(&pstate->base.src) >> 16; in skl_plane_downscale_amount()
3877 src_h = drm_rect_height(&pstate->base.src) >> 16; in skl_plane_downscale_amount()
3878 dst_w = drm_rect_width(&pstate->base.dst); in skl_plane_downscale_amount()
3879 dst_h = drm_rect_height(&pstate->base.dst); in skl_plane_downscale_amount()
3929 const struct drm_plane_state *pstate; in skl_check_pipe_max_pixel_rate() local
3939 drm_atomic_crtc_state_for_each_plane_state(plane, pstate, crtc_state) { in skl_check_pipe_max_pixel_rate()
3945 to_intel_plane_state(pstate))) in skl_check_pipe_max_pixel_rate()
3948 if (WARN_ON(!pstate->fb)) in skl_check_pipe_max_pixel_rate()
3951 intel_pstate = to_intel_plane_state(pstate); in skl_check_pipe_max_pixel_rate()
3954 bpp = pstate->fb->format->cpp[0] * 8; in skl_check_pipe_max_pixel_rate()
3983 const struct drm_plane_state *pstate, in skl_plane_relative_data_rate() argument
3986 struct intel_plane *plane = to_intel_plane(pstate->plane); in skl_plane_relative_data_rate()
3987 struct intel_plane_state *intel_pstate = to_intel_plane_state(pstate); in skl_plane_relative_data_rate()
3997 fb = pstate->fb; in skl_plane_relative_data_rate()
4044 const struct drm_plane_state *pstate; in skl_get_total_relative_data_rate() local
4051 drm_atomic_crtc_state_for_each_plane_state(plane, pstate, cstate) { in skl_get_total_relative_data_rate()
4057 pstate, 0); in skl_get_total_relative_data_rate()
4064 pstate, 1); in skl_get_total_relative_data_rate()
4074 skl_ddb_min_alloc(const struct drm_plane_state *pstate, in skl_ddb_min_alloc() argument
4077 struct drm_framebuffer *fb = pstate->fb; in skl_ddb_min_alloc()
4078 struct intel_plane_state *intel_pstate = to_intel_plane_state(pstate); in skl_ddb_min_alloc()
4116 if (drm_rotation_90_or_270(pstate->rotation)) { in skl_ddb_min_alloc()
4144 const struct drm_plane_state *pstate; in skl_ddb_calc_min() local
4147 drm_atomic_crtc_state_for_each_plane_state(plane, pstate, &cstate->base) { in skl_ddb_calc_min()
4153 if (!pstate->visible) in skl_ddb_calc_min()
4156 minimum[plane_id] = skl_ddb_min_alloc(pstate, 0); in skl_ddb_calc_min()
4157 y_minimum[plane_id] = skl_ddb_min_alloc(pstate, 1); in skl_ddb_calc_min()
4349 const struct intel_plane_state *pstate) in skl_adjusted_plane_pixel_rate() argument
4355 if (WARN_ON(!intel_wm_plane_visible(cstate, pstate))) in skl_adjusted_plane_pixel_rate()
4363 downscale_amount = skl_plane_downscale_amount(cstate, pstate); in skl_adjusted_plane_pixel_rate()
4376 const struct drm_plane_state *pstate = &intel_pstate->base; in skl_compute_plane_wm_params() local
4377 const struct drm_framebuffer *fb = pstate->fb; in skl_compute_plane_wm_params()
4410 if (drm_rotation_90_or_270(pstate->rotation)) { in skl_compute_plane_wm_params()
4469 const struct drm_plane_state *pstate = &intel_pstate->base; in skl_compute_plane_wm() local
4544 struct drm_plane *plane = pstate->plane; in skl_compute_plane_wm()
4686 const struct drm_plane_state *pstate; in skl_build_pipe_wm() local
4696 drm_atomic_crtc_state_for_each_plane_state(plane, pstate, crtc_state) { in skl_build_pipe_wm()
4698 to_intel_plane_state(pstate); in skl_build_pipe_wm()