Home
last modified time | relevance | path

Searched refs:amdgpu_encoder (Results 1 – 15 of 15) sorted by relevance

/drivers/gpu/drm/amd/amdgpu/
Damdgpu_encoders.c41 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 …]
Datombios_encoders.c67 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 …]
Datombios_encoders.h28 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);
Damdgpu_connectors.c139 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()
431 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_add_common_modes() local
433 struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode; in amdgpu_connector_add_common_modes()
[all …]
Damdgpu_display.c358 struct amdgpu_encoder *amdgpu_encoder; in amdgpu_print_display_setup() local
398 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_print_display_setup()
399 devices = amdgpu_encoder->devices & amdgpu_connector->devices; in amdgpu_print_display_setup()
402 DRM_INFO(" CRT1: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_print_display_setup()
404 DRM_INFO(" CRT2: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_print_display_setup()
406 DRM_INFO(" LCD1: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_print_display_setup()
408 DRM_INFO(" DFP1: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_print_display_setup()
410 DRM_INFO(" DFP2: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_print_display_setup()
412 DRM_INFO(" DFP3: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_print_display_setup()
414 DRM_INFO(" DFP4: %s\n", encoder_names[amdgpu_encoder->encoder_id]); in amdgpu_print_display_setup()
[all …]
Ddce_v8_0.c689 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_program_fmt() local
703 if (amdgpu_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce_v8_0_program_fmt()
707 if ((amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1) || in dce_v8_0_program_fmt()
708 (amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2)) in dce_v8_0_program_fmt()
1391 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_afmt_audio_select_pin() local
1392 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_afmt_audio_select_pin()
1408 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_audio_write_latency_fields() local
1409 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_audio_write_latency_fields()
1465 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_audio_write_speaker_allocation() local
1466 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_audio_write_speaker_allocation()
[all …]
Ddce_v11_0.c730 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v11_0_program_fmt() local
744 if (amdgpu_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce_v11_0_program_fmt()
748 if ((amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1) || in dce_v11_0_program_fmt()
749 (amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2)) in dce_v11_0_program_fmt()
1435 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v11_0_afmt_audio_select_pin() local
1436 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_afmt_audio_select_pin()
1451 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v11_0_audio_write_latency_fields() local
1452 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_audio_write_latency_fields()
1493 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v11_0_audio_write_speaker_allocation() local
1494 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_audio_write_speaker_allocation()
[all …]
Ddce_virtual.c583 struct amdgpu_encoder *amdgpu_encoder; in dce_virtual_encoder_add() local
587 amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_virtual_encoder_add()
588 if (amdgpu_encoder->encoder_enum == encoder_enum) { in dce_virtual_encoder_add()
589 amdgpu_encoder->devices |= supported_device; in dce_virtual_encoder_add()
596 amdgpu_encoder = kzalloc(sizeof(struct amdgpu_encoder), GFP_KERNEL); in dce_virtual_encoder_add()
597 if (!amdgpu_encoder) in dce_virtual_encoder_add()
600 encoder = &amdgpu_encoder->base; in dce_virtual_encoder_add()
602 amdgpu_encoder->enc_priv = NULL; in dce_virtual_encoder_add()
603 amdgpu_encoder->encoder_enum = encoder_enum; in dce_virtual_encoder_add()
604 amdgpu_encoder->encoder_id = (encoder_enum & OBJECT_ID_MASK) >> OBJECT_ID_SHIFT; in dce_virtual_encoder_add()
[all …]
Ddce_v10_0.c763 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_program_fmt() local
777 if (amdgpu_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce_v10_0_program_fmt()
781 if ((amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1) || in dce_v10_0_program_fmt()
782 (amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2)) in dce_v10_0_program_fmt()
1468 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_afmt_audio_select_pin() local
1469 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_afmt_audio_select_pin()
1484 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_audio_write_latency_fields() local
1485 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_audio_write_latency_fields()
1526 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_audio_write_speaker_allocation() local
1527 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_audio_write_speaker_allocation()
[all …]
Ddce_v6_0.c625 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_program_fmt() local
639 if (amdgpu_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce_v6_0_program_fmt()
1427 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_afmt_enable() local
1428 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_afmt_enable()
1447 enable ? "En" : "Dis", dig->afmt->offset, amdgpu_encoder->encoder_id); in dce_v6_0_afmt_enable()
1815 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_pick_dig_encoder() local
1816 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_pick_dig_encoder()
1818 switch (amdgpu_encoder->encoder_id) { in dce_v6_0_pick_dig_encoder()
1828 DRM_ERROR("invalid encoder_id: 0x%x\n", amdgpu_encoder->encoder_id); in dce_v6_0_pick_dig_encoder()
2850 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_encoder_mode_set() local
[all …]
Datombios_crtc.c311 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 …]
Damdgpu_mode.h47 struct amdgpu_encoder;
53 #define to_amdgpu_encoder(x) container_of(x, struct amdgpu_encoder, base)
277 void (*backlight_set_level)(struct amdgpu_encoder *amdgpu_encoder,
280 u8 (*backlight_get_level)(struct amdgpu_encoder *amdgpu_encoder);
337 struct amdgpu_encoder *bl_encoder;
353 struct amdgpu_encoder *encoder;
436 struct amdgpu_encoder { struct
Datombios_dp.c531 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(dp_info->encoder); in amdgpu_atombios_dp_link_train_init() local
532 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_dp_link_train_init()
715 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_atombios_dp_link_train() local
722 if (!amdgpu_encoder->enc_priv) in amdgpu_atombios_dp_link_train()
724 dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_dp_link_train()
Damdgpu_acpi.c321 struct amdgpu_encoder *enc = atif->encoder_for_bl; in amdgpu_atif_handler()
674 struct amdgpu_encoder *enc = to_amdgpu_encoder(tmp); in amdgpu_acpi_init()
Damdgpu.h1914 struct amdgpu_encoder *encoder_for_bl;