Lines Matching refs:plane_state
150 const struct intel_plane_state *plane_state) in i9xx_plane_ctl() argument
153 to_i915(plane_state->uapi.plane->dev); in i9xx_plane_ctl()
154 const struct drm_framebuffer *fb = plane_state->hw.fb; in i9xx_plane_ctl()
155 unsigned int rotation = plane_state->hw.rotation; in i9xx_plane_ctl()
222 int i9xx_check_plane_surface(struct intel_plane_state *plane_state) in i9xx_check_plane_surface() argument
225 to_i915(plane_state->uapi.plane->dev); in i9xx_check_plane_surface()
226 const struct drm_framebuffer *fb = plane_state->hw.fb; in i9xx_check_plane_surface()
231 ret = intel_plane_compute_gtt(plane_state); in i9xx_check_plane_surface()
235 if (!plane_state->uapi.visible) in i9xx_check_plane_surface()
238 src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in i9xx_check_plane_surface()
239 src_x = plane_state->uapi.src.x1 >> 16; in i9xx_check_plane_surface()
240 src_y = plane_state->uapi.src.y1 >> 16; in i9xx_check_plane_surface()
246 intel_add_fb_offsets(&src_x, &src_y, plane_state, 0); in i9xx_check_plane_surface()
250 plane_state, 0); in i9xx_check_plane_surface()
269 while ((src_x + src_w) * cpp > plane_state->view.color_plane[0].mapping_stride) { in i9xx_check_plane_surface()
276 offset = intel_plane_adjust_aligned_offset(&src_x, &src_y, plane_state, 0, in i9xx_check_plane_surface()
285 drm_rect_translate_to(&plane_state->uapi.src, in i9xx_check_plane_surface()
290 unsigned int rotation = plane_state->hw.rotation; in i9xx_check_plane_surface()
291 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in i9xx_check_plane_surface()
292 int src_h = drm_rect_height(&plane_state->uapi.src) >> 16; in i9xx_check_plane_surface()
309 plane_state->view.color_plane[0].offset = offset; in i9xx_check_plane_surface()
310 plane_state->view.color_plane[0].x = src_x; in i9xx_check_plane_surface()
311 plane_state->view.color_plane[0].y = src_y; in i9xx_check_plane_surface()
318 struct intel_plane_state *plane_state) in i9xx_plane_check() argument
320 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in i9xx_plane_check()
323 ret = chv_plane_check_rotation(plane_state); in i9xx_plane_check()
327 ret = intel_atomic_plane_check_clipping(plane_state, crtc_state, in i9xx_plane_check()
334 ret = i9xx_check_plane_surface(plane_state); in i9xx_plane_check()
338 if (!plane_state->uapi.visible) in i9xx_plane_check()
341 ret = intel_plane_check_src_coordinates(plane_state); in i9xx_plane_check()
345 plane_state->ctl = i9xx_plane_ctl(crtc_state, plane_state); in i9xx_plane_check()
369 const struct intel_plane_state *plane_state, in i9xx_plane_ratio() argument
372 const struct drm_framebuffer *fb = plane_state->hw.fb; in i9xx_plane_ratio()
392 const struct intel_plane_state *plane_state) in i9xx_plane_min_cdclk() argument
406 i9xx_plane_ratio(crtc_state, plane_state, &num, &den); in i9xx_plane_min_cdclk()
417 const struct intel_plane_state *plane_state) in i9xx_plane_update_noarm() argument
423 plane_state->view.color_plane[0].mapping_stride); in i9xx_plane_update_noarm()
426 int crtc_x = plane_state->uapi.dst.x1; in i9xx_plane_update_noarm()
427 int crtc_y = plane_state->uapi.dst.y1; in i9xx_plane_update_noarm()
428 int crtc_w = drm_rect_width(&plane_state->uapi.dst); in i9xx_plane_update_noarm()
429 int crtc_h = drm_rect_height(&plane_state->uapi.dst); in i9xx_plane_update_noarm()
445 const struct intel_plane_state *plane_state) in i9xx_plane_update_arm() argument
449 int x = plane_state->view.color_plane[0].x; in i9xx_plane_update_arm()
450 int y = plane_state->view.color_plane[0].y; in i9xx_plane_update_arm()
453 dspcntr = plane_state->ctl | i9xx_plane_ctl_crtc(crtc_state); in i9xx_plane_update_arm()
455 linear_offset = intel_fb_xy_to_linear(x, y, plane_state, 0); in i9xx_plane_update_arm()
458 dspaddr_offset = plane_state->view.color_plane[0].offset; in i9xx_plane_update_arm()
463 int crtc_x = plane_state->uapi.dst.x1; in i9xx_plane_update_arm()
464 int crtc_y = plane_state->uapi.dst.y1; in i9xx_plane_update_arm()
465 int crtc_w = drm_rect_width(&plane_state->uapi.dst); in i9xx_plane_update_arm()
466 int crtc_h = drm_rect_height(&plane_state->uapi.dst); in i9xx_plane_update_arm()
494 intel_plane_ggtt_offset(plane_state) + dspaddr_offset); in i9xx_plane_update_arm()
497 intel_plane_ggtt_offset(plane_state) + dspaddr_offset); in i9xx_plane_update_arm()
502 const struct intel_plane_state *plane_state) in i830_plane_update_arm() argument
510 i9xx_plane_update_noarm(plane, crtc_state, plane_state); in i830_plane_update_arm()
511 i9xx_plane_update_arm(plane, crtc_state, plane_state); in i830_plane_update_arm()
544 const struct intel_plane_state *plane_state, in g4x_primary_async_flip() argument
548 u32 dspcntr = plane_state->ctl | i9xx_plane_ctl_crtc(crtc_state); in g4x_primary_async_flip()
549 u32 dspaddr_offset = plane_state->view.color_plane[0].offset; in g4x_primary_async_flip()
558 intel_plane_ggtt_offset(plane_state) + dspaddr_offset); in g4x_primary_async_flip()
564 const struct intel_plane_state *plane_state, in vlv_primary_async_flip() argument
568 u32 dspaddr_offset = plane_state->view.color_plane[0].offset; in vlv_primary_async_flip()
572 intel_plane_ggtt_offset(plane_state) + dspaddr_offset); in vlv_primary_async_flip()