Lines Matching refs:uapi

53 	int x = plane_state->uapi.dst.x1;  in intel_cursor_position()
54 int y = plane_state->uapi.dst.y1; in intel_cursor_position()
63 y = max(-1 * drm_rect_height(&plane_state->uapi.dst) + 1, in intel_cursor_position()
84 &plane_state->uapi.plane->dev->mode_config; in intel_cursor_size_ok()
85 int width = drm_rect_width(&plane_state->uapi.dst); in intel_cursor_size_ok()
86 int height = drm_rect_height(&plane_state->uapi.dst); in intel_cursor_size_ok()
95 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_cursor_check_surface()
105 if (!plane_state->uapi.visible) in intel_cursor_check_surface()
108 src_x = plane_state->uapi.src.x1 >> 16; in intel_cursor_check_surface()
109 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 intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_check_cursor()
151 const struct drm_rect src = plane_state->uapi.src; in intel_check_cursor()
152 const struct drm_rect dst = plane_state->uapi.dst; in intel_check_cursor()
169 plane_state->uapi.src = src; in intel_check_cursor()
170 plane_state->uapi.dst = dst; in intel_check_cursor()
173 drm_rect_translate(&plane_state->uapi.dst, in intel_check_cursor()
181 if (!plane_state->uapi.visible) in intel_check_cursor()
226 int width = drm_rect_width(&plane_state->uapi.dst); in i845_cursor_size_ok()
239 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in i845_check_cursor()
256 drm_rect_width(&plane_state->uapi.dst), in i845_check_cursor()
257 drm_rect_height(&plane_state->uapi.dst)); in i845_check_cursor()
261 drm_WARN_ON(display->drm, plane_state->uapi.visible && in i845_check_cursor()
291 if (plane_state && plane_state->uapi.visible) { in i845_cursor_update_arm()
292 unsigned int width = drm_rect_width(&plane_state->uapi.dst); in i845_cursor_update_arm()
293 unsigned int height = drm_rect_height(&plane_state->uapi.dst); in i845_cursor_update_arm()
391 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in i9xx_cursor_ctl_crtc()
418 switch (drm_rect_width(&plane_state->uapi.dst)) { in i9xx_cursor_ctl()
429 MISSING_CASE(drm_rect_width(&plane_state->uapi.dst)); in i9xx_cursor_ctl()
446 int width = drm_rect_width(&plane_state->uapi.dst); in i9xx_cursor_size_ok()
447 int height = drm_rect_height(&plane_state->uapi.dst); in i9xx_cursor_size_ok()
484 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in i9xx_check_cursor()
502 drm_rect_width(&plane_state->uapi.dst), in i9xx_check_cursor()
503 drm_rect_height(&plane_state->uapi.dst)); in i9xx_check_cursor()
507 drm_WARN_ON(display->drm, plane_state->uapi.visible && in i9xx_check_cursor()
511 drm_rect_width(&plane_state->uapi.dst) * fb->format->cpp[0]) { in i9xx_check_cursor()
515 fb->pitches[0], drm_rect_width(&plane_state->uapi.dst)); in i9xx_check_cursor()
530 plane_state->uapi.visible && plane_state->uapi.dst.x1 < 0) { in i9xx_check_cursor()
668 if (plane_state && plane_state->uapi.visible) { in i9xx_cursor_update_arm()
669 int width = drm_rect_width(&plane_state->uapi.dst); in i9xx_cursor_update_arm()
670 int height = drm_rect_height(&plane_state->uapi.dst); in i9xx_cursor_update_arm()
803 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_cursor_unpin_work()
806 intel_plane_destroy_state(&plane->base, &plane_state->uapi); in intel_cursor_unpin_work()
851 if (old_plane_state->uapi.commit && in intel_legacy_cursor_update()
852 !try_wait_for_completion(&old_plane_state->uapi.commit->hw_done)) in intel_legacy_cursor_update()
860 if (old_plane_state->uapi.crtc != &crtc->base || in intel_legacy_cursor_update()
861 old_plane_state->uapi.src_w != src_w || in intel_legacy_cursor_update()
862 old_plane_state->uapi.src_h != src_h || in intel_legacy_cursor_update()
863 old_plane_state->uapi.crtc_w != crtc_w || in intel_legacy_cursor_update()
864 old_plane_state->uapi.crtc_h != crtc_h || in intel_legacy_cursor_update()
865 !old_plane_state->uapi.fb != !fb) in intel_legacy_cursor_update()
878 drm_atomic_set_fb_for_plane(&new_plane_state->uapi, fb); in intel_legacy_cursor_update()
880 new_plane_state->uapi.src_x = src_x; in intel_legacy_cursor_update()
881 new_plane_state->uapi.src_y = src_y; in intel_legacy_cursor_update()
882 new_plane_state->uapi.src_w = src_w; in intel_legacy_cursor_update()
883 new_plane_state->uapi.src_h = src_h; in intel_legacy_cursor_update()
884 new_plane_state->uapi.crtc_x = crtc_x; in intel_legacy_cursor_update()
885 new_plane_state->uapi.crtc_y = crtc_y; in intel_legacy_cursor_update()
886 new_plane_state->uapi.crtc_w = crtc_w; in intel_legacy_cursor_update()
887 new_plane_state->uapi.crtc_h = crtc_h; in intel_legacy_cursor_update()
907 plane->base.state = &new_plane_state->uapi; in intel_legacy_cursor_update()
941 if (new_plane_state->uapi.visible) { in intel_legacy_cursor_update()
967 intel_crtc_destroy_state(&crtc->base, &new_crtc_state->uapi); in intel_legacy_cursor_update()
969 intel_plane_destroy_state(&plane->base, &new_plane_state->uapi); in intel_legacy_cursor_update()
971 intel_plane_destroy_state(&plane->base, &old_plane_state->uapi); in intel_legacy_cursor_update()