Lines Matching refs:crtc
99 struct drm_crtc *crtc; in drm_mode_getresources() local
132 drm_for_each_crtc(crtc, dev) { in drm_mode_getresources()
133 if (drm_lease_held(file_priv, crtc->base.id)) { in drm_mode_getresources()
135 put_user(crtc->base.id, crtc_id + count)) in drm_mode_getresources()
186 struct drm_crtc *crtc; in drm_mode_config_reset() local
196 drm_for_each_crtc(crtc, dev) in drm_mode_config_reset()
197 if (crtc->funcs->reset) in drm_mode_config_reset()
198 crtc->funcs->reset(crtc); in drm_mode_config_reset()
490 struct drm_crtc *crtc, *ct; in drm_mode_config_cleanup() local
530 list_for_each_entry_safe(crtc, ct, &dev->mode_config.crtc_list, head) { in drm_mode_config_cleanup()
531 crtc->funcs->destroy(crtc); in drm_mode_config_cleanup()
613 struct drm_crtc *crtc; in full_crtc_mask() local
616 drm_for_each_crtc(crtc, dev) in full_crtc_mask()
617 crtc_mask |= drm_crtc_mask(crtc); in full_crtc_mask()
637 struct drm_crtc *crtc; in drm_mode_config_validate() local
653 drm_for_each_crtc(crtc, dev) { in drm_mode_config_validate()
654 WARN(!crtc->primary, "Missing primary plane on [CRTC:%d:%s]\n", in drm_mode_config_validate()
655 crtc->base.id, crtc->name); in drm_mode_config_validate()
657 WARN(crtc->cursor && crtc->funcs->cursor_set, in drm_mode_config_validate()
659 crtc->base.id, crtc->name); in drm_mode_config_validate()
660 WARN(crtc->cursor && crtc->funcs->cursor_set2, in drm_mode_config_validate()
662 crtc->base.id, crtc->name); in drm_mode_config_validate()
663 WARN(crtc->cursor && crtc->funcs->cursor_move, in drm_mode_config_validate()
665 crtc->base.id, crtc->name); in drm_mode_config_validate()
667 if (crtc->primary) { in drm_mode_config_validate()
668 WARN(!(crtc->primary->possible_crtcs & drm_crtc_mask(crtc)), in drm_mode_config_validate()
670 crtc->primary->base.id, crtc->primary->name, in drm_mode_config_validate()
671 crtc->base.id, crtc->name); in drm_mode_config_validate()
672 WARN(primary_with_crtc & drm_plane_mask(crtc->primary), in drm_mode_config_validate()
674 crtc->primary->base.id, crtc->primary->name); in drm_mode_config_validate()
675 primary_with_crtc |= drm_plane_mask(crtc->primary); in drm_mode_config_validate()
677 if (crtc->cursor) { in drm_mode_config_validate()
678 WARN(!(crtc->cursor->possible_crtcs & drm_crtc_mask(crtc)), in drm_mode_config_validate()
680 crtc->cursor->base.id, crtc->cursor->name, in drm_mode_config_validate()
681 crtc->base.id, crtc->name); in drm_mode_config_validate()
682 WARN(cursor_with_crtc & drm_plane_mask(crtc->cursor), in drm_mode_config_validate()
684 crtc->cursor->base.id, crtc->cursor->name); in drm_mode_config_validate()
685 cursor_with_crtc |= drm_plane_mask(crtc->cursor); in drm_mode_config_validate()