Lines Matching full:connector
50 struct intel_connector *connector = in intel_dp_mst_compute_link_config() local
51 to_intel_connector(conn_state->connector); in intel_dp_mst_compute_link_config()
52 struct drm_i915_private *i915 = to_i915(connector->base.dev); in intel_dp_mst_compute_link_config()
70 connector->port, in intel_dp_mst_compute_link_config()
102 struct intel_connector *connector = in intel_dp_mst_compute_config() local
103 to_intel_connector(conn_state->connector); in intel_dp_mst_compute_config()
118 pipe_config->has_audio = connector->port->has_audio; in intel_dp_mst_compute_config()
173 struct intel_connector *connector; in intel_dp_mst_transcoder_mask() local
180 for_each_new_intel_connector_in_state(state, connector, conn_state, i) { in intel_dp_mst_transcoder_mask()
184 if (connector->mst_port != mst_port || !conn_state->base.crtc) in intel_dp_mst_transcoder_mask()
221 intel_dp_mst_atomic_master_trans_check(struct intel_connector *connector, in intel_dp_mst_atomic_master_trans_check() argument
231 if (!intel_connector_needs_modeset(state, &connector->base)) in intel_dp_mst_atomic_master_trans_check()
241 if (connector_iter->mst_port != connector->mst_port || in intel_dp_mst_atomic_master_trans_check()
242 connector_iter == connector) in intel_dp_mst_atomic_master_trans_check()
275 intel_dp_mst_atomic_check(struct drm_connector *connector, in intel_dp_mst_atomic_check() argument
280 drm_atomic_get_new_connector_state(&state->base, connector); in intel_dp_mst_atomic_check()
282 drm_atomic_get_old_connector_state(&state->base, connector); in intel_dp_mst_atomic_check()
284 to_intel_connector(connector); in intel_dp_mst_atomic_check()
289 ret = intel_digital_connector_atomic_check(connector, &state->base); in intel_dp_mst_atomic_check()
301 * connector in intel_dp_mst_atomic_check()
348 struct intel_connector *connector = in intel_mst_disable_dp() local
349 to_intel_connector(old_conn_state->connector); in intel_mst_disable_dp()
350 struct drm_i915_private *i915 = to_i915(connector->base.dev); in intel_mst_disable_dp()
356 intel_hdcp_disable(intel_mst->connector); in intel_mst_disable_dp()
358 drm_dp_mst_reset_vcpi_slots(&intel_dp->mst_mgr, connector->port); in intel_mst_disable_dp()
377 struct intel_connector *connector = in intel_mst_post_disable_dp() local
378 to_intel_connector(old_conn_state->connector); in intel_mst_post_disable_dp()
379 struct drm_i915_private *dev_priv = to_i915(connector->base.dev); in intel_mst_post_disable_dp()
406 drm_dp_mst_deallocate_vcpi(&intel_dp->mst_mgr, connector->port); in intel_mst_post_disable_dp()
419 drm_dp_send_power_updown_phy(&intel_dp->mst_mgr, connector->port, in intel_mst_post_disable_dp()
440 intel_mst->connector = NULL; in intel_mst_post_disable_dp()
472 struct intel_connector *connector = in intel_mst_pre_enable_dp() local
473 to_intel_connector(conn_state->connector); in intel_mst_pre_enable_dp()
477 /* MST encoders are bound to a crtc, not to a connector, in intel_mst_pre_enable_dp()
480 connector->encoder = encoder; in intel_mst_pre_enable_dp()
481 intel_mst->connector = connector; in intel_mst_pre_enable_dp()
493 drm_dp_send_power_updown_phy(&intel_dp->mst_mgr, connector->port, true); in intel_mst_pre_enable_dp()
500 connector->port, in intel_mst_pre_enable_dp()
566 intel_hdcp_enable(to_intel_connector(conn_state->connector), in intel_mst_enable_dp()
576 if (intel_mst->connector) in intel_dp_mst_enc_get_hw_state()
590 static int intel_dp_mst_get_ddc_modes(struct drm_connector *connector) in intel_dp_mst_get_ddc_modes() argument
592 struct intel_connector *intel_connector = to_intel_connector(connector); in intel_dp_mst_get_ddc_modes()
597 if (drm_connector_is_unregistered(connector)) in intel_dp_mst_get_ddc_modes()
598 return intel_connector_update_modes(connector, NULL); in intel_dp_mst_get_ddc_modes()
600 edid = drm_dp_mst_get_edid(connector, &intel_dp->mst_mgr, intel_connector->port); in intel_dp_mst_get_ddc_modes()
601 ret = intel_connector_update_modes(connector, edid); in intel_dp_mst_get_ddc_modes()
608 intel_dp_mst_connector_late_register(struct drm_connector *connector) in intel_dp_mst_connector_late_register() argument
610 struct intel_connector *intel_connector = to_intel_connector(connector); in intel_dp_mst_connector_late_register()
613 ret = drm_dp_mst_connector_late_register(connector, in intel_dp_mst_connector_late_register()
618 ret = intel_connector_register(connector); in intel_dp_mst_connector_late_register()
620 drm_dp_mst_connector_early_unregister(connector, in intel_dp_mst_connector_late_register()
627 intel_dp_mst_connector_early_unregister(struct drm_connector *connector) in intel_dp_mst_connector_early_unregister() argument
629 struct intel_connector *intel_connector = to_intel_connector(connector); in intel_dp_mst_connector_early_unregister()
631 intel_connector_unregister(connector); in intel_dp_mst_connector_early_unregister()
632 drm_dp_mst_connector_early_unregister(connector, in intel_dp_mst_connector_early_unregister()
647 static int intel_dp_mst_get_modes(struct drm_connector *connector) in intel_dp_mst_get_modes() argument
649 return intel_dp_mst_get_ddc_modes(connector); in intel_dp_mst_get_modes()
653 intel_dp_mst_mode_valid_ctx(struct drm_connector *connector, in intel_dp_mst_mode_valid_ctx() argument
658 struct drm_i915_private *dev_priv = to_i915(connector->dev); in intel_dp_mst_mode_valid_ctx()
659 struct intel_connector *intel_connector = to_intel_connector(connector); in intel_dp_mst_mode_valid_ctx()
664 int max_dotclk = to_i915(connector->dev)->max_dotclk_freq; in intel_dp_mst_mode_valid_ctx()
668 if (drm_connector_is_unregistered(connector)) { in intel_dp_mst_mode_valid_ctx()
708 static struct drm_encoder *intel_mst_atomic_best_encoder(struct drm_connector *connector, in intel_mst_atomic_best_encoder() argument
711 struct intel_connector *intel_connector = to_intel_connector(connector); in intel_mst_atomic_best_encoder()
719 intel_dp_mst_detect(struct drm_connector *connector, in intel_dp_mst_detect() argument
722 struct drm_i915_private *i915 = to_i915(connector->dev); in intel_dp_mst_detect()
723 struct intel_connector *intel_connector = to_intel_connector(connector); in intel_dp_mst_detect()
729 if (drm_connector_is_unregistered(connector)) in intel_dp_mst_detect()
732 return drm_dp_mst_detect_port(connector, ctx, &intel_dp->mst_mgr, in intel_dp_mst_detect()
756 static bool intel_dp_mst_get_hw_state(struct intel_connector *connector) in intel_dp_mst_get_hw_state() argument
758 if (intel_attached_encoder(connector) && connector->base.state->crtc) { in intel_dp_mst_get_hw_state()
760 if (!intel_attached_encoder(connector)->get_hw_state(intel_attached_encoder(connector), &pipe)) in intel_dp_mst_get_hw_state()
774 struct drm_connector *connector; in intel_dp_add_mst_connector() local
787 connector = &intel_connector->base; in intel_dp_add_mst_connector()
788 ret = drm_connector_init(dev, connector, &intel_dp_mst_connector_funcs, in intel_dp_add_mst_connector()
795 drm_connector_helper_add(connector, &intel_dp_mst_connector_helper_funcs); in intel_dp_add_mst_connector()
806 drm_object_attach_property(&connector->base, dev->mode_config.path_property, 0); in intel_dp_add_mst_connector()
807 drm_object_attach_property(&connector->base, dev->mode_config.tile_property, 0); in intel_dp_add_mst_connector()
809 ret = drm_connector_set_path_property(connector, pathprop); in intel_dp_add_mst_connector()
813 intel_attach_force_audio_property(connector); in intel_dp_add_mst_connector()
814 intel_attach_broadcast_rgb_property(connector); in intel_dp_add_mst_connector()
825 * Reuse the prop from the SST connector because we're in intel_dp_add_mst_connector()
828 connector->max_bpc_property = in intel_dp_add_mst_connector()
830 if (connector->max_bpc_property) in intel_dp_add_mst_connector()
831 drm_connector_attach_max_bpc_property(connector, 6, 12); in intel_dp_add_mst_connector()
833 return connector; in intel_dp_add_mst_connector()
836 drm_connector_cleanup(connector); in intel_dp_add_mst_connector()
878 * of possible_crtcs of all the encoders of a given connector in intel_dp_create_fake_mst_encoder()
879 * to figure out which crtcs can drive said connector. What in intel_dp_create_fake_mst_encoder()