Lines Matching refs:connector

10 static struct radeon_encoder *radeon_dp_create_fake_mst_encoder(struct radeon_connector *connector);
110 struct drm_connector *connector; in radeon_dp_mst_update_stream_attribs() local
113 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in radeon_dp_mst_update_stream_attribs()
117 radeon_connector = to_radeon_connector(connector); in radeon_dp_mst_update_stream_attribs()
175 static int radeon_dp_mst_get_ddc_modes(struct drm_connector *connector) in radeon_dp_mst_get_ddc_modes() argument
177 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_dp_mst_get_ddc_modes()
182 edid = drm_dp_mst_get_edid(connector, &master->mst_mgr, radeon_connector->port); in radeon_dp_mst_get_ddc_modes()
196 static int radeon_dp_mst_get_modes(struct drm_connector *connector) in radeon_dp_mst_get_modes() argument
198 return radeon_dp_mst_get_ddc_modes(connector); in radeon_dp_mst_get_modes()
202 radeon_dp_mst_mode_valid(struct drm_connector *connector, in radeon_dp_mst_mode_valid() argument
215 struct drm_encoder *radeon_mst_best_encoder(struct drm_connector *connector) in radeon_mst_best_encoder() argument
217 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_mst_best_encoder()
229 radeon_dp_mst_detect(struct drm_connector *connector, bool force) in radeon_dp_mst_detect() argument
231 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_dp_mst_detect()
234 return drm_dp_mst_detect_port(connector, &master->mst_mgr, radeon_connector->port); in radeon_dp_mst_detect()
238 radeon_dp_mst_connector_destroy(struct drm_connector *connector) in radeon_dp_mst_connector_destroy() argument
240 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_dp_mst_connector_destroy()
245 drm_connector_cleanup(connector); in radeon_dp_mst_connector_destroy()
249 static int radeon_connector_dpms(struct drm_connector *connector, int mode) in radeon_connector_dpms() argument
269 struct drm_connector *connector; in radeon_dp_add_mst_connector() local
276 connector = &radeon_connector->base; in radeon_dp_add_mst_connector()
281 drm_connector_init(dev, connector, &radeon_dp_mst_connector_funcs, DRM_MODE_CONNECTOR_DisplayPort); in radeon_dp_add_mst_connector()
282 drm_connector_helper_add(connector, &radeon_dp_mst_connector_helper_funcs); in radeon_dp_add_mst_connector()
285 drm_object_attach_property(&connector->base, dev->mode_config.path_property, 0); in radeon_dp_add_mst_connector()
286 drm_object_attach_property(&connector->base, dev->mode_config.tile_property, 0); in radeon_dp_add_mst_connector()
287 drm_mode_connector_set_path_property(connector, pathprop); in radeon_dp_add_mst_connector()
289 return connector; in radeon_dp_add_mst_connector()
292 static void radeon_dp_register_mst_connector(struct drm_connector *connector) in radeon_dp_register_mst_connector() argument
294 struct drm_device *dev = connector->dev; in radeon_dp_register_mst_connector()
298 radeon_fb_add_connector(rdev, connector); in radeon_dp_register_mst_connector()
301 drm_connector_register(connector); in radeon_dp_register_mst_connector()
305 struct drm_connector *connector) in radeon_dp_destroy_mst_connector() argument
311 drm_connector_unregister(connector); in radeon_dp_destroy_mst_connector()
315 radeon_fb_remove_connector(rdev, connector); in radeon_dp_destroy_mst_connector()
317 drm_connector_cleanup(connector); in radeon_dp_destroy_mst_connector()
320 kfree(connector); in radeon_dp_destroy_mst_connector()
342 struct drm_connector *connector; in radeon_mst_find_connector() local
344 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in radeon_mst_find_connector()
345 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_mst_find_connector()
346 if (!connector->encoder) in radeon_mst_find_connector()
351 DRM_DEBUG_KMS("checking %p vs %p\n", connector->encoder, encoder); in radeon_mst_find_connector()
352 if (connector->encoder == encoder) in radeon_mst_find_connector()
367 struct radeon_connector_atom_dig *dig_connector = mst_enc->connector->con_priv; in radeon_dp_mst_prepare_pll()
433 if (radeon_dp_needs_link_train(mst_enc->connector) || in radeon_mst_encoder_dpms()
435 radeon_dp_link_train(&primary->base, &mst_enc->connector->base); in radeon_mst_encoder_dpms()
519 mst_enc->primary->active_device = mst_enc->primary->devices & mst_enc->connector->devices; in radeon_mst_mode_fixup()
522 mst_enc->connector->devices, mst_enc->primary->base.encoder_type); in radeon_mst_mode_fixup()
529 dig_connector = mst_enc->connector->con_priv; in radeon_mst_mode_fixup()
531 dig_connector->dp_clock = radeon_dp_get_max_link_rate(&mst_enc->connector->base, in radeon_mst_mode_fixup()
606 radeon_dp_create_fake_mst_encoder(struct radeon_connector *connector) in radeon_dp_create_fake_mst_encoder() argument
608 struct drm_device *dev = connector->base.dev; in radeon_dp_create_fake_mst_encoder()
613 const struct drm_connector_helper_funcs *connector_funcs = connector->base.helper_private; in radeon_dp_create_fake_mst_encoder()
614 struct drm_encoder *enc_master = connector_funcs->best_encoder(&connector->base); in radeon_dp_create_fake_mst_encoder()
648 mst_enc->connector = connector; in radeon_dp_create_fake_mst_encoder()
758 struct drm_connector *connector; in radeon_debugfs_mst_info() local
764 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in radeon_debugfs_mst_info()
765 if (connector->connector_type != DRM_MODE_CONNECTOR_DisplayPort) in radeon_debugfs_mst_info()
768 radeon_connector = to_radeon_connector(connector); in radeon_debugfs_mst_info()