Lines Matching refs:uapi
39 to_i915(plane_state->uapi.plane->dev); in intel_cursor_base()
54 int x = plane_state->uapi.dst.x1; in intel_cursor_position()
55 int y = plane_state->uapi.dst.y1; in intel_cursor_position()
76 &plane_state->uapi.plane->dev->mode_config; in intel_cursor_size_ok()
77 int width = drm_rect_width(&plane_state->uapi.dst); in intel_cursor_size_ok()
78 int height = drm_rect_height(&plane_state->uapi.dst); in intel_cursor_size_ok()
87 to_i915(plane_state->uapi.plane->dev); in intel_cursor_check_surface()
97 if (!plane_state->uapi.visible) in intel_cursor_check_surface()
100 src_x = plane_state->uapi.src.x1 >> 16; in intel_cursor_check_surface()
101 src_y = plane_state->uapi.src.y1 >> 16; in intel_cursor_check_surface()
117 drm_rect_translate_to(&plane_state->uapi.src, in intel_cursor_check_surface()
123 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in intel_cursor_check_surface()
124 int src_h = drm_rect_height(&plane_state->uapi.src) >> 16; in intel_cursor_check_surface()
140 struct drm_i915_private *i915 = to_i915(plane_state->uapi.plane->dev); in intel_check_cursor()
141 const struct drm_rect src = plane_state->uapi.src; in intel_check_cursor()
142 const struct drm_rect dst = plane_state->uapi.dst; in intel_check_cursor()
158 plane_state->uapi.src = src; in intel_check_cursor()
159 plane_state->uapi.dst = 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_update_cursor()
265 unsigned int width = drm_rect_width(&plane_state->uapi.dst); in i845_update_cursor()
266 unsigned int height = drm_rect_height(&plane_state->uapi.dst); in i845_update_cursor()
339 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in i9xx_cursor_ctl_crtc()
362 to_i915(plane_state->uapi.plane->dev); in i9xx_cursor_ctl()
368 switch (drm_rect_width(&plane_state->uapi.dst)) { in i9xx_cursor_ctl()
379 MISSING_CASE(drm_rect_width(&plane_state->uapi.dst)); in i9xx_cursor_ctl()
396 to_i915(plane_state->uapi.plane->dev); in i9xx_cursor_size_ok()
397 int width = drm_rect_width(&plane_state->uapi.dst); in i9xx_cursor_size_ok()
398 int height = drm_rect_height(&plane_state->uapi.dst); in i9xx_cursor_size_ok()
434 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in i9xx_check_cursor()
452 drm_rect_width(&plane_state->uapi.dst), in i9xx_check_cursor()
453 drm_rect_height(&plane_state->uapi.dst)); in i9xx_check_cursor()
457 drm_WARN_ON(&dev_priv->drm, plane_state->uapi.visible && in i9xx_check_cursor()
461 drm_rect_width(&plane_state->uapi.dst) * fb->format->cpp[0]) { in i9xx_check_cursor()
465 drm_rect_width(&plane_state->uapi.dst)); in i9xx_check_cursor()
480 plane_state->uapi.visible && plane_state->uapi.dst.x1 < 0) { in i9xx_check_cursor()
500 if (plane_state && plane_state->uapi.visible) { in i9xx_update_cursor()
501 int width = drm_rect_width(&plane_state->uapi.dst); in i9xx_update_cursor()
502 int height = drm_rect_height(&plane_state->uapi.dst); in i9xx_update_cursor()
650 if (old_plane_state->uapi.commit && in intel_legacy_cursor_update()
651 !try_wait_for_completion(&old_plane_state->uapi.commit->hw_done)) in intel_legacy_cursor_update()
659 if (old_plane_state->uapi.crtc != &crtc->base || in intel_legacy_cursor_update()
660 old_plane_state->uapi.src_w != src_w || in intel_legacy_cursor_update()
661 old_plane_state->uapi.src_h != src_h || in intel_legacy_cursor_update()
662 old_plane_state->uapi.crtc_w != crtc_w || in intel_legacy_cursor_update()
663 old_plane_state->uapi.crtc_h != crtc_h || in intel_legacy_cursor_update()
664 !old_plane_state->uapi.fb != !fb) in intel_legacy_cursor_update()
677 drm_atomic_set_fb_for_plane(&new_plane_state->uapi, fb); in intel_legacy_cursor_update()
679 new_plane_state->uapi.src_x = src_x; in intel_legacy_cursor_update()
680 new_plane_state->uapi.src_y = src_y; in intel_legacy_cursor_update()
681 new_plane_state->uapi.src_w = src_w; in intel_legacy_cursor_update()
682 new_plane_state->uapi.src_h = src_h; in intel_legacy_cursor_update()
683 new_plane_state->uapi.crtc_x = crtc_x; in intel_legacy_cursor_update()
684 new_plane_state->uapi.crtc_y = crtc_y; in intel_legacy_cursor_update()
685 new_plane_state->uapi.crtc_w = crtc_w; in intel_legacy_cursor_update()
686 new_plane_state->uapi.crtc_h = crtc_h; in intel_legacy_cursor_update()
706 plane->base.state = &new_plane_state->uapi; in intel_legacy_cursor_update()
720 if (new_plane_state->uapi.visible) in intel_legacy_cursor_update()
729 intel_crtc_destroy_state(&crtc->base, &new_crtc_state->uapi); in intel_legacy_cursor_update()
731 intel_plane_destroy_state(&plane->base, &new_plane_state->uapi); in intel_legacy_cursor_update()
733 intel_plane_destroy_state(&plane->base, &old_plane_state->uapi); in intel_legacy_cursor_update()