Lines Matching refs:uapi

34 		to_i915(plane_state->uapi.plane->dev);  in intel_cursor_base()
49 int x = plane_state->uapi.dst.x1; in intel_cursor_position()
50 int y = plane_state->uapi.dst.y1; in intel_cursor_position()
71 &plane_state->uapi.plane->dev->mode_config; in intel_cursor_size_ok()
72 int width = drm_rect_width(&plane_state->uapi.dst); in intel_cursor_size_ok()
73 int height = drm_rect_height(&plane_state->uapi.dst); in intel_cursor_size_ok()
82 to_i915(plane_state->uapi.plane->dev); in intel_cursor_check_surface()
92 if (!plane_state->uapi.visible) in intel_cursor_check_surface()
95 src_x = plane_state->uapi.src.x1 >> 16; in intel_cursor_check_surface()
96 src_y = plane_state->uapi.src.y1 >> 16; in intel_cursor_check_surface()
112 drm_rect_translate_to(&plane_state->uapi.src, in intel_cursor_check_surface()
118 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in intel_cursor_check_surface()
119 int src_h = drm_rect_height(&plane_state->uapi.src) >> 16; in intel_cursor_check_surface()
135 struct drm_i915_private *i915 = to_i915(plane_state->uapi.plane->dev); in intel_check_cursor()
136 const struct drm_rect src = plane_state->uapi.src; in intel_check_cursor()
137 const struct drm_rect dst = plane_state->uapi.dst; in intel_check_cursor()
153 plane_state->uapi.src = src; in intel_check_cursor()
154 plane_state->uapi.dst = dst; in intel_check_cursor()
157 drm_rect_translate(&plane_state->uapi.dst, in intel_check_cursor()
165 if (!plane_state->uapi.visible) in intel_check_cursor()
203 int width = drm_rect_width(&plane_state->uapi.dst); in i845_cursor_size_ok()
216 struct drm_i915_private *i915 = to_i915(plane_state->uapi.plane->dev); in i845_check_cursor()
231 drm_rect_width(&plane_state->uapi.dst), in i845_check_cursor()
232 drm_rect_height(&plane_state->uapi.dst)); in i845_check_cursor()
236 drm_WARN_ON(&i915->drm, plane_state->uapi.visible && in i845_check_cursor()
264 if (plane_state && plane_state->uapi.visible) { in i845_cursor_update_arm()
265 unsigned int width = drm_rect_width(&plane_state->uapi.dst); in i845_cursor_update_arm()
266 unsigned int height = drm_rect_height(&plane_state->uapi.dst); in i845_cursor_update_arm()
335 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in i9xx_cursor_ctl_crtc()
358 to_i915(plane_state->uapi.plane->dev); in i9xx_cursor_ctl()
364 switch (drm_rect_width(&plane_state->uapi.dst)) { in i9xx_cursor_ctl()
375 MISSING_CASE(drm_rect_width(&plane_state->uapi.dst)); in i9xx_cursor_ctl()
392 to_i915(plane_state->uapi.plane->dev); in i9xx_cursor_size_ok()
393 int width = drm_rect_width(&plane_state->uapi.dst); in i9xx_cursor_size_ok()
394 int height = drm_rect_height(&plane_state->uapi.dst); in i9xx_cursor_size_ok()
430 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in i9xx_check_cursor()
448 drm_rect_width(&plane_state->uapi.dst), in i9xx_check_cursor()
449 drm_rect_height(&plane_state->uapi.dst)); in i9xx_check_cursor()
453 drm_WARN_ON(&dev_priv->drm, plane_state->uapi.visible && in i9xx_check_cursor()
457 drm_rect_width(&plane_state->uapi.dst) * fb->format->cpp[0]) { in i9xx_check_cursor()
461 drm_rect_width(&plane_state->uapi.dst)); in i9xx_check_cursor()
476 plane_state->uapi.visible && plane_state->uapi.dst.x1 < 0) { in i9xx_check_cursor()
496 if (plane_state && plane_state->uapi.visible) { in i9xx_cursor_update_arm()
497 int width = drm_rect_width(&plane_state->uapi.dst); in i9xx_cursor_update_arm()
498 int height = drm_rect_height(&plane_state->uapi.dst); in i9xx_cursor_update_arm()
643 if (old_plane_state->uapi.commit && in intel_legacy_cursor_update()
644 !try_wait_for_completion(&old_plane_state->uapi.commit->hw_done)) in intel_legacy_cursor_update()
652 if (old_plane_state->uapi.crtc != &crtc->base || in intel_legacy_cursor_update()
653 old_plane_state->uapi.src_w != src_w || in intel_legacy_cursor_update()
654 old_plane_state->uapi.src_h != src_h || in intel_legacy_cursor_update()
655 old_plane_state->uapi.crtc_w != crtc_w || in intel_legacy_cursor_update()
656 old_plane_state->uapi.crtc_h != crtc_h || in intel_legacy_cursor_update()
657 !old_plane_state->uapi.fb != !fb) in intel_legacy_cursor_update()
670 drm_atomic_set_fb_for_plane(&new_plane_state->uapi, fb); in intel_legacy_cursor_update()
672 new_plane_state->uapi.src_x = src_x; in intel_legacy_cursor_update()
673 new_plane_state->uapi.src_y = src_y; in intel_legacy_cursor_update()
674 new_plane_state->uapi.src_w = src_w; in intel_legacy_cursor_update()
675 new_plane_state->uapi.src_h = src_h; in intel_legacy_cursor_update()
676 new_plane_state->uapi.crtc_x = crtc_x; in intel_legacy_cursor_update()
677 new_plane_state->uapi.crtc_y = crtc_y; in intel_legacy_cursor_update()
678 new_plane_state->uapi.crtc_w = crtc_w; in intel_legacy_cursor_update()
679 new_plane_state->uapi.crtc_h = crtc_h; in intel_legacy_cursor_update()
699 plane->base.state = &new_plane_state->uapi; in intel_legacy_cursor_update()
721 if (new_plane_state->uapi.visible) { in intel_legacy_cursor_update()
734 intel_crtc_destroy_state(&crtc->base, &new_crtc_state->uapi); in intel_legacy_cursor_update()
736 intel_plane_destroy_state(&plane->base, &new_plane_state->uapi); in intel_legacy_cursor_update()
738 intel_plane_destroy_state(&plane->base, &old_plane_state->uapi); in intel_legacy_cursor_update()