Home
last modified time | relevance | path

Searched refs:amdgpu_connector (Results 1 – 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_connectors.c46 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_connector_hotplug() local
51 if (amdgpu_connector->hpd.hpd == AMDGPU_HPD_NONE) in amdgpu_connector_hotplug()
54 amdgpu_display_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); in amdgpu_connector_hotplug()
63 amdgpu_connector->con_priv; in amdgpu_connector_hotplug()
70 dig_connector->dp_sink_type = amdgpu_atombios_dp_get_sinktype(amdgpu_connector); in amdgpu_connector_hotplug()
75 amdgpu_display_hpd_sense(adev, amdgpu_connector->hpd.hpd) && in amdgpu_connector_hotplug()
76 amdgpu_atombios_dp_needs_link_train(amdgpu_connector)) { in amdgpu_connector_hotplug()
78 if (amdgpu_atombios_dp_get_dpcd(amdgpu_connector)) in amdgpu_connector_hotplug()
102 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_connector_get_monitor_bpc() local
110 if (amdgpu_connector->use_digital) { in amdgpu_connector_get_monitor_bpc()
[all …]
Datombios_dp.c187 void amdgpu_atombios_dp_aux_init(struct amdgpu_connector *amdgpu_connector) in amdgpu_atombios_dp_aux_init() argument
189 amdgpu_connector->ddc_bus->rec.hpd = amdgpu_connector->hpd.hpd; in amdgpu_atombios_dp_aux_init()
190 amdgpu_connector->ddc_bus->aux.transfer = amdgpu_atombios_dp_aux_transfer; in amdgpu_atombios_dp_aux_init()
191 drm_dp_aux_init(&amdgpu_connector->ddc_bus->aux); in amdgpu_atombios_dp_aux_init()
192 amdgpu_connector->ddc_bus->has_aux = true; in amdgpu_atombios_dp_aux_init()
305 u8 amdgpu_atombios_dp_get_sinktype(struct amdgpu_connector *amdgpu_connector) in amdgpu_atombios_dp_get_sinktype() argument
307 struct drm_device *dev = amdgpu_connector->base.dev; in amdgpu_atombios_dp_get_sinktype()
311 amdgpu_connector->ddc_bus->rec.i2c_id, 0); in amdgpu_atombios_dp_get_sinktype()
314 static void amdgpu_atombios_dp_probe_oui(struct amdgpu_connector *amdgpu_connector) in amdgpu_atombios_dp_probe_oui() argument
316 struct amdgpu_connector_atom_dig *dig_connector = amdgpu_connector->con_priv; in amdgpu_atombios_dp_probe_oui()
[all …]
Damdgpu_i2c.c340 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 …]
Damdgpu_encoders.c41 struct amdgpu_connector *amdgpu_connector; in amdgpu_link_encoder_connector() local
48 amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_link_encoder_connector()
51 if (amdgpu_encoder->devices & amdgpu_connector->devices) { in amdgpu_link_encoder_connector()
73 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 …]
Datombios_dp.h27 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);
Damdgpu_display.c371 struct amdgpu_connector *amdgpu_connector; in amdgpu_display_print_display_setup() local
381 amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_display_print_display_setup()
384 if (amdgpu_connector->hpd.hpd != AMDGPU_HPD_NONE) in amdgpu_display_print_display_setup()
385 DRM_INFO(" %s\n", hpd_names[amdgpu_connector->hpd.hpd]); in amdgpu_display_print_display_setup()
386 if (amdgpu_connector->ddc_bus) { in amdgpu_display_print_display_setup()
388 amdgpu_connector->ddc_bus->rec.mask_clk_reg, in amdgpu_display_print_display_setup()
389 amdgpu_connector->ddc_bus->rec.mask_data_reg, in amdgpu_display_print_display_setup()
390 amdgpu_connector->ddc_bus->rec.a_clk_reg, in amdgpu_display_print_display_setup()
391 amdgpu_connector->ddc_bus->rec.a_data_reg, in amdgpu_display_print_display_setup()
392 amdgpu_connector->ddc_bus->rec.en_clk_reg, in amdgpu_display_print_display_setup()
[all …]
Datombios_encoders.c448 struct amdgpu_connector *amdgpu_connector; in amdgpu_atombios_encoder_get_encoder_mode() local
466 amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_atombios_encoder_get_encoder_mode()
472 if (amdgpu_connector->use_digital && in amdgpu_atombios_encoder_get_encoder_mode()
473 (amdgpu_connector->audio == AMDGPU_AUDIO_ENABLE)) in amdgpu_atombios_encoder_get_encoder_mode()
476 (amdgpu_connector->audio == AMDGPU_AUDIO_AUTO)) in amdgpu_atombios_encoder_get_encoder_mode()
478 else if (amdgpu_connector->use_digital) in amdgpu_atombios_encoder_get_encoder_mode()
482 } else if (amdgpu_connector->use_digital) { in amdgpu_atombios_encoder_get_encoder_mode()
492 if (amdgpu_connector->audio == AMDGPU_AUDIO_ENABLE) in amdgpu_atombios_encoder_get_encoder_mode()
495 (amdgpu_connector->audio == AMDGPU_AUDIO_AUTO)) in amdgpu_atombios_encoder_get_encoder_mode()
507 dig_connector = amdgpu_connector->con_priv; in amdgpu_atombios_encoder_get_encoder_mode()
[all …]
Damdgpu_i2c.h40 amdgpu_i2c_router_select_ddc_port(const struct amdgpu_connector *connector);
42 amdgpu_i2c_router_select_cd_port(const struct amdgpu_connector *connector);
Ddce_v6_0.c289 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v6_0_hpd_init() local
291 if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) in dce_v6_0_hpd_init()
294 tmp = RREG32(mmDC_HPD1_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); in dce_v6_0_hpd_init()
296 WREG32(mmDC_HPD1_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); in dce_v6_0_hpd_init()
305 tmp = RREG32(mmDC_HPD1_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); in dce_v6_0_hpd_init()
307 WREG32(mmDC_HPD1_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); in dce_v6_0_hpd_init()
311 dce_v6_0_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); in dce_v6_0_hpd_init()
312 amdgpu_irq_get(adev, &adev->hpd_irq, amdgpu_connector->hpd.hpd); in dce_v6_0_hpd_init()
334 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v6_0_hpd_fini() local
336 if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) in dce_v6_0_hpd_fini()
[all …]
Damdgpu_mode.h58 #define to_amdgpu_connector(x) container_of(x, struct amdgpu_connector, base)
535 struct amdgpu_connector { struct
560 struct amdgpu_connector base; argument
565 struct amdgpu_connector *mst_port;
592 bool amdgpu_display_ddc_probe(struct amdgpu_connector *amdgpu_connector,
Ddce_v8_0.c283 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v8_0_hpd_init() local
285 if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) in dce_v8_0_hpd_init()
288 tmp = RREG32(mmDC_HPD1_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); in dce_v8_0_hpd_init()
290 WREG32(mmDC_HPD1_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); in dce_v8_0_hpd_init()
299 tmp = RREG32(mmDC_HPD1_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); in dce_v8_0_hpd_init()
301 WREG32(mmDC_HPD1_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); in dce_v8_0_hpd_init()
305 dce_v8_0_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); in dce_v8_0_hpd_init()
306 amdgpu_irq_get(adev, &adev->hpd_irq, amdgpu_connector->hpd.hpd); in dce_v8_0_hpd_init()
328 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v8_0_hpd_fini() local
330 if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) in dce_v8_0_hpd_fini()
[all …]
Ddce_v10_0.c338 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v10_0_hpd_init() local
340 if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) in dce_v10_0_hpd_init()
350 tmp = RREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); in dce_v10_0_hpd_init()
352 WREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); in dce_v10_0_hpd_init()
356 tmp = RREG32(mmDC_HPD_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); in dce_v10_0_hpd_init()
358 WREG32(mmDC_HPD_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); in dce_v10_0_hpd_init()
360 tmp = RREG32(mmDC_HPD_TOGGLE_FILT_CNTL + hpd_offsets[amdgpu_connector->hpd.hpd]); in dce_v10_0_hpd_init()
367 WREG32(mmDC_HPD_TOGGLE_FILT_CNTL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); in dce_v10_0_hpd_init()
369 dce_v10_0_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); in dce_v10_0_hpd_init()
371 amdgpu_connector->hpd.hpd); in dce_v10_0_hpd_init()
[all …]
Ddce_v11_0.c356 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in dce_v11_0_hpd_init() local
358 if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) in dce_v11_0_hpd_init()
368 tmp = RREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); in dce_v11_0_hpd_init()
370 WREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); in dce_v11_0_hpd_init()
374 tmp = RREG32(mmDC_HPD_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); in dce_v11_0_hpd_init()
376 WREG32(mmDC_HPD_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); in dce_v11_0_hpd_init()
378 tmp = RREG32(mmDC_HPD_TOGGLE_FILT_CNTL + hpd_offsets[amdgpu_connector->hpd.hpd]); in dce_v11_0_hpd_init()
385 WREG32(mmDC_HPD_TOGGLE_FILT_CNTL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); in dce_v11_0_hpd_init()
387 dce_v11_0_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); in dce_v11_0_hpd_init()
388 amdgpu_irq_get(adev, &adev->hpd_irq, amdgpu_connector->hpd.hpd); in dce_v11_0_hpd_init()
[all …]
Datombios_crtc.c329 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_atombios_crtc_adjust_pll() local
331 amdgpu_connector->con_priv; in amdgpu_atombios_crtc_adjust_pll()
765 struct amdgpu_connector *amdgpu_connector = in amdgpu_atombios_crtc_prepare_pll() local
768 amdgpu_connector->con_priv; in amdgpu_atombios_crtc_prepare_pll()
772 amdgpu_connector->pixelclock_for_modeset = mode->clock; in amdgpu_atombios_crtc_prepare_pll()