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()
64 y = max(-1 * drm_rect_height(&plane_state->uapi.dst) + 1, in intel_cursor_position()
85 &plane_state->uapi.plane->dev->mode_config; in intel_cursor_size_ok()
86 int width = drm_rect_width(&plane_state->uapi.dst); in intel_cursor_size_ok()
87 int height = drm_rect_height(&plane_state->uapi.dst); in intel_cursor_size_ok()
96 to_i915(plane_state->uapi.plane->dev); in intel_cursor_check_surface()
106 if (!plane_state->uapi.visible) in intel_cursor_check_surface()
109 src_x = plane_state->uapi.src.x1 >> 16; in intel_cursor_check_surface()
110 src_y = plane_state->uapi.src.y1 >> 16; in intel_cursor_check_surface()
126 drm_rect_translate_to(&plane_state->uapi.src, in intel_cursor_check_surface()
132 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in intel_cursor_check_surface()
133 int src_h = drm_rect_height(&plane_state->uapi.src) >> 16; in intel_cursor_check_surface()
149 struct drm_i915_private *i915 = to_i915(plane_state->uapi.plane->dev); in intel_check_cursor()
150 const struct drm_rect src = plane_state->uapi.src; in intel_check_cursor()
151 const struct drm_rect dst = plane_state->uapi.dst; in intel_check_cursor()
167 plane_state->uapi.src = src; in intel_check_cursor()
168 plane_state->uapi.dst = dst; in intel_check_cursor()
171 drm_rect_translate(&plane_state->uapi.dst, in intel_check_cursor()
179 if (!plane_state->uapi.visible) in intel_check_cursor()
224 int width = drm_rect_width(&plane_state->uapi.dst); in i845_cursor_size_ok()
237 struct drm_i915_private *i915 = to_i915(plane_state->uapi.plane->dev); in i845_check_cursor()
252 drm_rect_width(&plane_state->uapi.dst), in i845_check_cursor()
253 drm_rect_height(&plane_state->uapi.dst)); in i845_check_cursor()
257 drm_WARN_ON(&i915->drm, plane_state->uapi.visible && in i845_check_cursor()
285 if (plane_state && plane_state->uapi.visible) { in i845_cursor_update_arm()
286 unsigned int width = drm_rect_width(&plane_state->uapi.dst); in i845_cursor_update_arm()
287 unsigned int height = drm_rect_height(&plane_state->uapi.dst); in i845_cursor_update_arm()
378 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in i9xx_cursor_ctl_crtc()
401 to_i915(plane_state->uapi.plane->dev); in i9xx_cursor_ctl()
407 switch (drm_rect_width(&plane_state->uapi.dst)) { in i9xx_cursor_ctl()
418 MISSING_CASE(drm_rect_width(&plane_state->uapi.dst)); in i9xx_cursor_ctl()
435 to_i915(plane_state->uapi.plane->dev); in i9xx_cursor_size_ok()
436 int width = drm_rect_width(&plane_state->uapi.dst); in i9xx_cursor_size_ok()
437 int height = drm_rect_height(&plane_state->uapi.dst); in i9xx_cursor_size_ok()
473 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in i9xx_check_cursor()
491 drm_rect_width(&plane_state->uapi.dst), in i9xx_check_cursor()
492 drm_rect_height(&plane_state->uapi.dst)); in i9xx_check_cursor()
496 drm_WARN_ON(&dev_priv->drm, plane_state->uapi.visible && in i9xx_check_cursor()
500 drm_rect_width(&plane_state->uapi.dst) * fb->format->cpp[0]) { in i9xx_check_cursor()
504 drm_rect_width(&plane_state->uapi.dst)); in i9xx_check_cursor()
519 plane_state->uapi.visible && plane_state->uapi.dst.x1 < 0) { in i9xx_check_cursor()
653 if (plane_state && plane_state->uapi.visible) { in i9xx_cursor_update_arm()
654 int width = drm_rect_width(&plane_state->uapi.dst); in i9xx_cursor_update_arm()
655 int height = drm_rect_height(&plane_state->uapi.dst); in i9xx_cursor_update_arm()
769 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_cursor_unpin_work()
772 intel_plane_destroy_state(&plane->base, &plane_state->uapi); in intel_cursor_unpin_work()
817 if (old_plane_state->uapi.commit && in intel_legacy_cursor_update()
818 !try_wait_for_completion(&old_plane_state->uapi.commit->hw_done)) in intel_legacy_cursor_update()
826 if (old_plane_state->uapi.crtc != &crtc->base || in intel_legacy_cursor_update()
827 old_plane_state->uapi.src_w != src_w || in intel_legacy_cursor_update()
828 old_plane_state->uapi.src_h != src_h || in intel_legacy_cursor_update()
829 old_plane_state->uapi.crtc_w != crtc_w || in intel_legacy_cursor_update()
830 old_plane_state->uapi.crtc_h != crtc_h || in intel_legacy_cursor_update()
831 !old_plane_state->uapi.fb != !fb) in intel_legacy_cursor_update()
844 drm_atomic_set_fb_for_plane(&new_plane_state->uapi, fb); in intel_legacy_cursor_update()
846 new_plane_state->uapi.src_x = src_x; in intel_legacy_cursor_update()
847 new_plane_state->uapi.src_y = src_y; in intel_legacy_cursor_update()
848 new_plane_state->uapi.src_w = src_w; in intel_legacy_cursor_update()
849 new_plane_state->uapi.src_h = src_h; in intel_legacy_cursor_update()
850 new_plane_state->uapi.crtc_x = crtc_x; in intel_legacy_cursor_update()
851 new_plane_state->uapi.crtc_y = crtc_y; in intel_legacy_cursor_update()
852 new_plane_state->uapi.crtc_w = crtc_w; in intel_legacy_cursor_update()
853 new_plane_state->uapi.crtc_h = crtc_h; in intel_legacy_cursor_update()
873 plane->base.state = &new_plane_state->uapi; in intel_legacy_cursor_update()
907 if (new_plane_state->uapi.visible) { in intel_legacy_cursor_update()
933 intel_crtc_destroy_state(&crtc->base, &new_crtc_state->uapi); in intel_legacy_cursor_update()
935 intel_plane_destroy_state(&plane->base, &new_plane_state->uapi); in intel_legacy_cursor_update()
937 intel_plane_destroy_state(&plane->base, &old_plane_state->uapi); in intel_legacy_cursor_update()