Lines Matching refs:uapi

45 	int x = plane_state->uapi.dst.x1;  in intel_cursor_position()
46 int y = plane_state->uapi.dst.y1; in intel_cursor_position()
55 y = max(-1 * drm_rect_height(&plane_state->uapi.dst) + 1, 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 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); 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()
118 drm_rect_translate_to(&plane_state->uapi.src, in intel_cursor_check_surface()
124 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in intel_cursor_check_surface()
125 int src_h = drm_rect_height(&plane_state->uapi.src) >> 16; in intel_cursor_check_surface()
141 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_check_cursor()
143 const struct drm_rect src = plane_state->uapi.src; in intel_check_cursor()
144 const struct drm_rect dst = plane_state->uapi.dst; in intel_check_cursor()
161 plane_state->uapi.src = src; in intel_check_cursor()
162 plane_state->uapi.dst = dst; in intel_check_cursor()
165 drm_rect_translate(&plane_state->uapi.dst, in intel_check_cursor()
173 if (!plane_state->uapi.visible) in intel_check_cursor()
217 int width = drm_rect_width(&plane_state->uapi.dst); in i845_cursor_size_ok()
230 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in i845_check_cursor()
247 drm_rect_width(&plane_state->uapi.dst), in i845_check_cursor()
248 drm_rect_height(&plane_state->uapi.dst)); in i845_check_cursor()
252 drm_WARN_ON(display->drm, plane_state->uapi.visible && in i845_check_cursor()
282 if (plane_state && plane_state->uapi.visible) { in i845_cursor_update_arm()
283 unsigned int width = drm_rect_width(&plane_state->uapi.dst); in i845_cursor_update_arm()
284 unsigned int height = drm_rect_height(&plane_state->uapi.dst); in i845_cursor_update_arm()
382 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in i9xx_cursor_ctl_crtc()
408 switch (drm_rect_width(&plane_state->uapi.dst)) { in i9xx_cursor_ctl()
419 MISSING_CASE(drm_rect_width(&plane_state->uapi.dst)); in i9xx_cursor_ctl()
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()
474 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in i9xx_check_cursor()
492 drm_rect_width(&plane_state->uapi.dst), in i9xx_check_cursor()
493 drm_rect_height(&plane_state->uapi.dst)); in i9xx_check_cursor()
497 drm_WARN_ON(display->drm, plane_state->uapi.visible && in i9xx_check_cursor()
501 drm_rect_width(&plane_state->uapi.dst) * fb->format->cpp[0]) { in i9xx_check_cursor()
505 fb->pitches[0], drm_rect_width(&plane_state->uapi.dst)); in i9xx_check_cursor()
520 plane_state->uapi.visible && plane_state->uapi.dst.x1 < 0) { in i9xx_check_cursor()
661 if (plane_state && plane_state->uapi.visible) { in i9xx_cursor_update_arm()
662 int width = drm_rect_width(&plane_state->uapi.dst); in i9xx_cursor_update_arm()
663 int height = drm_rect_height(&plane_state->uapi.dst); in i9xx_cursor_update_arm()
796 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_cursor_unpin_work()
799 intel_plane_destroy_state(&plane->base, &plane_state->uapi); in intel_cursor_unpin_work()
844 if (old_plane_state->uapi.commit && in intel_legacy_cursor_update()
845 !try_wait_for_completion(&old_plane_state->uapi.commit->hw_done)) in intel_legacy_cursor_update()
853 if (old_plane_state->uapi.crtc != &crtc->base || in intel_legacy_cursor_update()
854 old_plane_state->uapi.src_w != src_w || in intel_legacy_cursor_update()
855 old_plane_state->uapi.src_h != src_h || in intel_legacy_cursor_update()
856 old_plane_state->uapi.crtc_w != crtc_w || in intel_legacy_cursor_update()
857 old_plane_state->uapi.crtc_h != crtc_h || in intel_legacy_cursor_update()
858 !old_plane_state->uapi.fb != !fb) in intel_legacy_cursor_update()
871 drm_atomic_set_fb_for_plane(&new_plane_state->uapi, fb); in intel_legacy_cursor_update()
873 new_plane_state->uapi.src_x = src_x; in intel_legacy_cursor_update()
874 new_plane_state->uapi.src_y = src_y; in intel_legacy_cursor_update()
875 new_plane_state->uapi.src_w = src_w; in intel_legacy_cursor_update()
876 new_plane_state->uapi.src_h = src_h; in intel_legacy_cursor_update()
877 new_plane_state->uapi.crtc_x = crtc_x; in intel_legacy_cursor_update()
878 new_plane_state->uapi.crtc_y = crtc_y; in intel_legacy_cursor_update()
879 new_plane_state->uapi.crtc_w = crtc_w; in intel_legacy_cursor_update()
880 new_plane_state->uapi.crtc_h = crtc_h; in intel_legacy_cursor_update()
900 plane->base.state = &new_plane_state->uapi; in intel_legacy_cursor_update()
934 if (new_plane_state->uapi.visible) { in intel_legacy_cursor_update()
960 intel_crtc_destroy_state(&crtc->base, &new_crtc_state->uapi); in intel_legacy_cursor_update()
962 intel_plane_destroy_state(&plane->base, &new_plane_state->uapi); in intel_legacy_cursor_update()
964 intel_plane_destroy_state(&plane->base, &old_plane_state->uapi); in intel_legacy_cursor_update()