Lines Matching full:connector
56 struct intel_connector *connector = in intel_dp_mst_compute_link_config() local
57 to_intel_connector(conn_state->connector); in intel_dp_mst_compute_link_config()
58 struct drm_i915_private *i915 = to_i915(connector->base.dev); in intel_dp_mst_compute_link_config()
84 connector->port, crtc_state->pbn); in intel_dp_mst_compute_link_config()
138 struct intel_connector *connector = in intel_dp_mst_compute_config() local
139 to_intel_connector(conn_state->connector); in intel_dp_mst_compute_config()
154 pipe_config->has_audio = connector->port->has_audio; in intel_dp_mst_compute_config()
213 struct intel_connector *connector; in intel_dp_mst_transcoder_mask() local
220 for_each_new_intel_connector_in_state(state, connector, conn_state, i) { in intel_dp_mst_transcoder_mask()
224 if (connector->mst_port != mst_port || !conn_state->base.crtc) in intel_dp_mst_transcoder_mask()
261 intel_dp_mst_atomic_master_trans_check(struct intel_connector *connector, in intel_dp_mst_atomic_master_trans_check() argument
272 if (!intel_connector_needs_modeset(state, &connector->base)) in intel_dp_mst_atomic_master_trans_check()
281 if (connector_iter->mst_port != connector->mst_port || in intel_dp_mst_atomic_master_trans_check()
282 connector_iter == connector) in intel_dp_mst_atomic_master_trans_check()
313 intel_dp_mst_atomic_check(struct drm_connector *connector, in intel_dp_mst_atomic_check() argument
318 to_intel_connector(connector); in intel_dp_mst_atomic_check()
321 ret = intel_digital_connector_atomic_check(connector, &state->base); in intel_dp_mst_atomic_check()
365 struct intel_connector *connector = in intel_mst_disable_dp() local
366 to_intel_connector(old_conn_state->connector); in intel_mst_disable_dp()
369 struct drm_i915_private *i915 = to_i915(connector->base.dev); in intel_mst_disable_dp()
374 intel_hdcp_disable(intel_mst->connector); in intel_mst_disable_dp()
377 drm_atomic_get_mst_payload_state(mst_state, connector->port)); in intel_mst_disable_dp()
390 struct intel_connector *connector = in intel_mst_post_disable_dp() local
391 to_intel_connector(old_conn_state->connector); in intel_mst_post_disable_dp()
392 struct drm_i915_private *dev_priv = to_i915(connector->base.dev); in intel_mst_post_disable_dp()
423 drm_dp_send_power_updown_phy(&intel_dp->mst_mgr, connector->port, in intel_mst_post_disable_dp()
444 intel_mst->connector = NULL; in intel_mst_post_disable_dp()
476 struct intel_connector *connector = in intel_mst_pre_enable_dp() local
477 to_intel_connector(conn_state->connector); in intel_mst_pre_enable_dp()
483 /* MST encoders are bound to a crtc, not to a connector, in intel_mst_pre_enable_dp()
486 connector->encoder = encoder; in intel_mst_pre_enable_dp()
487 intel_mst->connector = connector; in intel_mst_pre_enable_dp()
499 drm_dp_send_power_updown_phy(&intel_dp->mst_mgr, connector->port, true); in intel_mst_pre_enable_dp()
508 drm_atomic_get_mst_payload_state(mst_state, connector->port)); in intel_mst_pre_enable_dp()
511 connector->base.name, ret); in intel_mst_pre_enable_dp()
534 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_mst_enable_dp() local
566 drm_atomic_get_mst_payload_state(mst_state, connector->port)); in intel_mst_enable_dp()
584 intel_hdcp_enable(to_intel_connector(conn_state->connector), in intel_mst_enable_dp()
594 if (intel_mst->connector) in intel_dp_mst_enc_get_hw_state()
617 static int intel_dp_mst_get_ddc_modes(struct drm_connector *connector) in intel_dp_mst_get_ddc_modes() argument
619 struct intel_connector *intel_connector = to_intel_connector(connector); in intel_dp_mst_get_ddc_modes()
624 if (drm_connector_is_unregistered(connector)) in intel_dp_mst_get_ddc_modes()
625 return intel_connector_update_modes(connector, NULL); in intel_dp_mst_get_ddc_modes()
627 edid = drm_dp_mst_get_edid(connector, &intel_dp->mst_mgr, intel_connector->port); in intel_dp_mst_get_ddc_modes()
628 ret = intel_connector_update_modes(connector, edid); in intel_dp_mst_get_ddc_modes()
635 intel_dp_mst_connector_late_register(struct drm_connector *connector) in intel_dp_mst_connector_late_register() argument
637 struct intel_connector *intel_connector = to_intel_connector(connector); in intel_dp_mst_connector_late_register()
640 ret = drm_dp_mst_connector_late_register(connector, in intel_dp_mst_connector_late_register()
645 ret = intel_connector_register(connector); in intel_dp_mst_connector_late_register()
647 drm_dp_mst_connector_early_unregister(connector, in intel_dp_mst_connector_late_register()
654 intel_dp_mst_connector_early_unregister(struct drm_connector *connector) in intel_dp_mst_connector_early_unregister() argument
656 struct intel_connector *intel_connector = to_intel_connector(connector); in intel_dp_mst_connector_early_unregister()
658 intel_connector_unregister(connector); in intel_dp_mst_connector_early_unregister()
659 drm_dp_mst_connector_early_unregister(connector, in intel_dp_mst_connector_early_unregister()
674 static int intel_dp_mst_get_modes(struct drm_connector *connector) in intel_dp_mst_get_modes() argument
676 return intel_dp_mst_get_ddc_modes(connector); in intel_dp_mst_get_modes()
680 intel_dp_mst_mode_valid_ctx(struct drm_connector *connector, in intel_dp_mst_mode_valid_ctx() argument
685 struct drm_i915_private *dev_priv = to_i915(connector->dev); in intel_dp_mst_mode_valid_ctx()
686 struct intel_connector *intel_connector = to_intel_connector(connector); in intel_dp_mst_mode_valid_ctx()
691 int max_dotclk = to_i915(connector->dev)->max_dotclk_freq; in intel_dp_mst_mode_valid_ctx()
695 if (drm_connector_is_unregistered(connector)) { in intel_dp_mst_mode_valid_ctx()
735 static struct drm_encoder *intel_mst_atomic_best_encoder(struct drm_connector *connector, in intel_mst_atomic_best_encoder() argument
739 connector); in intel_mst_atomic_best_encoder()
740 struct intel_connector *intel_connector = to_intel_connector(connector); in intel_mst_atomic_best_encoder()
748 intel_dp_mst_detect(struct drm_connector *connector, in intel_dp_mst_detect() argument
751 struct drm_i915_private *i915 = to_i915(connector->dev); in intel_dp_mst_detect()
752 struct intel_connector *intel_connector = to_intel_connector(connector); in intel_dp_mst_detect()
758 if (drm_connector_is_unregistered(connector)) in intel_dp_mst_detect()
761 return drm_dp_mst_detect_port(connector, ctx, &intel_dp->mst_mgr, in intel_dp_mst_detect()
785 static bool intel_dp_mst_get_hw_state(struct intel_connector *connector) in intel_dp_mst_get_hw_state() argument
787 if (intel_attached_encoder(connector) && connector->base.state->crtc) { in intel_dp_mst_get_hw_state()
789 if (!intel_attached_encoder(connector)->get_hw_state(intel_attached_encoder(connector), &pipe)) in intel_dp_mst_get_hw_state()
803 struct drm_connector *connector; in intel_dp_add_mst_connector() local
816 connector = &intel_connector->base; in intel_dp_add_mst_connector()
817 ret = drm_connector_init(dev, connector, &intel_dp_mst_connector_funcs, in intel_dp_add_mst_connector()
825 drm_connector_helper_add(connector, &intel_dp_mst_connector_helper_funcs); in intel_dp_add_mst_connector()
836 drm_object_attach_property(&connector->base, dev->mode_config.path_property, 0); in intel_dp_add_mst_connector()
837 drm_object_attach_property(&connector->base, dev->mode_config.tile_property, 0); in intel_dp_add_mst_connector()
839 ret = drm_connector_set_path_property(connector, pathprop); in intel_dp_add_mst_connector()
843 intel_attach_force_audio_property(connector); in intel_dp_add_mst_connector()
844 intel_attach_broadcast_rgb_property(connector); in intel_dp_add_mst_connector()
849 connector->name, connector->base.id); in intel_dp_add_mst_connector()
851 * Reuse the prop from the SST connector because we're in intel_dp_add_mst_connector()
854 connector->max_bpc_property = in intel_dp_add_mst_connector()
856 if (connector->max_bpc_property) in intel_dp_add_mst_connector()
857 drm_connector_attach_max_bpc_property(connector, 6, 12); in intel_dp_add_mst_connector()
859 return connector; in intel_dp_add_mst_connector()
862 drm_connector_cleanup(connector); in intel_dp_add_mst_connector()
904 * of possible_crtcs of all the encoders of a given connector in intel_dp_create_fake_mst_encoder()
905 * to figure out which crtcs can drive said connector. What in intel_dp_create_fake_mst_encoder()