Lines Matching full:connector

55 	struct intel_connector *connector =  in intel_dp_mst_compute_link_config()  local
56 to_intel_connector(conn_state->connector); in intel_dp_mst_compute_link_config()
57 struct drm_i915_private *i915 = to_i915(connector->base.dev); in intel_dp_mst_compute_link_config()
74 connector->port, in intel_dp_mst_compute_link_config()
109 struct intel_connector *connector = in intel_dp_mst_compute_config() local
110 to_intel_connector(conn_state->connector); in intel_dp_mst_compute_config()
125 pipe_config->has_audio = connector->port->has_audio; in intel_dp_mst_compute_config()
180 struct intel_connector *connector; in intel_dp_mst_transcoder_mask() local
187 for_each_new_intel_connector_in_state(state, connector, conn_state, i) { in intel_dp_mst_transcoder_mask()
191 if (connector->mst_port != mst_port || !conn_state->base.crtc) in intel_dp_mst_transcoder_mask()
228 intel_dp_mst_atomic_master_trans_check(struct intel_connector *connector, in intel_dp_mst_atomic_master_trans_check() argument
238 if (!intel_connector_needs_modeset(state, &connector->base)) in intel_dp_mst_atomic_master_trans_check()
248 if (connector_iter->mst_port != connector->mst_port || in intel_dp_mst_atomic_master_trans_check()
249 connector_iter == connector) in intel_dp_mst_atomic_master_trans_check()
282 intel_dp_mst_atomic_check(struct drm_connector *connector, in intel_dp_mst_atomic_check() argument
287 drm_atomic_get_new_connector_state(&state->base, connector); in intel_dp_mst_atomic_check()
289 drm_atomic_get_old_connector_state(&state->base, connector); in intel_dp_mst_atomic_check()
291 to_intel_connector(connector); in intel_dp_mst_atomic_check()
296 ret = intel_digital_connector_atomic_check(connector, &state->base); in intel_dp_mst_atomic_check()
308 * connector in intel_dp_mst_atomic_check()
369 struct intel_connector *connector = in intel_mst_disable_dp() local
370 to_intel_connector(old_conn_state->connector); in intel_mst_disable_dp()
371 struct drm_i915_private *i915 = to_i915(connector->base.dev); in intel_mst_disable_dp()
377 intel_hdcp_disable(intel_mst->connector); in intel_mst_disable_dp()
379 drm_dp_mst_reset_vcpi_slots(&intel_dp->mst_mgr, connector->port); in intel_mst_disable_dp()
395 struct intel_connector *connector = in intel_mst_post_disable_dp() local
396 to_intel_connector(old_conn_state->connector); in intel_mst_post_disable_dp()
397 struct drm_i915_private *dev_priv = to_i915(connector->base.dev); in intel_mst_post_disable_dp()
424 drm_dp_mst_deallocate_vcpi(&intel_dp->mst_mgr, connector->port); in intel_mst_post_disable_dp()
437 drm_dp_send_power_updown_phy(&intel_dp->mst_mgr, connector->port, in intel_mst_post_disable_dp()
458 intel_mst->connector = NULL; in intel_mst_post_disable_dp()
490 struct intel_connector *connector = in intel_mst_pre_enable_dp() local
491 to_intel_connector(conn_state->connector); in intel_mst_pre_enable_dp()
495 /* MST encoders are bound to a crtc, not to a connector, in intel_mst_pre_enable_dp()
498 connector->encoder = encoder; in intel_mst_pre_enable_dp()
499 intel_mst->connector = connector; in intel_mst_pre_enable_dp()
511 drm_dp_send_power_updown_phy(&intel_dp->mst_mgr, connector->port, true); in intel_mst_pre_enable_dp()
518 connector->port, in intel_mst_pre_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()
824 drm_connector_helper_add(connector, &intel_dp_mst_connector_helper_funcs); in intel_dp_add_mst_connector()
835 drm_object_attach_property(&connector->base, dev->mode_config.path_property, 0); in intel_dp_add_mst_connector()
836 drm_object_attach_property(&connector->base, dev->mode_config.tile_property, 0); in intel_dp_add_mst_connector()
838 ret = drm_connector_set_path_property(connector, pathprop); in intel_dp_add_mst_connector()
842 intel_attach_force_audio_property(connector); in intel_dp_add_mst_connector()
843 intel_attach_broadcast_rgb_property(connector); in intel_dp_add_mst_connector()
848 connector->name, connector->base.id); in intel_dp_add_mst_connector()
850 * Reuse the prop from the SST connector because we're in intel_dp_add_mst_connector()
853 connector->max_bpc_property = in intel_dp_add_mst_connector()
855 if (connector->max_bpc_property) in intel_dp_add_mst_connector()
856 drm_connector_attach_max_bpc_property(connector, 6, 12); in intel_dp_add_mst_connector()
858 return connector; in intel_dp_add_mst_connector()
861 drm_connector_cleanup(connector); in intel_dp_add_mst_connector()
903 * of possible_crtcs of all the encoders of a given connector in intel_dp_create_fake_mst_encoder()
904 * to figure out which crtcs can drive said connector. What in intel_dp_create_fake_mst_encoder()