Lines Matching refs:connector
109 struct drm_connector *connector; in drm_helper_encoder_in_use() local
126 drm_for_each_connector_iter(connector, &conn_iter) { in drm_helper_encoder_in_use()
127 if (connector->encoder == encoder) { in drm_helper_encoder_in_use()
466 struct drm_connector *connector; in drm_crtc_helper_disable() local
477 drm_for_each_connector_iter(connector, &conn_iter) { in drm_crtc_helper_disable()
478 if (connector->encoder != encoder) in drm_crtc_helper_disable()
481 connector->encoder = NULL; in drm_crtc_helper_disable()
489 connector->dpms = DRM_MODE_DPMS_OFF; in drm_crtc_helper_disable()
492 drm_connector_put(connector); in drm_crtc_helper_disable()
505 drm_connector_get_single_encoder(struct drm_connector *connector) in drm_connector_get_single_encoder() argument
509 WARN_ON(hweight32(connector->possible_encoders) > 1); in drm_connector_get_single_encoder()
510 drm_connector_for_each_possible_encoder(connector, encoder) in drm_connector_get_single_encoder()
562 struct drm_connector *connector; in drm_crtc_helper_set_config() local
630 drm_for_each_connector_iter(connector, &conn_iter) in drm_crtc_helper_set_config()
631 save_connector_encoders[count++] = connector->encoder; in drm_crtc_helper_set_config()
675 drm_for_each_connector_iter(connector, &conn_iter) { in drm_crtc_helper_set_config()
677 connector->helper_private; in drm_crtc_helper_set_config()
678 new_encoder = connector->encoder; in drm_crtc_helper_set_config()
680 if (set->connectors[ro] == connector) { in drm_crtc_helper_set_config()
682 new_encoder = connector_funcs->best_encoder(connector); in drm_crtc_helper_set_config()
684 new_encoder = drm_connector_get_single_encoder(connector); in drm_crtc_helper_set_config()
692 if (connector->dpms != DRM_MODE_DPMS_ON) { in drm_crtc_helper_set_config()
701 if (new_encoder != connector->encoder) { in drm_crtc_helper_set_config()
707 if (connector->encoder) in drm_crtc_helper_set_config()
708 connector->encoder->crtc = NULL; in drm_crtc_helper_set_config()
709 connector->encoder = new_encoder; in drm_crtc_helper_set_config()
721 drm_for_each_connector_iter(connector, &conn_iter) { in drm_crtc_helper_set_config()
722 if (!connector->encoder) in drm_crtc_helper_set_config()
725 if (connector->encoder->crtc == set->crtc) in drm_crtc_helper_set_config()
728 new_crtc = connector->encoder->crtc; in drm_crtc_helper_set_config()
731 if (set->connectors[ro] == connector) in drm_crtc_helper_set_config()
737 !drm_encoder_crtc_ok(connector->encoder, new_crtc)) { in drm_crtc_helper_set_config()
742 if (new_crtc != connector->encoder->crtc) { in drm_crtc_helper_set_config()
745 connector->encoder->crtc = new_crtc; in drm_crtc_helper_set_config()
749 connector->base.id, connector->name, in drm_crtc_helper_set_config()
753 connector->base.id, connector->name); in drm_crtc_helper_set_config()
812 drm_for_each_connector_iter(connector, &conn_iter) in drm_crtc_helper_set_config()
813 connector->encoder = save_connector_encoders[count++]; in drm_crtc_helper_set_config()
840 struct drm_connector *connector; in drm_helper_choose_encoder_dpms() local
845 drm_for_each_connector_iter(connector, &conn_iter) in drm_helper_choose_encoder_dpms()
846 if (connector->encoder == encoder) in drm_helper_choose_encoder_dpms()
847 if (connector->dpms < dpms) in drm_helper_choose_encoder_dpms()
848 dpms = connector->dpms; in drm_helper_choose_encoder_dpms()
870 struct drm_connector *connector; in drm_helper_choose_crtc_dpms() local
875 drm_for_each_connector_iter(connector, &conn_iter) in drm_helper_choose_crtc_dpms()
876 if (connector->encoder && connector->encoder->crtc == crtc) in drm_helper_choose_crtc_dpms()
877 if (connector->dpms < dpms) in drm_helper_choose_crtc_dpms()
878 dpms = connector->dpms; in drm_helper_choose_crtc_dpms()
905 int drm_helper_connector_dpms(struct drm_connector *connector, int mode) in drm_helper_connector_dpms() argument
907 struct drm_encoder *encoder = connector->encoder; in drm_helper_connector_dpms()
911 WARN_ON(drm_drv_uses_atomic_modeset(connector->dev)); in drm_helper_connector_dpms()
913 if (mode == connector->dpms) in drm_helper_connector_dpms()
916 old_dpms = connector->dpms; in drm_helper_connector_dpms()
917 connector->dpms = mode; in drm_helper_connector_dpms()