/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_encoders.c | 42 struct amdgpu_encoder *amdgpu_encoder; in amdgpu_link_encoder_connector() local 49 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_link_encoder_connector() 50 if (amdgpu_encoder->devices & amdgpu_connector->devices) { in amdgpu_link_encoder_connector() 52 if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) { in amdgpu_link_encoder_connector() 53 amdgpu_atombios_encoder_init_backlight(amdgpu_encoder, connector); in amdgpu_link_encoder_connector() 54 adev->mode_info.bl_encoder = amdgpu_encoder; in amdgpu_link_encoder_connector() 65 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 | 142 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_get_monitor_bpc() local 143 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in amdgpu_connector_get_monitor_bpc() 337 struct amdgpu_encoder *amdgpu_encoder; in amdgpu_get_native_mode() local 342 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_get_native_mode() 349 amdgpu_encoder->native_mode = *preferred_mode; in amdgpu_get_native_mode() 351 amdgpu_encoder->native_mode.clock = 0; in amdgpu_get_native_mode() 359 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_lcd_native_mode() local 361 struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode; in amdgpu_connector_lcd_native_mode() 397 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_add_common_modes() local 399 struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode; in amdgpu_connector_add_common_modes() [all …]
|
D | dce_v6_0.c | 425 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_program_fmt() local 439 if (amdgpu_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce_v6_0_program_fmt() 1137 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_audio_select_pin() local 1138 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_select_pin() 1153 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_audio_write_latency_fields() local 1154 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_write_latency_fields() 1197 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_audio_write_speaker_allocation() local 1198 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_write_speaker_allocation() 1258 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_audio_write_sad_regs() local 1259 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_write_sad_regs() [all …]
|
D | dce_v8_0.c | 466 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_program_fmt() local 480 if (amdgpu_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce_v8_0_program_fmt() 484 if ((amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1) || in dce_v8_0_program_fmt() 485 (amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2)) in dce_v8_0_program_fmt() 1168 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_afmt_audio_select_pin() local 1169 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_afmt_audio_select_pin() 1186 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_audio_write_latency_fields() local 1187 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_audio_write_latency_fields() 1247 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_audio_write_speaker_allocation() local 1248 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_audio_write_speaker_allocation() [all …]
|
D | dce_v11_0.c | 540 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v11_0_program_fmt() local 554 if (amdgpu_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce_v11_0_program_fmt() 558 if ((amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1) || in dce_v11_0_program_fmt() 559 (amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2)) in dce_v11_0_program_fmt() 1245 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v11_0_afmt_audio_select_pin() local 1246 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_afmt_audio_select_pin() 1262 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v11_0_audio_write_latency_fields() local 1263 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_audio_write_latency_fields() 1308 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v11_0_audio_write_speaker_allocation() local 1309 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_audio_write_speaker_allocation() [all …]
|
D | dce_v10_0.c | 508 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_program_fmt() local 522 if (amdgpu_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce_v10_0_program_fmt() 526 if ((amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1) || in dce_v10_0_program_fmt() 527 (amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2)) in dce_v10_0_program_fmt() 1213 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_afmt_audio_select_pin() local 1214 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_afmt_audio_select_pin() 1230 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_audio_write_latency_fields() local 1231 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_audio_write_latency_fields() 1276 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_audio_write_speaker_allocation() local 1277 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_audio_write_speaker_allocation() [all …]
|
D | amdgpu_mode.h | 50 struct amdgpu_encoder; 58 #define to_amdgpu_encoder(x) container_of(x, struct amdgpu_encoder, base) 268 void (*backlight_set_level)(struct amdgpu_encoder *amdgpu_encoder, 271 u8 (*backlight_get_level)(struct amdgpu_encoder *amdgpu_encoder); 335 struct amdgpu_encoder *bl_encoder; 441 struct amdgpu_encoder *encoder; 533 struct amdgpu_encoder { struct 649 struct amdgpu_encoder *mst_encoder;
|
D | amdgpu_display.c | 413 struct amdgpu_encoder *amdgpu_encoder; in amdgpu_display_print_display_setup() local 455 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_display_print_display_setup() 456 devices = amdgpu_encoder->devices & amdgpu_connector->devices; in amdgpu_display_print_display_setup() 459 DRM_INFO(" CRT1: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_display_print_display_setup() 461 DRM_INFO(" CRT2: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_display_print_display_setup() 463 DRM_INFO(" LCD1: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_display_print_display_setup() 465 DRM_INFO(" DFP1: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_display_print_display_setup() 467 DRM_INFO(" DFP2: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_display_print_display_setup() 469 DRM_INFO(" DFP3: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_display_print_display_setup() 471 DRM_INFO(" DFP4: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_display_print_display_setup() [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 | 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 | 1255 struct amdgpu_encoder *enc = to_amdgpu_encoder(tmp); in amdgpu_acpi_init()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm.h | 562 struct amdgpu_encoder mst_encoders[AMDGPU_DM_MAX_CRTC];
|
D | amdgpu_dm_mst_types.c | 549 struct amdgpu_encoder *amdgpu_encoder = &adev->dm.mst_encoders[i]; in dm_dp_create_fake_mst_encoders() local 550 struct drm_encoder *encoder = &amdgpu_encoder->base; in dm_dp_create_fake_mst_encoders() 556 &amdgpu_encoder->base, in dm_dp_create_fake_mst_encoders()
|
D | amdgpu_dm.c | 231 struct amdgpu_encoder *amdgpu_encoder); 233 struct amdgpu_encoder *aencoder, 4829 struct amdgpu_encoder *aencoder = NULL; in amdgpu_dm_initialize_drm_device() 7753 struct amdgpu_encoder *amdgpu_encoder; in amdgpu_dm_get_native_mode() local 7760 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_dm_get_native_mode() 7762 amdgpu_encoder->native_mode.clock = 0; in amdgpu_dm_get_native_mode() 7771 amdgpu_encoder->native_mode = *preferred_mode; in amdgpu_dm_get_native_mode() 7785 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_dm_create_common_mode() local 7787 struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode; in amdgpu_dm_create_common_mode() 7806 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_dm_connector_add_common_modes() local [all …]
|