Lines Matching refs:intel_dp

38 	struct intel_dp *intel_dp = &intel_dig_port->dp;  in intel_dp_mst_compute_config()  local
54 lane_count = drm_dp_max_lane_count(intel_dp->dpcd); in intel_dp_mst_compute_config()
56 rate = intel_dp_max_link_rate(intel_dp); in intel_dp_mst_compute_config()
58 if (intel_dp->num_sink_rates) { in intel_dp_mst_compute_config()
59 intel_dp->link_bw = 0; in intel_dp_mst_compute_config()
60 intel_dp->rate_select = intel_dp_rate_select(intel_dp, rate); in intel_dp_mst_compute_config()
62 intel_dp->link_bw = drm_dp_link_rate_to_bw_code(rate); in intel_dp_mst_compute_config()
63 intel_dp->rate_select = 0; in intel_dp_mst_compute_config()
66 intel_dp->lane_count = lane_count; in intel_dp_mst_compute_config()
91 slots = drm_dp_find_vcpi_slots(&intel_dp->mst_mgr, mst_pbn); in intel_dp_mst_compute_config()
107 struct intel_dp *intel_dp = &intel_dig_port->dp; in intel_mst_disable_dp() local
110 DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links); in intel_mst_disable_dp()
112 drm_dp_mst_reset_vcpi_slots(&intel_dp->mst_mgr, intel_mst->port); in intel_mst_disable_dp()
114 ret = drm_dp_update_payload_part1(&intel_dp->mst_mgr); in intel_mst_disable_dp()
124 struct intel_dp *intel_dp = &intel_dig_port->dp; in intel_mst_post_disable_dp() local
126 DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links); in intel_mst_post_disable_dp()
129 drm_dp_check_act_status(&intel_dp->mst_mgr); in intel_mst_post_disable_dp()
131 drm_dp_update_payload_part2(&intel_dp->mst_mgr); in intel_mst_post_disable_dp()
133 drm_dp_mst_deallocate_vcpi(&intel_dp->mst_mgr, intel_mst->port); in intel_mst_post_disable_dp()
135 intel_dp->active_mst_links--; in intel_mst_post_disable_dp()
137 if (intel_dp->active_mst_links == 0) { in intel_mst_post_disable_dp()
139 intel_dp_sink_dpms(intel_dp, DRM_MODE_DPMS_OFF); in intel_mst_post_disable_dp()
147 struct intel_dp *intel_dp = &intel_dig_port->dp; in intel_mst_pre_enable_dp() local
170 DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links); in intel_mst_pre_enable_dp()
173 if (intel_dp->active_mst_links == 0) { in intel_mst_pre_enable_dp()
181 intel_dp_sink_dpms(intel_dp, DRM_MODE_DPMS_ON); in intel_mst_pre_enable_dp()
184 intel_dp_start_link_train(intel_dp); in intel_mst_pre_enable_dp()
185 intel_dp_complete_link_train(intel_dp); in intel_mst_pre_enable_dp()
186 intel_dp_stop_link_train(intel_dp); in intel_mst_pre_enable_dp()
189 ret = drm_dp_mst_allocate_vcpi(&intel_dp->mst_mgr, in intel_mst_pre_enable_dp()
198 intel_dp->active_mst_links++; in intel_mst_pre_enable_dp()
202 ret = drm_dp_update_payload_part1(&intel_dp->mst_mgr); in intel_mst_pre_enable_dp()
209 struct intel_dp *intel_dp = &intel_dig_port->dp; in intel_mst_enable_dp() local
215 DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links); in intel_mst_enable_dp()
221 ret = drm_dp_check_act_status(&intel_dp->mst_mgr); in intel_mst_enable_dp()
223 ret = drm_dp_update_payload_part2(&intel_dp->mst_mgr); in intel_mst_enable_dp()
284 struct intel_dp *intel_dp = intel_connector->mst_port; in intel_dp_mst_get_ddc_modes() local
288 edid = drm_dp_mst_get_edid(connector, &intel_dp->mst_mgr, intel_connector->port); in intel_dp_mst_get_ddc_modes()
302 struct intel_dp *intel_dp = intel_connector->mst_port; in intel_dp_mst_detect() local
304 return drm_dp_mst_detect_port(connector, &intel_dp->mst_mgr, intel_connector->port); in intel_dp_mst_detect()
360 struct intel_dp *intel_dp = intel_connector->mst_port; in intel_mst_best_encoder() local
361 return &intel_dp->mst_encoders[0]->base.base; in intel_mst_best_encoder()
411 struct intel_dp *intel_dp = container_of(mgr, struct intel_dp, mst_mgr); in intel_dp_add_mst_connector() local
412 struct intel_digital_port *intel_dig_port = dp_to_dig_port(intel_dp); in intel_dp_add_mst_connector()
428 intel_connector->mst_port = intel_dp; in intel_dp_add_mst_connector()
433 &intel_dp->mst_encoders[i]->base.base); in intel_dp_add_mst_connector()
435 intel_dp_add_properties(intel_dp, connector); in intel_dp_add_mst_connector()
483 struct intel_dp *intel_dp = container_of(mgr, struct intel_dp, mst_mgr); in intel_dp_mst_hotplug() local
484 struct intel_digital_port *intel_dig_port = dp_to_dig_port(intel_dp); in intel_dp_mst_hotplug()
535 struct intel_dp *intel_dp = &intel_dig_port->dp; in intel_dp_create_fake_mst_encoders() local
538 intel_dp->mst_encoders[i] = intel_dp_create_fake_mst_encoder(intel_dig_port, i); in intel_dp_create_fake_mst_encoders()
545 struct intel_dp *intel_dp = &intel_dig_port->dp; in intel_dp_mst_encoder_init() local
549 intel_dp->can_mst = true; in intel_dp_mst_encoder_init()
550 intel_dp->mst_mgr.cbs = &mst_cbs; in intel_dp_mst_encoder_init()
554 …ret = drm_dp_mst_topology_mgr_init(&intel_dp->mst_mgr, dev->dev, &intel_dp->aux, 16, 3, conn_base_… in intel_dp_mst_encoder_init()
556 intel_dp->can_mst = false; in intel_dp_mst_encoder_init()
565 struct intel_dp *intel_dp = &intel_dig_port->dp; in intel_dp_mst_encoder_cleanup() local
567 if (!intel_dp->can_mst) in intel_dp_mst_encoder_cleanup()
570 drm_dp_mst_topology_mgr_destroy(&intel_dp->mst_mgr); in intel_dp_mst_encoder_cleanup()