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()
232 radeon_connector->ddc_bus->rec.hpd = radeon_connector->hpd.hpd; in radeon_dp_aux_init()
233 radeon_connector->ddc_bus->aux.drm_dev = radeon_connector->base.dev; in radeon_dp_aux_init()
236 radeon_connector->ddc_bus->aux.transfer = radeon_dp_aux_transfer_native; in radeon_dp_aux_init()
238 radeon_connector->ddc_bus->aux.transfer = radeon_dp_aux_transfer_atom; in radeon_dp_aux_init()
240 radeon_connector->ddc_bus->aux.transfer = radeon_dp_aux_transfer_atom; in radeon_dp_aux_init()
243 drm_dp_aux_init(&radeon_connector->ddc_bus->aux); in radeon_dp_aux_init()
244 radeon_connector->ddc_bus->has_aux = true; in radeon_dp_aux_init()
356 u8 radeon_dp_getsinktype(struct radeon_connector *radeon_connector) in radeon_dp_getsinktype() argument
358 struct drm_device *dev = radeon_connector->base.dev; in radeon_dp_getsinktype()
362 radeon_connector->ddc_bus->rec.i2c_id, 0); in radeon_dp_getsinktype()
365 static void radeon_dp_probe_oui(struct radeon_connector *radeon_connector) in radeon_dp_probe_oui() argument
367 struct radeon_connector_atom_dig *dig_connector = radeon_connector->con_priv; in radeon_dp_probe_oui()
373 if (drm_dp_dpcd_read(&radeon_connector->ddc_bus->aux, DP_SINK_OUI, buf, 3) == 3) in radeon_dp_probe_oui()
377 if (drm_dp_dpcd_read(&radeon_connector->ddc_bus->aux, DP_BRANCH_OUI, buf, 3) == 3) in radeon_dp_probe_oui()
382 bool radeon_dp_getdpcd(struct radeon_connector *radeon_connector) in radeon_dp_getdpcd() argument
384 struct radeon_connector_atom_dig *dig_connector = radeon_connector->con_priv; in radeon_dp_getdpcd()
388 ret = drm_dp_dpcd_read(&radeon_connector->ddc_bus->aux, DP_DPCD_REV, msg, in radeon_dp_getdpcd()
396 radeon_dp_probe_oui(radeon_connector); in radeon_dp_getdpcd()
410 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_dp_get_panel_mode() local
418 if (!radeon_connector->con_priv) in radeon_dp_get_panel_mode()
423 if (drm_dp_dpcd_readb(&radeon_connector->ddc_bus->aux, in radeon_dp_get_panel_mode()
435 if (drm_dp_dpcd_readb(&radeon_connector->ddc_bus->aux, in radeon_dp_get_panel_mode()
448 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_dp_set_link_config() local
452 if (!radeon_connector->con_priv) in radeon_dp_set_link_config()
454 dig_connector = radeon_connector->con_priv; in radeon_dp_set_link_config()
472 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_dp_mode_valid_helper() local
481 if (!radeon_connector->con_priv) in radeon_dp_mode_valid_helper()
483 dig_connector = radeon_connector->con_priv; in radeon_dp_mode_valid_helper()
499 bool radeon_dp_needs_link_train(struct radeon_connector *radeon_connector) in radeon_dp_needs_link_train() argument
502 struct radeon_connector_atom_dig *dig = radeon_connector->con_priv; in radeon_dp_needs_link_train()
504 if (drm_dp_dpcd_read_link_status(&radeon_connector->ddc_bus->aux, link_status) in radeon_dp_needs_link_train()
515 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_dp_set_rx_power_state() local
518 if (!radeon_connector->con_priv) in radeon_dp_set_rx_power_state()
521 dig_connector = radeon_connector->con_priv; in radeon_dp_set_rx_power_state()
525 drm_dp_dpcd_writeb(&radeon_connector->ddc_bus->aux, in radeon_dp_set_rx_power_state()
786 struct radeon_connector *radeon_connector; in radeon_dp_link_train() local
796 radeon_connector = to_radeon_connector(connector); in radeon_dp_link_train()
797 if (!radeon_connector->con_priv) in radeon_dp_link_train()
799 dig_connector = radeon_connector->con_priv; in radeon_dp_link_train()
826 if (drm_dp_dpcd_readb(&radeon_connector->ddc_bus->aux, DP_MAX_LANE_COUNT, &tmp) in radeon_dp_link_train()
842 dp_info.aux = &radeon_connector->ddc_bus->aux; in radeon_dp_link_train()