/Linux-v6.6/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_connectors.c | 47 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_connector_hotplug() local 52 if (amdgpu_connector->hpd.hpd == AMDGPU_HPD_NONE) in amdgpu_connector_hotplug() 55 amdgpu_display_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); in amdgpu_connector_hotplug() 64 amdgpu_connector->con_priv; in amdgpu_connector_hotplug() 71 dig_connector->dp_sink_type = amdgpu_atombios_dp_get_sinktype(amdgpu_connector); in amdgpu_connector_hotplug() 76 amdgpu_display_hpd_sense(adev, amdgpu_connector->hpd.hpd) && in amdgpu_connector_hotplug() 77 amdgpu_atombios_dp_needs_link_train(amdgpu_connector)) { in amdgpu_connector_hotplug() 79 if (amdgpu_atombios_dp_get_dpcd(amdgpu_connector)) in amdgpu_connector_hotplug() 103 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_connector_get_monitor_bpc() local 111 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 190 amdgpu_connector->ddc_bus->rec.hpd = amdgpu_connector->hpd.hpd; in amdgpu_atombios_dp_aux_init() 191 amdgpu_connector->ddc_bus->aux.transfer = amdgpu_atombios_dp_aux_transfer; in amdgpu_atombios_dp_aux_init() 192 amdgpu_connector->ddc_bus->aux.drm_dev = amdgpu_connector->base.dev; in amdgpu_atombios_dp_aux_init() 194 drm_dp_aux_init(&amdgpu_connector->ddc_bus->aux); in amdgpu_atombios_dp_aux_init() 195 amdgpu_connector->ddc_bus->has_aux = true; in amdgpu_atombios_dp_aux_init() 308 u8 amdgpu_atombios_dp_get_sinktype(struct amdgpu_connector *amdgpu_connector) in amdgpu_atombios_dp_get_sinktype() argument 310 struct drm_device *dev = amdgpu_connector->base.dev; in amdgpu_atombios_dp_get_sinktype() 314 amdgpu_connector->ddc_bus->rec.i2c_id, 0); in amdgpu_atombios_dp_get_sinktype() 317 static void amdgpu_atombios_dp_probe_oui(struct amdgpu_connector *amdgpu_connector) in amdgpu_atombios_dp_probe_oui() argument [all …]
|
D | amdgpu_i2c.c | 340 amdgpu_i2c_router_select_ddc_port(const struct amdgpu_connector *amdgpu_connector) in amdgpu_i2c_router_select_ddc_port() argument 344 if (!amdgpu_connector->router.ddc_valid) in amdgpu_i2c_router_select_ddc_port() 347 if (!amdgpu_connector->router_bus) in amdgpu_i2c_router_select_ddc_port() 350 amdgpu_i2c_get_byte(amdgpu_connector->router_bus, in amdgpu_i2c_router_select_ddc_port() 351 amdgpu_connector->router.i2c_addr, in amdgpu_i2c_router_select_ddc_port() 353 val &= ~amdgpu_connector->router.ddc_mux_control_pin; in amdgpu_i2c_router_select_ddc_port() 354 amdgpu_i2c_put_byte(amdgpu_connector->router_bus, in amdgpu_i2c_router_select_ddc_port() 355 amdgpu_connector->router.i2c_addr, in amdgpu_i2c_router_select_ddc_port() 357 amdgpu_i2c_get_byte(amdgpu_connector->router_bus, in amdgpu_i2c_router_select_ddc_port() 358 amdgpu_connector->router.i2c_addr, in amdgpu_i2c_router_select_ddc_port() [all …]
|
D | amdgpu_encoders.c | 40 struct amdgpu_connector *amdgpu_connector; in amdgpu_link_encoder_connector() local 47 amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_link_encoder_connector() 50 if (amdgpu_encoder->devices & amdgpu_connector->devices) { in amdgpu_link_encoder_connector() 72 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_encoder_set_active_device() local 74 amdgpu_encoder->active_device = amdgpu_encoder->devices & amdgpu_connector->devices; in amdgpu_encoder_set_active_device() 77 amdgpu_connector->devices, encoder->encoder_type); in amdgpu_encoder_set_active_device() 90 struct amdgpu_connector *amdgpu_connector; in amdgpu_get_connector_for_encoder() local 94 amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_get_connector_for_encoder() 95 if (amdgpu_encoder->active_device & amdgpu_connector->devices) { in amdgpu_get_connector_for_encoder() 111 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 | atombios_encoders.c | 442 struct amdgpu_connector *amdgpu_connector; in amdgpu_atombios_encoder_get_encoder_mode() local 460 amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_atombios_encoder_get_encoder_mode() 466 if (amdgpu_connector->use_digital && in amdgpu_atombios_encoder_get_encoder_mode() 467 (amdgpu_connector->audio == AMDGPU_AUDIO_ENABLE)) in amdgpu_atombios_encoder_get_encoder_mode() 470 (amdgpu_connector->audio == AMDGPU_AUDIO_AUTO)) in amdgpu_atombios_encoder_get_encoder_mode() 472 else if (amdgpu_connector->use_digital) in amdgpu_atombios_encoder_get_encoder_mode() 476 } else if (amdgpu_connector->use_digital) { in amdgpu_atombios_encoder_get_encoder_mode() 486 if (amdgpu_connector->audio == AMDGPU_AUDIO_ENABLE) in amdgpu_atombios_encoder_get_encoder_mode() 489 (amdgpu_connector->audio == AMDGPU_AUDIO_AUTO)) in amdgpu_atombios_encoder_get_encoder_mode() 499 dig_connector = amdgpu_connector->con_priv; in amdgpu_atombios_encoder_get_encoder_mode() [all …]
|
D | amdgpu_display.c | 413 struct amdgpu_connector *amdgpu_connector; in amdgpu_display_print_display_setup() local 423 amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_display_print_display_setup() 426 if (amdgpu_connector->hpd.hpd != AMDGPU_HPD_NONE) in amdgpu_display_print_display_setup() 427 DRM_INFO(" %s\n", hpd_names[amdgpu_connector->hpd.hpd]); in amdgpu_display_print_display_setup() 428 if (amdgpu_connector->ddc_bus) { in amdgpu_display_print_display_setup() 430 amdgpu_connector->ddc_bus->rec.mask_clk_reg, in amdgpu_display_print_display_setup() 431 amdgpu_connector->ddc_bus->rec.mask_data_reg, in amdgpu_display_print_display_setup() 432 amdgpu_connector->ddc_bus->rec.a_clk_reg, in amdgpu_display_print_display_setup() 433 amdgpu_connector->ddc_bus->rec.a_data_reg, in amdgpu_display_print_display_setup() 434 amdgpu_connector->ddc_bus->rec.en_clk_reg, in amdgpu_display_print_display_setup() [all …]
|
D | amdgpu_i2c.h | 40 amdgpu_i2c_router_select_ddc_port(const struct amdgpu_connector *connector); 42 amdgpu_i2c_router_select_cd_port(const struct amdgpu_connector *connector);
|
D | dce_v6_0.c | 292 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v6_0_hpd_init() local 294 if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) in dce_v6_0_hpd_init() 297 tmp = RREG32(mmDC_HPD1_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); in dce_v6_0_hpd_init() 299 WREG32(mmDC_HPD1_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); in dce_v6_0_hpd_init() 308 tmp = RREG32(mmDC_HPD1_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); in dce_v6_0_hpd_init() 310 WREG32(mmDC_HPD1_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); in dce_v6_0_hpd_init() 314 dce_v6_0_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); in dce_v6_0_hpd_init() 315 amdgpu_irq_get(adev, &adev->hpd_irq, amdgpu_connector->hpd.hpd); in dce_v6_0_hpd_init() 337 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v6_0_hpd_fini() local 339 if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) in dce_v6_0_hpd_fini() [all …]
|
D | amdgpu_mode.h | 56 #define to_amdgpu_connector(x) container_of(x, struct amdgpu_connector, base) 522 struct amdgpu_connector { struct 548 struct amdgpu_connector base; argument 553 struct amdgpu_connector *mst_root; 580 bool amdgpu_display_ddc_probe(struct amdgpu_connector *amdgpu_connector,
|
D | dce_v8_0.c | 284 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v8_0_hpd_init() local 286 if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) in dce_v8_0_hpd_init() 289 tmp = RREG32(mmDC_HPD1_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); in dce_v8_0_hpd_init() 291 WREG32(mmDC_HPD1_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); in dce_v8_0_hpd_init() 300 tmp = RREG32(mmDC_HPD1_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); in dce_v8_0_hpd_init() 302 WREG32(mmDC_HPD1_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); in dce_v8_0_hpd_init() 306 dce_v8_0_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); in dce_v8_0_hpd_init() 307 amdgpu_irq_get(adev, &adev->hpd_irq, amdgpu_connector->hpd.hpd); in dce_v8_0_hpd_init() 329 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v8_0_hpd_fini() local 331 if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) in dce_v8_0_hpd_fini() [all …]
|
D | dce_v10_0.c | 335 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v10_0_hpd_init() local 337 if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) in dce_v10_0_hpd_init() 347 tmp = RREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); in dce_v10_0_hpd_init() 349 WREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); in dce_v10_0_hpd_init() 353 tmp = RREG32(mmDC_HPD_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); in dce_v10_0_hpd_init() 355 WREG32(mmDC_HPD_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); in dce_v10_0_hpd_init() 357 tmp = RREG32(mmDC_HPD_TOGGLE_FILT_CNTL + hpd_offsets[amdgpu_connector->hpd.hpd]); in dce_v10_0_hpd_init() 364 WREG32(mmDC_HPD_TOGGLE_FILT_CNTL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); in dce_v10_0_hpd_init() 366 dce_v10_0_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); in dce_v10_0_hpd_init() 368 amdgpu_connector->hpd.hpd); in dce_v10_0_hpd_init() [all …]
|
D | dce_v11_0.c | 359 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v11_0_hpd_init() local 361 if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) in dce_v11_0_hpd_init() 371 tmp = RREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); in dce_v11_0_hpd_init() 373 WREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); in dce_v11_0_hpd_init() 377 tmp = RREG32(mmDC_HPD_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); in dce_v11_0_hpd_init() 379 WREG32(mmDC_HPD_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); in dce_v11_0_hpd_init() 381 tmp = RREG32(mmDC_HPD_TOGGLE_FILT_CNTL + hpd_offsets[amdgpu_connector->hpd.hpd]); in dce_v11_0_hpd_init() 388 WREG32(mmDC_HPD_TOGGLE_FILT_CNTL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); in dce_v11_0_hpd_init() 390 dce_v11_0_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); in dce_v11_0_hpd_init() 391 amdgpu_irq_get(adev, &adev->hpd_irq, amdgpu_connector->hpd.hpd); in dce_v11_0_hpd_init() [all …]
|
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() 764 struct amdgpu_connector *amdgpu_connector = in amdgpu_atombios_crtc_prepare_pll() local 767 amdgpu_connector->con_priv; in amdgpu_atombios_crtc_prepare_pll() 771 amdgpu_connector->pixelclock_for_modeset = mode->clock; in amdgpu_atombios_crtc_prepare_pll()
|