Lines Matching refs:crtc

48 	drm_crtc_cleanup(&du->crtc);  in vmw_du_cleanup()
465 struct drm_crtc *crtc; in vmw_kms_legacy_hotspot_clear() local
468 drm_for_each_crtc(crtc, dev) { in vmw_kms_legacy_hotspot_clear()
469 du = vmw_crtc_to_du(crtc); in vmw_kms_legacy_hotspot_clear()
481 struct drm_crtc *crtc; in vmw_kms_cursor_post_execbuf() local
485 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in vmw_kms_cursor_post_execbuf()
486 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_post_execbuf()
767 struct drm_crtc *crtc = new_state->crtc ?: old_state->crtc; in vmw_du_cursor_plane_atomic_update() local
768 struct vmw_private *dev_priv = vmw_priv(crtc->dev); in vmw_du_cursor_plane_atomic_update()
769 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_du_cursor_plane_atomic_update()
847 if (new_state->crtc) in vmw_du_primary_plane_atomic_check()
849 new_state->crtc); in vmw_du_primary_plane_atomic_check()
857 struct drm_crtc *crtc = new_state->crtc; in vmw_du_primary_plane_atomic_check() local
858 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_du_primary_plane_atomic_check()
889 if (new_state->crtc) in vmw_du_cursor_plane_atomic_check()
891 new_state->crtc); in vmw_du_cursor_plane_atomic_check()
927 int vmw_du_crtc_atomic_check(struct drm_crtc *crtc, in vmw_du_crtc_atomic_check() argument
930 struct vmw_private *vmw = vmw_priv(crtc->dev); in vmw_du_crtc_atomic_check()
932 crtc); in vmw_du_crtc_atomic_check()
933 struct vmw_display_unit *du = vmw_crtc_to_du(new_state->crtc); in vmw_du_crtc_atomic_check()
936 drm_plane_mask(crtc->primary); in vmw_du_crtc_atomic_check()
964 void vmw_du_crtc_atomic_begin(struct drm_crtc *crtc, in vmw_du_crtc_atomic_begin() argument
970 void vmw_du_crtc_atomic_flush(struct drm_crtc *crtc, in vmw_du_crtc_atomic_flush() argument
986 vmw_du_crtc_duplicate_state(struct drm_crtc *crtc) in vmw_du_crtc_duplicate_state() argument
991 if (WARN_ON(!crtc->state)) in vmw_du_crtc_duplicate_state()
994 vcs = kmemdup(crtc->state, sizeof(*vcs), GFP_KERNEL); in vmw_du_crtc_duplicate_state()
1001 __drm_atomic_helper_crtc_duplicate_state(crtc, state); in vmw_du_crtc_duplicate_state()
1015 void vmw_du_crtc_reset(struct drm_crtc *crtc) in vmw_du_crtc_reset() argument
1020 if (crtc->state) { in vmw_du_crtc_reset()
1021 __drm_atomic_helper_crtc_destroy_state(crtc->state); in vmw_du_crtc_reset()
1023 kfree(vmw_crtc_state_to_vcs(crtc->state)); in vmw_du_crtc_reset()
1033 __drm_atomic_helper_crtc_reset(crtc, &vcs->base); in vmw_du_crtc_reset()
1046 vmw_du_crtc_destroy_state(struct drm_crtc *crtc, in vmw_du_crtc_destroy_state() argument
1049 drm_atomic_helper_crtc_destroy_state(crtc, state); in vmw_du_crtc_destroy_state()
1774 vmw_crtc_state_and_lock(struct drm_atomic_state *state, struct drm_crtc *crtc) in vmw_crtc_state_and_lock() argument
1778 crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in vmw_crtc_state_and_lock()
1780 lockdep_assert_held(&crtc->mutex.mutex.base); in vmw_crtc_state_and_lock()
1782 int ret = drm_modeset_lock(&crtc->mutex, state->acquire_ctx); in vmw_crtc_state_and_lock()
1787 crtc_state = crtc->state; in vmw_crtc_state_and_lock()
1808 struct drm_crtc *crtc; in vmw_kms_check_implicit() local
1812 drm_for_each_crtc(crtc, dev) { in vmw_kms_check_implicit()
1813 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_implicit()
1818 crtc_state = vmw_crtc_state_and_lock(state, crtc); in vmw_kms_check_implicit()
1830 if (plane_state->crtc != crtc) in vmw_kms_check_implicit()
1855 struct drm_crtc *crtc; in vmw_kms_check_topology() local
1864 drm_for_each_crtc(crtc, dev) { in vmw_kms_check_topology()
1865 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_topology()
1868 i = drm_crtc_index(crtc); in vmw_kms_check_topology()
1870 crtc_state = vmw_crtc_state_and_lock(state, crtc); in vmw_kms_check_topology()
1893 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, in vmw_kms_check_topology()
1895 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_topology()
1948 struct drm_crtc *crtc; in vmw_kms_atomic_check_modeset() local
1963 for_each_new_crtc_in_state(state, crtc, crtc_state, i) { in vmw_kms_atomic_check_modeset()
2100 struct drm_crtc *crtc; in vmw_kms_cursor_bypass_ioctl() local
2106 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in vmw_kms_cursor_bypass_ioctl()
2107 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_bypass_ioctl()
2116 crtc = drm_crtc_find(dev, file_priv, arg->crtc_id); in vmw_kms_cursor_bypass_ioctl()
2117 if (!crtc) { in vmw_kms_cursor_bypass_ioctl()
2122 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_bypass_ioctl()
2178 struct drm_crtc *crtc; in vmw_du_update_layout() local
2185 drm_for_each_crtc(crtc, dev) { in vmw_du_update_layout()
2186 ret = drm_modeset_lock(&crtc->mutex, &ctx); in vmw_du_update_layout()
2244 int vmw_du_crtc_gamma_set(struct drm_crtc *crtc, in vmw_du_crtc_gamma_set() argument
2249 struct vmw_private *dev_priv = vmw_priv(crtc->dev); in vmw_du_crtc_gamma_set()
2436 struct drm_crtc *crtc; in vmw_kms_helper_dirty() local
2443 if (dirty->crtc) { in vmw_kms_helper_dirty()
2444 units[num_units++] = vmw_crtc_to_du(dirty->crtc); in vmw_kms_helper_dirty()
2446 list_for_each_entry(crtc, &dev_priv->drm.mode_config.crtc_list, in vmw_kms_helper_dirty()
2448 struct drm_plane *plane = crtc->primary; in vmw_kms_helper_dirty()
2451 units[num_units++] = vmw_crtc_to_du(crtc); in vmw_kms_helper_dirty()
2457 s32 crtc_x = unit->crtc.x; in vmw_kms_helper_dirty()
2458 s32 crtc_y = unit->crtc.y; in vmw_kms_helper_dirty()
2459 s32 crtc_width = unit->crtc.mode.hdisplay; in vmw_kms_helper_dirty()
2460 s32 crtc_height = unit->crtc.mode.vdisplay; in vmw_kms_helper_dirty()