Lines Matching refs:plane
76 &plane_state->uapi.plane->dev->mode_config; in intel_cursor_size_ok()
87 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_cursor_check_surface() local
110 plane->base.base.id, plane->base.name); in intel_cursor_check_surface()
141 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_check_cursor() local
149 plane->base.base.id, plane->base.name); in intel_check_cursor()
184 i845_cursor_max_stride(struct intel_plane *plane, in i845_cursor_max_stride() argument
191 static unsigned int i845_cursor_min_alignment(struct intel_plane *plane, in i845_cursor_min_alignment() argument
230 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in i845_check_cursor() local
246 plane->base.base.id, plane->base.name, in i845_check_cursor()
263 plane->base.base.id, plane->base.name, in i845_check_cursor()
275 struct intel_plane *plane, in i845_cursor_update_arm() argument
279 struct intel_display *display = to_intel_display(plane); in i845_cursor_update_arm()
298 if (plane->cursor.base != base || in i845_cursor_update_arm()
299 plane->cursor.size != size || in i845_cursor_update_arm()
300 plane->cursor.cntl != cntl) { in i845_cursor_update_arm()
307 plane->cursor.base = base; in i845_cursor_update_arm()
308 plane->cursor.size = size; in i845_cursor_update_arm()
309 plane->cursor.cntl = cntl; in i845_cursor_update_arm()
316 struct intel_plane *plane, in i845_cursor_disable_arm() argument
319 i845_cursor_update_arm(dsb, plane, crtc_state, NULL); in i845_cursor_disable_arm()
322 static bool i845_cursor_get_hw_state(struct intel_plane *plane, in i845_cursor_get_hw_state() argument
325 struct intel_display *display = to_intel_display(plane); in i845_cursor_get_hw_state()
345 i9xx_cursor_max_stride(struct intel_plane *plane, in i9xx_cursor_max_stride() argument
349 return plane->base.dev->mode_config.cursor_width * 4; in i9xx_cursor_max_stride()
352 static unsigned int i830_cursor_min_alignment(struct intel_plane *plane, in i830_cursor_min_alignment() argument
360 static unsigned int i85x_cursor_min_alignment(struct intel_plane *plane, in i85x_cursor_min_alignment() argument
367 static unsigned int i9xx_cursor_min_alignment(struct intel_plane *plane, in i9xx_cursor_min_alignment() argument
371 struct intel_display *display = to_intel_display(plane); in i9xx_cursor_min_alignment()
474 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in i9xx_check_cursor() local
476 enum pipe pipe = plane->pipe; in i9xx_check_cursor()
491 plane->base.base.id, plane->base.name, in i9xx_check_cursor()
504 plane->base.base.id, plane->base.name, in i9xx_check_cursor()
523 plane->base.base.id, plane->base.name); in i9xx_check_cursor()
533 struct intel_plane *plane, in i9xx_cursor_disable_sel_fetch_arm() argument
536 struct intel_display *display = to_intel_display(plane); in i9xx_cursor_disable_sel_fetch_arm()
537 enum pipe pipe = plane->pipe; in i9xx_cursor_disable_sel_fetch_arm()
547 struct intel_plane *plane, in wa_16021440873() argument
551 struct intel_display *display = to_intel_display(plane); in wa_16021440873()
554 enum pipe pipe = plane->pipe; in wa_16021440873()
566 struct intel_plane *plane, in i9xx_cursor_update_sel_fetch_arm() argument
570 struct intel_display *display = to_intel_display(plane); in i9xx_cursor_update_sel_fetch_arm()
571 enum pipe pipe = plane->pipe; in i9xx_cursor_update_sel_fetch_arm()
574 i9xx_cursor_disable_sel_fetch_arm(dsb, plane, crtc_state); in i9xx_cursor_update_sel_fetch_arm()
590 wa_16021440873(dsb, plane, crtc_state, plane_state); in i9xx_cursor_update_sel_fetch_arm()
592 i9xx_cursor_disable_sel_fetch_arm(dsb, plane, crtc_state); in i9xx_cursor_update_sel_fetch_arm()
620 struct intel_plane *plane, in skl_write_cursor_wm() argument
623 struct intel_display *display = to_intel_display(plane->base.dev); in skl_write_cursor_wm()
624 enum plane_id plane_id = plane->id; in skl_write_cursor_wm()
625 enum pipe pipe = plane->pipe; in skl_write_cursor_wm()
653 struct intel_plane *plane, in i9xx_cursor_update_arm() argument
657 struct intel_display *display = to_intel_display(plane); in i9xx_cursor_update_arm()
658 enum pipe pipe = plane->pipe; in i9xx_cursor_update_arm()
696 skl_write_cursor_wm(dsb, plane, crtc_state); in i9xx_cursor_update_arm()
699 i9xx_cursor_update_sel_fetch_arm(dsb, plane, crtc_state, plane_state); in i9xx_cursor_update_arm()
701 i9xx_cursor_disable_sel_fetch_arm(dsb, plane, crtc_state); in i9xx_cursor_update_arm()
703 if (plane->cursor.base != base || in i9xx_cursor_update_arm()
704 plane->cursor.size != fbc_ctl || in i9xx_cursor_update_arm()
705 plane->cursor.cntl != cntl) { in i9xx_cursor_update_arm()
712 plane->cursor.base = base; in i9xx_cursor_update_arm()
713 plane->cursor.size = fbc_ctl; in i9xx_cursor_update_arm()
714 plane->cursor.cntl = cntl; in i9xx_cursor_update_arm()
722 struct intel_plane *plane, in i9xx_cursor_disable_arm() argument
725 i9xx_cursor_update_arm(dsb, plane, crtc_state, NULL); in i9xx_cursor_disable_arm()
728 static bool i9xx_cursor_get_hw_state(struct intel_plane *plane, in i9xx_cursor_get_hw_state() argument
731 struct intel_display *display = to_intel_display(plane); in i9xx_cursor_get_hw_state()
742 power_domain = POWER_DOMAIN_PIPE(plane->pipe); in i9xx_cursor_get_hw_state()
747 val = intel_de_read(display, CURCNTR(display, plane->pipe)); in i9xx_cursor_get_hw_state()
752 *pipe = plane->pipe; in i9xx_cursor_get_hw_state()
762 struct intel_plane *plane, in g4x_cursor_capture_error() argument
765 struct intel_display *display = to_intel_display(plane); in g4x_cursor_capture_error()
773 struct intel_plane *plane, in i9xx_cursor_capture_error() argument
776 struct intel_display *display = to_intel_display(plane); in i9xx_cursor_capture_error()
796 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_cursor_unpin_work() local
799 intel_plane_destroy_state(&plane->base, &plane_state->uapi); in intel_cursor_unpin_work()
812 struct intel_plane *plane = to_intel_plane(_plane); in intel_legacy_cursor_update() local
814 struct intel_display *display = to_intel_display(plane); in intel_legacy_cursor_update()
816 to_intel_plane_state(plane->base.state); in intel_legacy_cursor_update()
861 new_plane_state = to_intel_plane_state(intel_plane_duplicate_state(&plane->base)); in intel_legacy_cursor_update()
897 plane->frontbuffer_bit); in intel_legacy_cursor_update()
900 plane->base.state = &new_plane_state->uapi; in intel_legacy_cursor_update()
935 intel_plane_update_noarm(NULL, plane, crtc_state, new_plane_state); in intel_legacy_cursor_update()
936 intel_plane_update_arm(NULL, plane, crtc_state, new_plane_state); in intel_legacy_cursor_update()
938 intel_plane_disable_arm(NULL, plane, crtc_state); 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()
968 return drm_atomic_helper_update_plane(&plane->base, &crtc->base, fb, in intel_legacy_cursor_update()
983 static void intel_cursor_add_size_hints_property(struct intel_plane *plane) in intel_cursor_add_size_hints_property() argument
985 struct intel_display *display = to_intel_display(plane); in intel_cursor_add_size_hints_property()
1002 drm_plane_add_size_hints_property(&plane->base, hints, num_hints); in intel_cursor_add_size_hints_property()