Lines Matching refs:plane_state

154 			  const struct intel_plane_state *plane_state)  in i9xx_plane_ctl()  argument
157 to_i915(plane_state->uapi.plane->dev); in i9xx_plane_ctl()
158 const struct drm_framebuffer *fb = plane_state->hw.fb; in i9xx_plane_ctl()
159 unsigned int rotation = plane_state->hw.rotation; in i9xx_plane_ctl()
226 int i9xx_check_plane_surface(struct intel_plane_state *plane_state) in i9xx_check_plane_surface() argument
228 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in i9xx_check_plane_surface()
230 const struct drm_framebuffer *fb = plane_state->hw.fb; in i9xx_check_plane_surface()
235 ret = intel_plane_compute_gtt(plane_state); in i9xx_check_plane_surface()
239 if (!plane_state->uapi.visible) in i9xx_check_plane_surface()
242 src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in i9xx_check_plane_surface()
243 src_x = plane_state->uapi.src.x1 >> 16; in i9xx_check_plane_surface()
244 src_y = plane_state->uapi.src.y1 >> 16; in i9xx_check_plane_surface()
250 intel_add_fb_offsets(&src_x, &src_y, plane_state, 0); in i9xx_check_plane_surface()
254 plane_state, 0); in i9xx_check_plane_surface()
273 while ((src_x + src_w) * cpp > plane_state->view.color_plane[0].mapping_stride) { in i9xx_check_plane_surface()
280 offset = intel_plane_adjust_aligned_offset(&src_x, &src_y, plane_state, 0, in i9xx_check_plane_surface()
289 drm_rect_translate_to(&plane_state->uapi.src, in i9xx_check_plane_surface()
294 unsigned int rotation = plane_state->hw.rotation; in i9xx_check_plane_surface()
295 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in i9xx_check_plane_surface()
296 int src_h = drm_rect_height(&plane_state->uapi.src) >> 16; in i9xx_check_plane_surface()
313 plane_state->view.color_plane[0].offset = offset; in i9xx_check_plane_surface()
314 plane_state->view.color_plane[0].x = src_x; in i9xx_check_plane_surface()
315 plane_state->view.color_plane[0].y = src_y; in i9xx_check_plane_surface()
322 struct intel_plane_state *plane_state) in i9xx_plane_check() argument
324 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in i9xx_plane_check()
327 ret = chv_plane_check_rotation(plane_state); in i9xx_plane_check()
331 ret = intel_atomic_plane_check_clipping(plane_state, crtc_state, in i9xx_plane_check()
338 ret = i9xx_check_plane_surface(plane_state); in i9xx_plane_check()
342 if (!plane_state->uapi.visible) in i9xx_plane_check()
345 ret = intel_plane_check_src_coordinates(plane_state); in i9xx_plane_check()
349 plane_state->ctl = i9xx_plane_ctl(crtc_state, plane_state); in i9xx_plane_check()
373 const struct intel_plane_state *plane_state, in i9xx_plane_ratio() argument
376 const struct drm_framebuffer *fb = plane_state->hw.fb; in i9xx_plane_ratio()
396 const struct intel_plane_state *plane_state) in i9xx_plane_min_cdclk() argument
410 i9xx_plane_ratio(crtc_state, plane_state, &num, &den); in i9xx_plane_min_cdclk()
421 const struct intel_plane_state *plane_state) in i9xx_plane_update_noarm() argument
427 plane_state->view.color_plane[0].mapping_stride); in i9xx_plane_update_noarm()
430 int crtc_x = plane_state->uapi.dst.x1; in i9xx_plane_update_noarm()
431 int crtc_y = plane_state->uapi.dst.y1; in i9xx_plane_update_noarm()
432 int crtc_w = drm_rect_width(&plane_state->uapi.dst); in i9xx_plane_update_noarm()
433 int crtc_h = drm_rect_height(&plane_state->uapi.dst); in i9xx_plane_update_noarm()
449 const struct intel_plane_state *plane_state) in i9xx_plane_update_arm() argument
453 int x = plane_state->view.color_plane[0].x; in i9xx_plane_update_arm()
454 int y = plane_state->view.color_plane[0].y; in i9xx_plane_update_arm()
457 dspcntr = plane_state->ctl | i9xx_plane_ctl_crtc(crtc_state); in i9xx_plane_update_arm()
464 linear_offset = intel_fb_xy_to_linear(x, y, plane_state, 0); in i9xx_plane_update_arm()
467 dspaddr_offset = plane_state->view.color_plane[0].offset; in i9xx_plane_update_arm()
472 int crtc_x = plane_state->uapi.dst.x1; in i9xx_plane_update_arm()
473 int crtc_y = plane_state->uapi.dst.y1; in i9xx_plane_update_arm()
474 int crtc_w = drm_rect_width(&plane_state->uapi.dst); in i9xx_plane_update_arm()
475 int crtc_h = drm_rect_height(&plane_state->uapi.dst); in i9xx_plane_update_arm()
504 intel_plane_ggtt_offset(plane_state) + dspaddr_offset); in i9xx_plane_update_arm()
507 intel_plane_ggtt_offset(plane_state) + dspaddr_offset); in i9xx_plane_update_arm()
512 const struct intel_plane_state *plane_state) in i830_plane_update_arm() argument
520 i9xx_plane_update_noarm(plane, crtc_state, plane_state); in i830_plane_update_arm()
521 i9xx_plane_update_arm(plane, crtc_state, plane_state); in i830_plane_update_arm()
554 const struct intel_plane_state *plane_state, in g4x_primary_async_flip() argument
558 u32 dspcntr = plane_state->ctl | i9xx_plane_ctl_crtc(crtc_state); in g4x_primary_async_flip()
559 u32 dspaddr_offset = plane_state->view.color_plane[0].offset; in g4x_primary_async_flip()
568 intel_plane_ggtt_offset(plane_state) + dspaddr_offset); in g4x_primary_async_flip()
574 const struct intel_plane_state *plane_state, in vlv_primary_async_flip() argument
578 u32 dspaddr_offset = plane_state->view.color_plane[0].offset; in vlv_primary_async_flip()
582 intel_plane_ggtt_offset(plane_state) + dspaddr_offset); in vlv_primary_async_flip()
1150 const struct intel_plane_state *plane_state = in i9xx_fixup_initial_plane_config() local
1155 if (!plane_state->uapi.visible) in i9xx_fixup_initial_plane_config()
1158 base = intel_plane_ggtt_offset(plane_state); in i9xx_fixup_initial_plane_config()