Lines Matching refs:radeon_connector
227 void radeon_dp_aux_init(struct radeon_connector *radeon_connector) in radeon_dp_aux_init() argument
229 struct drm_device *dev = radeon_connector->base.dev; in radeon_dp_aux_init()
233 radeon_connector->ddc_bus->rec.hpd = radeon_connector->hpd.hpd; in radeon_dp_aux_init()
234 radeon_connector->ddc_bus->aux.dev = radeon_connector->base.kdev; in radeon_dp_aux_init()
235 radeon_connector->ddc_bus->aux.drm_dev = radeon_connector->base.dev; in radeon_dp_aux_init()
238 radeon_connector->ddc_bus->aux.transfer = radeon_dp_aux_transfer_native; in radeon_dp_aux_init()
240 radeon_connector->ddc_bus->aux.transfer = radeon_dp_aux_transfer_atom; in radeon_dp_aux_init()
242 radeon_connector->ddc_bus->aux.transfer = radeon_dp_aux_transfer_atom; in radeon_dp_aux_init()
245 ret = drm_dp_aux_register(&radeon_connector->ddc_bus->aux); in radeon_dp_aux_init()
247 radeon_connector->ddc_bus->has_aux = true; in radeon_dp_aux_init()
361 u8 radeon_dp_getsinktype(struct radeon_connector *radeon_connector) in radeon_dp_getsinktype() argument
363 struct drm_device *dev = radeon_connector->base.dev; in radeon_dp_getsinktype()
367 radeon_connector->ddc_bus->rec.i2c_id, 0); in radeon_dp_getsinktype()
370 static void radeon_dp_probe_oui(struct radeon_connector *radeon_connector) in radeon_dp_probe_oui() argument
372 struct radeon_connector_atom_dig *dig_connector = radeon_connector->con_priv; in radeon_dp_probe_oui()
378 if (drm_dp_dpcd_read(&radeon_connector->ddc_bus->aux, DP_SINK_OUI, buf, 3) == 3) in radeon_dp_probe_oui()
382 if (drm_dp_dpcd_read(&radeon_connector->ddc_bus->aux, DP_BRANCH_OUI, buf, 3) == 3) in radeon_dp_probe_oui()
387 bool radeon_dp_getdpcd(struct radeon_connector *radeon_connector) in radeon_dp_getdpcd() argument
389 struct radeon_connector_atom_dig *dig_connector = radeon_connector->con_priv; in radeon_dp_getdpcd()
393 ret = drm_dp_dpcd_read(&radeon_connector->ddc_bus->aux, DP_DPCD_REV, msg, in radeon_dp_getdpcd()
401 radeon_dp_probe_oui(radeon_connector); in radeon_dp_getdpcd()
415 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_dp_get_panel_mode() local
423 if (!radeon_connector->con_priv) in radeon_dp_get_panel_mode()
428 if (drm_dp_dpcd_readb(&radeon_connector->ddc_bus->aux, in radeon_dp_get_panel_mode()
440 if (drm_dp_dpcd_readb(&radeon_connector->ddc_bus->aux, in radeon_dp_get_panel_mode()
453 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_dp_set_link_config() local
457 if (!radeon_connector->con_priv) in radeon_dp_set_link_config()
459 dig_connector = radeon_connector->con_priv; in radeon_dp_set_link_config()
477 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_dp_mode_valid_helper() local
486 if (!radeon_connector->con_priv) in radeon_dp_mode_valid_helper()
488 dig_connector = radeon_connector->con_priv; in radeon_dp_mode_valid_helper()
504 bool radeon_dp_needs_link_train(struct radeon_connector *radeon_connector) in radeon_dp_needs_link_train() argument
507 struct radeon_connector_atom_dig *dig = radeon_connector->con_priv; in radeon_dp_needs_link_train()
509 if (drm_dp_dpcd_read_link_status(&radeon_connector->ddc_bus->aux, link_status) in radeon_dp_needs_link_train()
520 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_dp_set_rx_power_state() local
523 if (!radeon_connector->con_priv) in radeon_dp_set_rx_power_state()
526 dig_connector = radeon_connector->con_priv; in radeon_dp_set_rx_power_state()
530 drm_dp_dpcd_writeb(&radeon_connector->ddc_bus->aux, in radeon_dp_set_rx_power_state()
791 struct radeon_connector *radeon_connector; in radeon_dp_link_train() local
801 radeon_connector = to_radeon_connector(connector); in radeon_dp_link_train()
802 if (!radeon_connector->con_priv) in radeon_dp_link_train()
804 dig_connector = radeon_connector->con_priv; in radeon_dp_link_train()
831 if (drm_dp_dpcd_readb(&radeon_connector->ddc_bus->aux, DP_MAX_LANE_COUNT, &tmp) in radeon_dp_link_train()
847 dp_info.aux = &radeon_connector->ddc_bus->aux; in radeon_dp_link_train()