/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_connectors.c | 44 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_connector_hotplug() local 49 if (amdgpu_connector->hpd.hpd == AMDGPU_HPD_NONE) in amdgpu_connector_hotplug() 52 amdgpu_display_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); in amdgpu_connector_hotplug() 61 amdgpu_connector->con_priv; in amdgpu_connector_hotplug() 68 dig_connector->dp_sink_type = amdgpu_atombios_dp_get_sinktype(amdgpu_connector); in amdgpu_connector_hotplug() 73 amdgpu_display_hpd_sense(adev, amdgpu_connector->hpd.hpd) && in amdgpu_connector_hotplug() 74 amdgpu_atombios_dp_needs_link_train(amdgpu_connector)) { in amdgpu_connector_hotplug() 76 if (amdgpu_atombios_dp_get_dpcd(amdgpu_connector)) in amdgpu_connector_hotplug() 100 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_connector_get_monitor_bpc() local 108 if (amdgpu_connector->use_digital) { in amdgpu_connector_get_monitor_bpc() [all …]
|
D | atombios_dp.c | 188 void amdgpu_atombios_dp_aux_init(struct amdgpu_connector *amdgpu_connector) in amdgpu_atombios_dp_aux_init() argument 192 amdgpu_connector->ddc_bus->rec.hpd = amdgpu_connector->hpd.hpd; in amdgpu_atombios_dp_aux_init() 193 amdgpu_connector->ddc_bus->aux.dev = amdgpu_connector->base.kdev; in amdgpu_atombios_dp_aux_init() 194 amdgpu_connector->ddc_bus->aux.transfer = amdgpu_atombios_dp_aux_transfer; in amdgpu_atombios_dp_aux_init() 195 ret = drm_dp_aux_register(&amdgpu_connector->ddc_bus->aux); in amdgpu_atombios_dp_aux_init() 197 amdgpu_connector->ddc_bus->has_aux = true; in amdgpu_atombios_dp_aux_init() 312 u8 amdgpu_atombios_dp_get_sinktype(struct amdgpu_connector *amdgpu_connector) in amdgpu_atombios_dp_get_sinktype() argument 314 struct drm_device *dev = amdgpu_connector->base.dev; in amdgpu_atombios_dp_get_sinktype() 318 amdgpu_connector->ddc_bus->rec.i2c_id, 0); in amdgpu_atombios_dp_get_sinktype() 321 static void amdgpu_atombios_dp_probe_oui(struct amdgpu_connector *amdgpu_connector) in amdgpu_atombios_dp_probe_oui() argument [all …]
|
D | amdgpu_i2c.c | 341 amdgpu_i2c_router_select_ddc_port(struct amdgpu_connector *amdgpu_connector) in amdgpu_i2c_router_select_ddc_port() argument 345 if (!amdgpu_connector->router.ddc_valid) in amdgpu_i2c_router_select_ddc_port() 348 if (!amdgpu_connector->router_bus) in amdgpu_i2c_router_select_ddc_port() 351 amdgpu_i2c_get_byte(amdgpu_connector->router_bus, in amdgpu_i2c_router_select_ddc_port() 352 amdgpu_connector->router.i2c_addr, in amdgpu_i2c_router_select_ddc_port() 354 val &= ~amdgpu_connector->router.ddc_mux_control_pin; in amdgpu_i2c_router_select_ddc_port() 355 amdgpu_i2c_put_byte(amdgpu_connector->router_bus, in amdgpu_i2c_router_select_ddc_port() 356 amdgpu_connector->router.i2c_addr, in amdgpu_i2c_router_select_ddc_port() 358 amdgpu_i2c_get_byte(amdgpu_connector->router_bus, in amdgpu_i2c_router_select_ddc_port() 359 amdgpu_connector->router.i2c_addr, in amdgpu_i2c_router_select_ddc_port() [all …]
|
D | amdgpu_encoders.c | 39 struct amdgpu_connector *amdgpu_connector; in amdgpu_link_encoder_connector() local 45 amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_link_encoder_connector() 48 if (amdgpu_encoder->devices & amdgpu_connector->devices) { in amdgpu_link_encoder_connector() 67 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_encoder_set_active_device() local 68 amdgpu_encoder->active_device = amdgpu_encoder->devices & amdgpu_connector->devices; in amdgpu_encoder_set_active_device() 71 amdgpu_connector->devices, encoder->encoder_type); in amdgpu_encoder_set_active_device() 82 struct amdgpu_connector *amdgpu_connector; in amdgpu_get_connector_for_encoder() local 85 amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_get_connector_for_encoder() 86 if (amdgpu_encoder->active_device & amdgpu_connector->devices) in amdgpu_get_connector_for_encoder() 98 struct amdgpu_connector *amdgpu_connector; in amdgpu_get_connector_for_encoder_init() local [all …]
|
D | atombios_dp.h | 27 void amdgpu_atombios_dp_aux_init(struct amdgpu_connector *amdgpu_connector); 28 u8 amdgpu_atombios_dp_get_sinktype(struct amdgpu_connector *amdgpu_connector); 29 int amdgpu_atombios_dp_get_dpcd(struct amdgpu_connector *amdgpu_connector); 36 bool amdgpu_atombios_dp_needs_link_train(struct amdgpu_connector *amdgpu_connector);
|
D | amdgpu_display.c | 382 struct amdgpu_connector *amdgpu_connector; in amdgpu_print_display_setup() local 390 amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_print_display_setup() 393 if (amdgpu_connector->hpd.hpd != AMDGPU_HPD_NONE) in amdgpu_print_display_setup() 394 DRM_INFO(" %s\n", hpd_names[amdgpu_connector->hpd.hpd]); in amdgpu_print_display_setup() 395 if (amdgpu_connector->ddc_bus) { in amdgpu_print_display_setup() 397 amdgpu_connector->ddc_bus->rec.mask_clk_reg, in amdgpu_print_display_setup() 398 amdgpu_connector->ddc_bus->rec.mask_data_reg, in amdgpu_print_display_setup() 399 amdgpu_connector->ddc_bus->rec.a_clk_reg, in amdgpu_print_display_setup() 400 amdgpu_connector->ddc_bus->rec.a_data_reg, in amdgpu_print_display_setup() 401 amdgpu_connector->ddc_bus->rec.en_clk_reg, in amdgpu_print_display_setup() [all …]
|
D | atombios_encoders.c | 451 struct amdgpu_connector *amdgpu_connector; in amdgpu_atombios_encoder_get_encoder_mode() local 469 amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_atombios_encoder_get_encoder_mode() 475 if (amdgpu_connector->use_digital && in amdgpu_atombios_encoder_get_encoder_mode() 476 (amdgpu_connector->audio == AMDGPU_AUDIO_ENABLE)) in amdgpu_atombios_encoder_get_encoder_mode() 479 (amdgpu_connector->audio == AMDGPU_AUDIO_AUTO)) in amdgpu_atombios_encoder_get_encoder_mode() 481 else if (amdgpu_connector->use_digital) in amdgpu_atombios_encoder_get_encoder_mode() 485 } else if (amdgpu_connector->use_digital) { in amdgpu_atombios_encoder_get_encoder_mode() 495 if (amdgpu_connector->audio == AMDGPU_AUDIO_ENABLE) in amdgpu_atombios_encoder_get_encoder_mode() 498 (amdgpu_connector->audio == AMDGPU_AUDIO_AUTO)) in amdgpu_atombios_encoder_get_encoder_mode() 510 dig_connector = amdgpu_connector->con_priv; in amdgpu_atombios_encoder_get_encoder_mode() [all …]
|
D | amdgpu_i2c.h | 40 amdgpu_i2c_router_select_ddc_port(struct amdgpu_connector *amdgpu_connector); 42 amdgpu_i2c_router_select_cd_port(struct amdgpu_connector *amdgpu_connector);
|
D | dce_v8_0.c | 393 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v8_0_hpd_init() local 395 switch (amdgpu_connector->hpd.hpd) { in dce_v8_0_hpd_init() 427 switch (amdgpu_connector->hpd.hpd) { in dce_v8_0_hpd_init() 456 dce_v8_0_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); in dce_v8_0_hpd_init() 457 amdgpu_irq_get(adev, &adev->hpd_irq, amdgpu_connector->hpd.hpd); in dce_v8_0_hpd_init() 475 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v8_0_hpd_fini() local 477 switch (amdgpu_connector->hpd.hpd) { in dce_v8_0_hpd_fini() 499 amdgpu_irq_put(adev, &adev->hpd_irq, amdgpu_connector->hpd.hpd); in dce_v8_0_hpd_fini() 699 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v8_0_program_fmt() local 701 dither = amdgpu_connector->dither; in dce_v8_0_program_fmt() [all …]
|
D | dce_v10_0.c | 420 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v10_0_hpd_init() local 422 switch (amdgpu_connector->hpd.hpd) { in dce_v10_0_hpd_init() 471 dce_v10_0_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); in dce_v10_0_hpd_init() 473 amdgpu_connector->hpd.hpd); in dce_v10_0_hpd_init() 493 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v10_0_hpd_fini() local 495 switch (amdgpu_connector->hpd.hpd) { in dce_v10_0_hpd_fini() 523 amdgpu_connector->hpd.hpd); in dce_v10_0_hpd_fini() 724 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v10_0_program_fmt() local 726 dither = amdgpu_connector->dither; in dce_v10_0_program_fmt() 1437 struct amdgpu_connector *amdgpu_connector = NULL; in dce_v10_0_audio_write_latency_fields() local [all …]
|
D | dce_v11_0.c | 410 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v11_0_hpd_init() local 412 switch (amdgpu_connector->hpd.hpd) { in dce_v11_0_hpd_init() 461 dce_v11_0_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); in dce_v11_0_hpd_init() 462 amdgpu_irq_get(adev, &adev->hpd_irq, amdgpu_connector->hpd.hpd); in dce_v11_0_hpd_init() 482 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v11_0_hpd_fini() local 484 switch (amdgpu_connector->hpd.hpd) { in dce_v11_0_hpd_fini() 511 amdgpu_irq_put(adev, &adev->hpd_irq, amdgpu_connector->hpd.hpd); in dce_v11_0_hpd_fini() 712 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v11_0_program_fmt() local 714 dither = amdgpu_connector->dither; in dce_v11_0_program_fmt() 1425 struct amdgpu_connector *amdgpu_connector = NULL; in dce_v11_0_audio_write_latency_fields() local [all …]
|
D | amdgpu_mode.h | 49 #define to_amdgpu_connector(x) container_of(x, struct amdgpu_connector, base) 501 struct amdgpu_connector { struct 548 bool amdgpu_ddc_probe(struct amdgpu_connector *amdgpu_connector, bool use_aux);
|
D | atombios_crtc.c | 328 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_atombios_crtc_adjust_pll() local 330 amdgpu_connector->con_priv; in amdgpu_atombios_crtc_adjust_pll() 686 struct amdgpu_connector *amdgpu_connector = in amdgpu_atombios_crtc_prepare_pll() local 689 amdgpu_connector->con_priv; in amdgpu_atombios_crtc_prepare_pll() 693 amdgpu_connector->pixelclock_for_modeset = mode->clock; in amdgpu_atombios_crtc_prepare_pll()
|