/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_encoders.c | 43 struct amdgpu_encoder *amdgpu_encoder; in amdgpu_link_encoder_connector() local 50 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_link_encoder_connector() 51 if (amdgpu_encoder->devices & amdgpu_connector->devices) { in amdgpu_link_encoder_connector() 53 if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) { in amdgpu_link_encoder_connector() 54 amdgpu_atombios_encoder_init_backlight(amdgpu_encoder, connector); in amdgpu_link_encoder_connector() 55 adev->mode_info.bl_encoder = amdgpu_encoder; in amdgpu_link_encoder_connector() 66 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_encoder_set_active_device() local 74 amdgpu_encoder->active_device = amdgpu_encoder->devices & amdgpu_connector->devices; in amdgpu_encoder_set_active_device() 76 amdgpu_encoder->active_device, amdgpu_encoder->devices, in amdgpu_encoder_set_active_device() 87 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_get_connector_for_encoder() local [all …]
|
D | atombios_encoders.c | 72 amdgpu_atombios_encoder_get_backlight_level(struct amdgpu_encoder *amdgpu_encoder) in amdgpu_atombios_encoder_get_backlight_level() argument 74 struct drm_device *dev = amdgpu_encoder->base.dev; in amdgpu_atombios_encoder_get_backlight_level() 84 amdgpu_atombios_encoder_set_backlight_level(struct amdgpu_encoder *amdgpu_encoder, in amdgpu_atombios_encoder_set_backlight_level() argument 87 struct drm_encoder *encoder = &amdgpu_encoder->base; in amdgpu_atombios_encoder_set_backlight_level() 88 struct drm_device *dev = amdgpu_encoder->base.dev; in amdgpu_atombios_encoder_set_backlight_level() 95 if ((amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) && in amdgpu_atombios_encoder_set_backlight_level() 96 amdgpu_encoder->enc_priv) { in amdgpu_atombios_encoder_set_backlight_level() 97 dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_encoder_set_backlight_level() 101 switch (amdgpu_encoder->encoder_id) { in amdgpu_atombios_encoder_set_backlight_level() 141 struct amdgpu_encoder *amdgpu_encoder = pdata->encoder; in amdgpu_atombios_encoder_update_backlight_status() local [all …]
|
D | atombios_encoders.h | 33 amdgpu_atombios_encoder_get_backlight_level(struct amdgpu_encoder *amdgpu_encoder); 35 amdgpu_atombios_encoder_set_backlight_level(struct amdgpu_encoder *amdgpu_encoder, 37 void amdgpu_atombios_encoder_init_backlight(struct amdgpu_encoder *amdgpu_encoder, 40 amdgpu_atombios_encoder_fini_backlight(struct amdgpu_encoder *amdgpu_encoder); 74 amdgpu_atombios_encoder_get_lcd_info(struct amdgpu_encoder *encoder); 76 amdgpu_atombios_encoder_get_dig_info(struct amdgpu_encoder *amdgpu_encoder);
|
D | amdgpu_connectors.c | 141 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_get_monitor_bpc() local 142 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in amdgpu_connector_get_monitor_bpc() 362 struct amdgpu_encoder *amdgpu_encoder; in amdgpu_get_native_mode() local 367 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_get_native_mode() 374 amdgpu_encoder->native_mode = *preferred_mode; in amdgpu_get_native_mode() 376 amdgpu_encoder->native_mode.clock = 0; in amdgpu_get_native_mode() 384 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_lcd_native_mode() local 386 struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode; in amdgpu_connector_lcd_native_mode() 422 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_add_common_modes() local 424 struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode; in amdgpu_connector_add_common_modes() [all …]
|
D | dce_v6_0.c | 406 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_program_fmt() local 420 if (amdgpu_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce_v6_0_program_fmt() 1118 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_audio_select_pin() local 1119 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_select_pin() 1134 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_audio_write_latency_fields() local 1135 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_write_latency_fields() 1178 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_audio_write_speaker_allocation() local 1179 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_write_speaker_allocation() 1239 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_audio_write_sad_regs() local 1240 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_write_sad_regs() [all …]
|
D | dce_v8_0.c | 449 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_program_fmt() local 463 if (amdgpu_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce_v8_0_program_fmt() 467 if ((amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1) || in dce_v8_0_program_fmt() 468 (amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2)) in dce_v8_0_program_fmt() 1151 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_afmt_audio_select_pin() local 1152 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_afmt_audio_select_pin() 1169 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_audio_write_latency_fields() local 1170 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_audio_write_latency_fields() 1230 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_audio_write_speaker_allocation() local 1231 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_audio_write_speaker_allocation() [all …]
|
D | dce_v11_0.c | 535 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v11_0_program_fmt() local 549 if (amdgpu_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce_v11_0_program_fmt() 553 if ((amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1) || in dce_v11_0_program_fmt() 554 (amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2)) in dce_v11_0_program_fmt() 1240 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v11_0_afmt_audio_select_pin() local 1241 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_afmt_audio_select_pin() 1257 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v11_0_audio_write_latency_fields() local 1258 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_audio_write_latency_fields() 1303 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v11_0_audio_write_speaker_allocation() local 1304 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_audio_write_speaker_allocation() [all …]
|
D | dce_v10_0.c | 509 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_program_fmt() local 523 if (amdgpu_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce_v10_0_program_fmt() 527 if ((amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1) || in dce_v10_0_program_fmt() 528 (amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2)) in dce_v10_0_program_fmt() 1214 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_afmt_audio_select_pin() local 1215 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_afmt_audio_select_pin() 1231 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_audio_write_latency_fields() local 1232 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_audio_write_latency_fields() 1277 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_audio_write_speaker_allocation() local 1278 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_audio_write_speaker_allocation() [all …]
|
D | amdgpu_mode.h | 53 struct amdgpu_encoder; 59 #define to_amdgpu_encoder(x) container_of(x, struct amdgpu_encoder, base) 269 void (*backlight_set_level)(struct amdgpu_encoder *amdgpu_encoder, 272 u8 (*backlight_get_level)(struct amdgpu_encoder *amdgpu_encoder); 338 struct amdgpu_encoder *bl_encoder; 353 struct amdgpu_encoder *encoder; 441 struct amdgpu_encoder { struct 556 struct amdgpu_encoder *mst_encoder;
|
D | amdgpu_display.c | 375 struct amdgpu_encoder *amdgpu_encoder; in amdgpu_display_print_display_setup() local 417 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_display_print_display_setup() 418 devices = amdgpu_encoder->devices & amdgpu_connector->devices; in amdgpu_display_print_display_setup() 421 DRM_INFO(" CRT1: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_display_print_display_setup() 423 DRM_INFO(" CRT2: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_display_print_display_setup() 425 DRM_INFO(" LCD1: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_display_print_display_setup() 427 DRM_INFO(" DFP1: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_display_print_display_setup() 429 DRM_INFO(" DFP2: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_display_print_display_setup() 431 DRM_INFO(" DFP3: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_display_print_display_setup() 433 DRM_INFO(" DFP4: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_display_print_display_setup() [all …]
|
D | atombios_crtc.c | 312 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_atombios_crtc_adjust_pll() local 326 if ((amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT | ATOM_DEVICE_DFP_SUPPORT)) || in amdgpu_atombios_crtc_adjust_pll() 338 if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) { in amdgpu_atombios_crtc_adjust_pll() 349 if (amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DVO1) in amdgpu_atombios_crtc_adjust_pll() 351 if (amdgpu_encoder->active_device & (ATOM_DEVICE_TV_SUPPORT)) in amdgpu_atombios_crtc_adjust_pll() 353 if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) in amdgpu_atombios_crtc_adjust_pll() 392 args.v1.ucTransmitterID = amdgpu_encoder->encoder_id; in amdgpu_atombios_crtc_adjust_pll() 404 args.v3.sInput.ucTransmitterID = amdgpu_encoder->encoder_id; in amdgpu_atombios_crtc_adjust_pll() 415 } else if (amdgpu_encoder->devices & (ATOM_DEVICE_DFP_SUPPORT)) { in amdgpu_atombios_crtc_adjust_pll() 416 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_crtc_adjust_pll() [all …]
|
D | atombios_dp.c | 541 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(dp_info->encoder); in amdgpu_atombios_dp_link_train_init() local 542 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_dp_link_train_init() 725 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_atombios_dp_link_train() local 731 if (!amdgpu_encoder->enc_priv) in amdgpu_atombios_dp_link_train()
|
D | amdgpu_acpi.c | 863 struct amdgpu_encoder *enc = to_amdgpu_encoder(tmp); in amdgpu_acpi_init()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_mst_types.c | 484 struct amdgpu_encoder *amdgpu_encoder = &adev->dm.mst_encoders[i]; in dm_dp_create_fake_mst_encoders() local 485 struct drm_encoder *encoder = &amdgpu_encoder->base; in dm_dp_create_fake_mst_encoders() 491 &amdgpu_encoder->base, in dm_dp_create_fake_mst_encoders()
|
D | amdgpu_dm.h | 519 struct amdgpu_encoder mst_encoders[AMDGPU_DM_MAX_CRTC];
|
D | amdgpu_dm.c | 223 struct amdgpu_encoder *amdgpu_encoder); 225 struct amdgpu_encoder *aencoder, 4189 struct amdgpu_encoder *aencoder = NULL; in amdgpu_dm_initialize_drm_device() 6620 struct amdgpu_encoder *amdgpu_encoder; in amdgpu_dm_get_native_mode() local 6627 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_dm_get_native_mode() 6629 amdgpu_encoder->native_mode.clock = 0; in amdgpu_dm_get_native_mode() 6638 amdgpu_encoder->native_mode = *preferred_mode; in amdgpu_dm_get_native_mode() 6652 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_dm_create_common_mode() local 6654 struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode; in amdgpu_dm_create_common_mode() 6673 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_dm_connector_add_common_modes() local [all …]
|