/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_encoders.c | 41 struct amdgpu_encoder *amdgpu_encoder; in amdgpu_link_encoder_connector() local 47 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_link_encoder_connector() 48 if (amdgpu_encoder->devices & amdgpu_connector->devices) { in amdgpu_link_encoder_connector() 50 if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) { in amdgpu_link_encoder_connector() 51 amdgpu_atombios_encoder_init_backlight(amdgpu_encoder, connector); in amdgpu_link_encoder_connector() 52 adev->mode_info.bl_encoder = amdgpu_encoder; in amdgpu_link_encoder_connector() 62 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_encoder_set_active_device() local 68 amdgpu_encoder->active_device = amdgpu_encoder->devices & amdgpu_connector->devices; in amdgpu_encoder_set_active_device() 70 amdgpu_encoder->active_device, amdgpu_encoder->devices, in amdgpu_encoder_set_active_device() 80 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_get_connector_for_encoder() local [all …]
|
D | atombios_encoders.c | 67 amdgpu_atombios_encoder_get_backlight_level(struct amdgpu_encoder *amdgpu_encoder) in amdgpu_atombios_encoder_get_backlight_level() argument 69 struct drm_device *dev = amdgpu_encoder->base.dev; in amdgpu_atombios_encoder_get_backlight_level() 79 amdgpu_atombios_encoder_set_backlight_level(struct amdgpu_encoder *amdgpu_encoder, in amdgpu_atombios_encoder_set_backlight_level() argument 82 struct drm_encoder *encoder = &amdgpu_encoder->base; in amdgpu_atombios_encoder_set_backlight_level() 83 struct drm_device *dev = amdgpu_encoder->base.dev; in amdgpu_atombios_encoder_set_backlight_level() 90 if ((amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) && in amdgpu_atombios_encoder_set_backlight_level() 91 amdgpu_encoder->enc_priv) { in amdgpu_atombios_encoder_set_backlight_level() 92 dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_encoder_set_backlight_level() 96 switch (amdgpu_encoder->encoder_id) { in amdgpu_atombios_encoder_set_backlight_level() 138 struct amdgpu_encoder *amdgpu_encoder = pdata->encoder; in amdgpu_atombios_encoder_update_backlight_status() local [all …]
|
D | atombios_encoders.h | 28 amdgpu_atombios_encoder_get_backlight_level(struct amdgpu_encoder *amdgpu_encoder); 30 amdgpu_atombios_encoder_set_backlight_level(struct amdgpu_encoder *amdgpu_encoder, 32 void amdgpu_atombios_encoder_init_backlight(struct amdgpu_encoder *amdgpu_encoder, 35 amdgpu_atombios_encoder_fini_backlight(struct amdgpu_encoder *amdgpu_encoder); 69 amdgpu_atombios_encoder_get_lcd_info(struct amdgpu_encoder *encoder); 71 amdgpu_atombios_encoder_get_dig_info(struct amdgpu_encoder *amdgpu_encoder);
|
D | amdgpu_connectors.c | 139 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_get_monitor_bpc() local 140 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in amdgpu_connector_get_monitor_bpc() 377 struct amdgpu_encoder *amdgpu_encoder; in amdgpu_get_native_mode() local 382 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_get_native_mode() 389 amdgpu_encoder->native_mode = *preferred_mode; in amdgpu_get_native_mode() 391 amdgpu_encoder->native_mode.clock = 0; in amdgpu_get_native_mode() 399 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_lcd_native_mode() local 401 struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode; in amdgpu_connector_lcd_native_mode() 437 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_add_common_modes() local 439 struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode; in amdgpu_connector_add_common_modes() [all …]
|
D | amdgpu_display.c | 384 struct amdgpu_encoder *amdgpu_encoder; in amdgpu_print_display_setup() local 424 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_print_display_setup() 425 devices = amdgpu_encoder->devices & amdgpu_connector->devices; in amdgpu_print_display_setup() 428 DRM_INFO(" CRT1: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_print_display_setup() 430 DRM_INFO(" CRT2: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_print_display_setup() 432 DRM_INFO(" LCD1: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_print_display_setup() 434 DRM_INFO(" DFP1: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_print_display_setup() 436 DRM_INFO(" DFP2: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_print_display_setup() 438 DRM_INFO(" DFP3: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_print_display_setup() 440 DRM_INFO(" DFP4: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_print_display_setup() [all …]
|
D | dce_v8_0.c | 691 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_program_fmt() local 705 if (amdgpu_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce_v8_0_program_fmt() 709 if ((amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1) || in dce_v8_0_program_fmt() 710 (amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2)) in dce_v8_0_program_fmt() 1390 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_afmt_audio_select_pin() local 1391 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_afmt_audio_select_pin() 1407 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_audio_write_latency_fields() local 1408 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_audio_write_latency_fields() 1464 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_audio_write_speaker_allocation() local 1465 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_audio_write_speaker_allocation() [all …]
|
D | dce_v10_0.c | 716 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_program_fmt() local 730 if (amdgpu_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce_v10_0_program_fmt() 734 if ((amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1) || in dce_v10_0_program_fmt() 735 (amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2)) in dce_v10_0_program_fmt() 1418 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_afmt_audio_select_pin() local 1419 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_afmt_audio_select_pin() 1434 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_audio_write_latency_fields() local 1435 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_audio_write_latency_fields() 1476 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_audio_write_speaker_allocation() local 1477 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_audio_write_speaker_allocation() [all …]
|
D | dce_v11_0.c | 704 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v11_0_program_fmt() local 718 if (amdgpu_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce_v11_0_program_fmt() 722 if ((amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1) || in dce_v11_0_program_fmt() 723 (amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2)) in dce_v11_0_program_fmt() 1406 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v11_0_afmt_audio_select_pin() local 1407 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_afmt_audio_select_pin() 1422 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v11_0_audio_write_latency_fields() local 1423 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_audio_write_latency_fields() 1464 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v11_0_audio_write_speaker_allocation() local 1465 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_audio_write_speaker_allocation() [all …]
|
D | atombios_crtc.c | 311 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_atombios_crtc_adjust_pll() local 325 if ((amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT | ATOM_DEVICE_DFP_SUPPORT)) || in amdgpu_atombios_crtc_adjust_pll() 337 if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) { in amdgpu_atombios_crtc_adjust_pll() 348 if (amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DVO1) in amdgpu_atombios_crtc_adjust_pll() 350 if (amdgpu_encoder->active_device & (ATOM_DEVICE_TV_SUPPORT)) in amdgpu_atombios_crtc_adjust_pll() 352 if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) in amdgpu_atombios_crtc_adjust_pll() 391 args.v1.ucTransmitterID = amdgpu_encoder->encoder_id; in amdgpu_atombios_crtc_adjust_pll() 403 args.v3.sInput.ucTransmitterID = amdgpu_encoder->encoder_id; in amdgpu_atombios_crtc_adjust_pll() 414 } else if (amdgpu_encoder->devices & (ATOM_DEVICE_DFP_SUPPORT)) { in amdgpu_atombios_crtc_adjust_pll() 415 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_crtc_adjust_pll() [all …]
|
D | amdgpu_mode.h | 44 struct amdgpu_encoder; 50 #define to_amdgpu_encoder(x) container_of(x, struct amdgpu_encoder, base) 274 void (*backlight_set_level)(struct amdgpu_encoder *amdgpu_encoder, 277 u8 (*backlight_get_level)(struct amdgpu_encoder *amdgpu_encoder); 334 struct amdgpu_encoder *bl_encoder; 348 struct amdgpu_encoder *encoder; 432 struct amdgpu_encoder { struct
|
D | atombios_dp.c | 533 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(dp_info->encoder); in amdgpu_atombios_dp_link_train_init() local 534 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_dp_link_train_init() 717 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_atombios_dp_link_train() local 724 if (!amdgpu_encoder->enc_priv) in amdgpu_atombios_dp_link_train() 726 dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_dp_link_train()
|
D | amdgpu_acpi.c | 376 struct amdgpu_encoder *enc = atif->encoder_for_bl; in amdgpu_atif_handler() 719 struct amdgpu_encoder *enc = to_amdgpu_encoder(tmp); in amdgpu_acpi_init()
|
D | amdgpu.h | 1919 struct amdgpu_encoder *encoder_for_bl;
|