/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | radeon_audio.c | 249 struct radeon_encoder *radeon_encoder; in radeon_audio_enable() local 259 radeon_encoder = to_radeon_encoder(encoder); in radeon_audio_enable() 260 dig = radeon_encoder->enc_priv; in radeon_audio_enable() 362 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_audio_write_sad_regs() local 376 if (radeon_encoder->audio && radeon_encoder->audio->write_sad_regs) in radeon_audio_write_sad_regs() 377 radeon_encoder->audio->write_sad_regs(encoder, sads, sad_count); in radeon_audio_write_sad_regs() 385 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_audio_write_speaker_allocation() local 400 if (radeon_encoder->audio && radeon_encoder->audio->write_speaker_allocation) in radeon_audio_write_speaker_allocation() 401 radeon_encoder->audio->write_speaker_allocation(encoder, sadb, sad_count); in radeon_audio_write_speaker_allocation() 410 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_audio_write_latency_fields() local [all …]
|
D | radeon_encoders.c | 37 radeon_legacy_backlight_init(struct radeon_encoder *radeon_encoder, 40 radeon_atom_backlight_init(struct radeon_encoder *radeon_encoder, 48 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_encoder_clones() local 57 if (radeon_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in radeon_encoder_clones() 60 if (radeon_encoder->devices & ATOM_DEVICE_DFP2_SUPPORT) in radeon_encoder_clones() 65 struct radeon_encoder *radeon_clone = to_radeon_encoder(clone_encoder); in radeon_encoder_clones() 165 static void radeon_encoder_add_backlight(struct radeon_encoder *radeon_encoder, in radeon_encoder_add_backlight() argument 168 struct drm_device *dev = radeon_encoder->base.dev; in radeon_encoder_add_backlight() 172 if (!(radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT))) in radeon_encoder_add_backlight() 198 radeon_atom_backlight_init(radeon_encoder, connector); in radeon_encoder_add_backlight() [all …]
|
D | atombios_encoders.c | 81 atombios_get_backlight_level(struct radeon_encoder *radeon_encoder) in atombios_get_backlight_level() argument 83 struct drm_device *dev = radeon_encoder->base.dev; in atombios_get_backlight_level() 93 atombios_set_backlight_level(struct radeon_encoder *radeon_encoder, u8 level) in atombios_set_backlight_level() argument 95 struct drm_encoder *encoder = &radeon_encoder->base; in atombios_set_backlight_level() 96 struct drm_device *dev = radeon_encoder->base.dev; in atombios_set_backlight_level() 105 if ((radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) && in atombios_set_backlight_level() 106 radeon_encoder->enc_priv) { in atombios_set_backlight_level() 107 dig = radeon_encoder->enc_priv; in atombios_set_backlight_level() 111 switch (radeon_encoder->encoder_id) { in atombios_set_backlight_level() 163 struct radeon_encoder *radeon_encoder = pdata->encoder; in radeon_atom_backlight_update_status() local [all …]
|
D | radeon_legacy_encoders.c | 45 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_legacy_encoder_disable() local 50 radeon_encoder->active_device = 0; in radeon_legacy_encoder_disable() 57 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_legacy_lvds_update() local 67 if (radeon_encoder->enc_priv) { in radeon_legacy_lvds_update() 69 struct radeon_encoder_atom_dig *lvds = radeon_encoder->enc_priv; in radeon_legacy_lvds_update() 74 struct radeon_encoder_lvds *lvds = radeon_encoder->enc_priv; in radeon_legacy_lvds_update() 145 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_legacy_lvds_dpms() local 148 if (radeon_encoder->enc_priv) { in radeon_legacy_lvds_dpms() 150 struct radeon_encoder_atom_dig *lvds = radeon_encoder->enc_priv; in radeon_legacy_lvds_dpms() 153 struct radeon_encoder_lvds *lvds = radeon_encoder->enc_priv; in radeon_legacy_lvds_dpms() [all …]
|
D | r600_hdmi.c | 248 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in r600_hdmi_update_audio_infoframe() local 249 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in r600_hdmi_update_audio_infoframe() 266 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in r600_hdmi_is_audio_buffer_filled() local 267 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in r600_hdmi_is_audio_buffer_filled() 278 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in r600_hdmi_buffer_status_changed() local 279 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in r600_hdmi_buffer_status_changed() 299 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in r600_hdmi_audio_workaround() local 300 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in r600_hdmi_audio_workaround() 317 struct radeon_encoder *radeon_encoder; in r600_hdmi_audio_set_dto() local 323 radeon_encoder = to_radeon_encoder(crtc->encoder); in r600_hdmi_audio_set_dto() [all …]
|
D | dce6_afmt.c | 80 struct radeon_encoder *radeon_encoder; in dce6_audio_get_pin() local 94 radeon_encoder = to_radeon_encoder(encoder); in dce6_audio_get_pin() 95 dig = radeon_encoder->enc_priv; in dce6_audio_get_pin() 113 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in dce6_afmt_select_pin() local 114 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in dce6_afmt_select_pin() 128 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in dce6_afmt_write_latency_fields() local 129 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in dce6_afmt_write_latency_fields() 156 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in dce6_afmt_hdmi_write_speaker_allocation() local 157 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in dce6_afmt_hdmi_write_speaker_allocation() 181 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in dce6_afmt_dp_write_speaker_allocation() local [all …]
|
D | radeon_dp_mst.c | 13 static struct radeon_encoder *radeon_dp_create_fake_mst_encoder(struct radeon_connector *connector); 28 static int radeon_dp_mst_set_be_cntl(struct radeon_encoder *primary, in radeon_dp_mst_set_be_cntl() 65 static int radeon_dp_mst_set_stream_attrib(struct radeon_encoder *primary, in radeon_dp_mst_set_stream_attrib() 114 struct radeon_encoder *primary) in radeon_dp_mst_update_stream_attribs() 125 struct radeon_encoder *subenc; in radeon_dp_mst_update_stream_attribs() 164 static int radeon_dp_mst_set_vcp_size(struct radeon_encoder *mst, s64 avg_time_slots_per_mtp) in radeon_dp_mst_set_vcp_size() 263 struct radeon_encoder *radeon_encoder = radeon_connector->mst_encoder; in radeon_dp_mst_connector_destroy() local 265 drm_encoder_cleanup(&radeon_encoder->base); in radeon_dp_mst_connector_destroy() 266 kfree(radeon_encoder); in radeon_dp_mst_connector_destroy() 336 struct radeon_encoder *radeon_encoder = to_radeon_encoder(radeon_crtc->encoder); in radeon_dp_mst_prepare_pll() local [all …]
|
D | radeon_legacy_tv.c | 237 …ruct radeon_tv_mode_constants *radeon_legacy_tv_get_std_mode(struct radeon_encoder *radeon_encoder, in radeon_legacy_tv_get_std_mode() argument 240 struct drm_device *dev = radeon_encoder->base.dev; in radeon_legacy_tv_get_std_mode() 243 struct radeon_encoder_tv_dac *tv_dac = radeon_encoder->enc_priv; in radeon_legacy_tv_get_std_mode() 247 radeon_crtc = to_radeon_crtc(radeon_encoder->base.crtc); in radeon_legacy_tv_get_std_mode() 301 static void radeon_legacy_tv_write_fifo(struct radeon_encoder *radeon_encoder, in radeon_legacy_tv_write_fifo() argument 304 struct drm_device *dev = radeon_encoder->base.dev; in radeon_legacy_tv_write_fifo() 324 static uint32_t radeon_legacy_tv_read_fifo(struct radeon_encoder *radeon_encoder, uint16_t addr) 326 struct drm_device *dev = radeon_encoder->base.dev; 387 static void radeon_restore_tv_timing_tables(struct radeon_encoder *radeon_encoder) in radeon_restore_tv_timing_tables() argument 389 struct drm_device *dev = radeon_encoder->base.dev; in radeon_restore_tv_timing_tables() [all …]
|
D | radeon_connectors.c | 163 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_get_monitor_bpc() local 164 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in radeon_get_monitor_bpc() 392 struct radeon_encoder *radeon_encoder; in radeon_get_native_mode() local 397 radeon_encoder = to_radeon_encoder(encoder); in radeon_get_native_mode() 404 radeon_encoder->native_mode = *preferred_mode; in radeon_get_native_mode() 406 radeon_encoder->native_mode.clock = 0; in radeon_get_native_mode() 468 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_fp_native_mode() local 470 struct drm_display_mode *native_mode = &radeon_encoder->native_mode; in radeon_fp_native_mode() 503 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_add_common_modes() local 505 struct drm_display_mode *native_mode = &radeon_encoder->native_mode; in radeon_add_common_modes() [all …]
|
D | radeon_mode.h | 48 #define to_radeon_encoder(x) container_of(x, struct radeon_encoder, base) 276 struct radeon_encoder *bl_encoder; 287 struct radeon_encoder *encoder; 452 struct radeon_encoder *primary; 461 struct radeon_encoder { struct 570 struct radeon_encoder *mst_encoder; 895 radeon_atombios_get_lvds_info(struct radeon_encoder *encoder); 896 extern bool radeon_atombios_get_tmds_info(struct radeon_encoder *encoder, 898 extern bool radeon_legacy_get_tmds_info_from_combios(struct radeon_encoder *encoder, 900 extern bool radeon_legacy_get_tmds_info_from_table(struct radeon_encoder *encoder, [all …]
|
D | radeon_display.c | 781 struct radeon_encoder *radeon_encoder; in radeon_print_display_setup() local 821 radeon_encoder = to_radeon_encoder(encoder); in radeon_print_display_setup() 822 devices = radeon_encoder->devices & radeon_connector->devices; in radeon_print_display_setup() 825 DRM_INFO(" CRT1: %s\n", encoder_names[radeon_encoder->encoder_id]); in radeon_print_display_setup() 827 DRM_INFO(" CRT2: %s\n", encoder_names[radeon_encoder->encoder_id]); in radeon_print_display_setup() 829 DRM_INFO(" LCD1: %s\n", encoder_names[radeon_encoder->encoder_id]); in radeon_print_display_setup() 831 DRM_INFO(" DFP1: %s\n", encoder_names[radeon_encoder->encoder_id]); in radeon_print_display_setup() 833 DRM_INFO(" DFP2: %s\n", encoder_names[radeon_encoder->encoder_id]); in radeon_print_display_setup() 835 DRM_INFO(" DFP3: %s\n", encoder_names[radeon_encoder->encoder_id]); in radeon_print_display_setup() 837 DRM_INFO(" DFP4: %s\n", encoder_names[radeon_encoder->encoder_id]); in radeon_print_display_setup() [all …]
|
D | atombios_crtc.c | 90 struct radeon_encoder *radeon_encoder = in atombios_scaler_setup() local 99 if (radeon_encoder->active_device & ATOM_DEVICE_TV_SUPPORT) { in atombios_scaler_setup() 100 struct radeon_encoder_atom_dac *tv_dac = radeon_encoder->enc_priv; in atombios_scaler_setup() 564 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in atombios_adjust_pll() local 608 if ((radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT | ATOM_DEVICE_DFP_SUPPORT)) || in atombios_adjust_pll() 619 if (radeon_encoder->is_mst_encoder) { in atombios_adjust_pll() 620 struct radeon_encoder_mst *mst_enc = radeon_encoder->enc_priv; in atombios_adjust_pll() 627 if (radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) { in atombios_adjust_pll() 642 if (radeon_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DVO1) in atombios_adjust_pll() 644 if (radeon_encoder->active_device & (ATOM_DEVICE_TV_SUPPORT)) in atombios_adjust_pll() [all …]
|
D | dce3_1_afmt.c | 119 struct radeon_encoder *radeon_encoder; in dce3_2_audio_set_dto() local 129 radeon_encoder = to_radeon_encoder(crtc->encoder); in dce3_2_audio_set_dto() 130 dig = radeon_encoder->enc_priv; in dce3_2_audio_set_dto()
|
D | evergreen_hdmi.c | 404 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in evergreen_hdmi_enable() local 405 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in evergreen_hdmi_enable() 437 enable ? "En" : "Dis", dig->afmt->offset, radeon_encoder->encoder_id); in evergreen_hdmi_enable() 444 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in evergreen_dp_enable() local 445 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in evergreen_dp_enable()
|
D | radeon_combios.c | 863 radeon_encoder in radeon_combios_get_primary_dac_info() 1014 radeon_encoder in radeon_combios_get_tv_dac_info() 1173 struct radeon_encoder_lvds *radeon_combios_get_lvds_info(struct radeon_encoder in radeon_combios_get_lvds_info() 1318 bool radeon_legacy_get_tmds_info_from_table(struct radeon_encoder *encoder, in radeon_legacy_get_tmds_info_from_table() 1334 bool radeon_legacy_get_tmds_info_from_combios(struct radeon_encoder *encoder, in radeon_legacy_get_tmds_info_from_combios() 1387 bool radeon_legacy_get_ext_tmds_info_from_table(struct radeon_encoder *encoder, in radeon_legacy_get_ext_tmds_info_from_table() 1411 bool radeon_legacy_get_ext_tmds_info_from_combios(struct radeon_encoder *encoder, in radeon_legacy_get_ext_tmds_info_from_combios() 2839 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_external_tmds_setup() local 2840 struct radeon_encoder_ext_tmds *tmds = radeon_encoder->enc_priv; in radeon_external_tmds_setup() 2888 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_combios_external_tmds_setup() local [all …]
|
D | radeon_legacy_crtc.c | 593 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_set_crtc_timing() local 594 if (radeon_encoder->active_device & ATOM_DEVICE_TV_SUPPORT) { in radeon_set_crtc_timing() 787 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_set_pll() local 789 if (radeon_encoder->active_device & ATOM_DEVICE_TV_SUPPORT) { in radeon_set_pll() 798 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_set_pll() local 799 struct radeon_encoder_lvds *lvds = (struct radeon_encoder_lvds *)radeon_encoder->enc_priv; in radeon_set_pll()
|
D | atombios_dp.c | 601 struct radeon_encoder *radeon_encoder = to_radeon_encoder(dp_info->encoder); in radeon_dp_link_train_init() local 602 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in radeon_dp_link_train_init() 788 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_dp_link_train() local 796 if (!radeon_encoder->enc_priv) in radeon_dp_link_train() 798 dig = radeon_encoder->enc_priv; in radeon_dp_link_train()
|
D | radeon_atombios.c | 1331 bool radeon_atombios_get_tmds_info(struct radeon_encoder *encoder, in radeon_atombios_get_tmds_info() 1620 radeon_encoder in radeon_atombios_get_lvds_info() 1761 radeon_atombios_get_primary_dac_info(struct radeon_encoder *encoder) in radeon_atombios_get_primary_dac_info() 1947 radeon_atombios_get_tv_dac_info(struct radeon_encoder *encoder) in radeon_atombios_get_tv_dac_info() 4172 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_atombios_connected_scratch_regs() local 4185 if ((radeon_encoder->devices & ATOM_DEVICE_TV1_SUPPORT) && in radeon_atombios_connected_scratch_regs() 4198 if ((radeon_encoder->devices & ATOM_DEVICE_CV_SUPPORT) && in radeon_atombios_connected_scratch_regs() 4211 if ((radeon_encoder->devices & ATOM_DEVICE_LCD1_SUPPORT) && in radeon_atombios_connected_scratch_regs() 4225 if ((radeon_encoder->devices & ATOM_DEVICE_CRT1_SUPPORT) && in radeon_atombios_connected_scratch_regs() 4239 if ((radeon_encoder->devices & ATOM_DEVICE_CRT2_SUPPORT) && in radeon_atombios_connected_scratch_regs() [all …]
|
D | radeon_asic.h | 45 void atombios_set_backlight_level(struct radeon_encoder *radeon_encoder, u8 level); 46 u8 atombios_get_backlight_level(struct radeon_encoder *radeon_encoder); 47 void radeon_legacy_set_backlight_level(struct radeon_encoder *radeon_encoder, u8 level); 48 u8 radeon_legacy_get_backlight_level(struct radeon_encoder *radeon_encoder);
|
D | radeon_acpi.c | 387 struct radeon_encoder *enc = atif->encoder_for_bl; in radeon_atif_handler() 739 struct radeon_encoder *target = NULL; in radeon_acpi_init() 744 struct radeon_encoder *enc = to_radeon_encoder(tmp); in radeon_acpi_init()
|
D | rs600.c | 162 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in avivo_program_fmt() local 175 if (radeon_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in avivo_program_fmt() 204 switch (radeon_encoder->encoder_id) { in avivo_program_fmt()
|
D | radeon.h | 1908 void (*set_backlight_level)(struct radeon_encoder *radeon_encoder, u8 level); 1910 u8 (*get_backlight_level)(struct radeon_encoder *radeon_encoder); 2294 struct radeon_encoder *encoder_for_bl;
|
D | r600.c | 300 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in dce3_program_fmt() local 314 if (radeon_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce3_program_fmt() 318 if ((radeon_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1) || in dce3_program_fmt() 319 (radeon_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2)) in dce3_program_fmt()
|
D | evergreen.c | 1299 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in dce4_program_fmt() local 1313 if (radeon_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce4_program_fmt() 1317 if ((radeon_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1) || in dce4_program_fmt() 1318 (radeon_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2)) in dce4_program_fmt()
|
D | cik.c | 8744 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in dce8_program_fmt() local 8758 if (radeon_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce8_program_fmt() 8762 if ((radeon_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1) || in dce8_program_fmt() 8763 (radeon_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2)) in dce8_program_fmt()
|