/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/link/protocols/ |
A D | link_dp_capability.c | 981 link->dpcd_caps.branch_dev_id = in read_dp_device_vendor_id() 1037 memset(&link->dpcd_caps.dongle_caps, 0, sizeof(link->dpcd_caps.dongle_caps)); in get_active_converter_info() 1043 link->dpcd_caps.dongle_type); in get_active_converter_info() 1091 link->dpcd_caps.dongle_caps.dongle_type = link->dpcd_caps.dongle_type; in get_active_converter_info() 1240 link->dpcd_caps.dpcd_rev.raw = in dp_overwrite_extended_receiver_cap() 1626 link->dpcd_caps.dpcd_rev.raw = in retrieve_link_cap() 1731 link->dpcd_caps.sink_dev_id = in retrieve_link_cap() 1777 memset(&link->dpcd_caps.fec_cap, '\0', sizeof(link->dpcd_caps.fec_cap)); in retrieve_link_cap() 1819 memset(&link->dpcd_caps.dsc_caps, '\0', sizeof(link->dpcd_caps.dsc_caps)); in retrieve_link_cap() 1820 memset(&link->dpcd_caps.fec_cap, '\0', sizeof(link->dpcd_caps.fec_cap)); in retrieve_link_cap() [all …]
|
A D | link_ddc.c | 212 link->dpcd_caps.branch_dev_id == DP_BRANCH_DEVICE_ID_0080E1 && in defer_delay_converter_wa() 213 (link->dpcd_caps.branch_fw_revision[0] < 0x01 || in defer_delay_converter_wa() 214 (link->dpcd_caps.branch_fw_revision[0] == 0x01 && in defer_delay_converter_wa() 215 link->dpcd_caps.branch_fw_revision[1] < 0x40)) && in defer_delay_converter_wa() 216 !memcmp(link->dpcd_caps.branch_dev_name, in defer_delay_converter_wa() 218 sizeof(link->dpcd_caps.branch_dev_name))) in defer_delay_converter_wa() 223 if (link->dpcd_caps.branch_dev_id == DP_BRANCH_DEVICE_ID_0080E1 && in defer_delay_converter_wa() 224 !memcmp(link->dpcd_caps.branch_dev_name, in defer_delay_converter_wa() 226 sizeof(link->dpcd_caps.branch_dev_name))) in defer_delay_converter_wa() 230 !memcmp(link->dpcd_caps.branch_dev_name, in defer_delay_converter_wa() [all …]
|
A D | link_dp_dpia.c | 69 link->dpcd_caps.usb4_dp_tun_info.dp_tun_cap.raw = in dpcd_get_tunneling_device_data() 71 link->dpcd_caps.usb4_dp_tun_info.dpia_info.raw = in dpcd_get_tunneling_device_data() 73 link->dpcd_caps.usb4_dp_tun_info.usb4_driver_id = in dpcd_get_tunneling_device_data() 77 link->dpcd_caps.usb4_dp_tun_info.usb4_topology_id[i] = dpcd_topology_data[i]; in dpcd_get_tunneling_device_data()
|
A D | link_edp_panel_control.c | 84 link->dpcd_caps.panel_mode_edp, in dp_set_panel_mode() 96 switch (link->dpcd_caps.branch_dev_id) { in dp_get_panel_mode() 105 link->dpcd_caps.branch_dev_name, in dp_get_panel_mode() 108 link->dpcd_caps. in dp_get_panel_mode() 119 if (strncmp(link->dpcd_caps.branch_dev_name, in dp_get_panel_mode() 122 link->dpcd_caps. in dp_get_panel_mode() 132 if (link->dpcd_caps.panel_mode_edp && in dp_get_panel_mode() 263 if (link->dpcd_caps.edp_supported_link_rates_count == 0 || in link_is_edp_ilr_optimization_required() 292 if (link->dpcd_caps.edp_supported_link_rates[link_rate_set] != link_setting.link_rate || in link_is_edp_ilr_optimization_required()
|
A D | link_dp_phy.c | 90 return (dp_parse_lttpr_repeater_count(link->dpcd_caps.lttpr_caps.phy_repeater_cnt) == in is_immediate_downstream() 150 link->dpcd_caps.fec_cap.bits.FEC_CAPABLE) { in dp_set_fec_ready() 190 link->dpcd_caps.fec_cap.bits.FEC_CAPABLE) { in dp_set_fec_enable()
|
A D | link_dp_training_fixed_vs_pe_retimer.c | 50 link->dpcd_caps.lttpr_caps.phy_repeater_cnt); in dp_fixed_vs_pe_read_lane_adjust() 99 link->dpcd_caps.lttpr_caps.phy_repeater_cnt); in dp_fixed_vs_pe_set_retimer_lane_settings() 183 repeater_cnt = dp_parse_lttpr_repeater_count(link->dpcd_caps.lttpr_caps.phy_repeater_cnt); in perform_fixed_vs_pe_nontransparent_training_sequence() 233 link->dpcd_caps.lttpr_caps.phy_repeater_cnt); in dp_perform_fixed_vs_pe_training_sequence() 302 link->dpcd_caps.max_ln_count.bits.POST_LT_ADJ_REQ_SUPPORTED; in dp_perform_fixed_vs_pe_training_sequence()
|
A D | link_dp_training_8b_10b.c | 46 link->dpcd_caps.dpcd_rev.raw >= DPCD_REV_12) { in get_cr_training_aux_rd_interval() 72 link->dpcd_caps.dpcd_rev.raw >= DPCD_REV_12) { in get_eq_training_aux_rd_interval() 314 link->dpcd_caps.lttpr_caps.aux_rd_interval[offset - 1]); in perform_8b_10b_channel_equalization_sequence() 374 repeater_cnt = dp_parse_lttpr_repeater_count(link->dpcd_caps.lttpr_caps.phy_repeater_cnt); in dp_perform_8b_10b_link_training()
|
A D | link_dp_training.c | 755 struct dpcd_caps *rx_caps = &link->dpcd_caps; in decide_eq_training_pattern() 881 link->dpcd_caps.lttpr_caps.mode = repeater_mode; in configure_lttpr_mode_non_transparent() 895 link->dpcd_caps.lttpr_caps.mode = repeater_mode; in configure_lttpr_mode_non_transparent() 899 repeater_cnt = dp_parse_lttpr_repeater_count(link->dpcd_caps.lttpr_caps.phy_repeater_cnt); in configure_lttpr_mode_non_transparent() 905 link->dpcd_caps.lttpr_caps.aux_rd_interval[--repeater_cnt] = 0; in configure_lttpr_mode_non_transparent() 913 (uint8_t *)&link->dpcd_caps.lttpr_caps.aux_rd_interval[repeater_id - 1], in configure_lttpr_mode_non_transparent() 914 sizeof(link->dpcd_caps.lttpr_caps.aux_rd_interval[repeater_id - 1])); in configure_lttpr_mode_non_transparent() 915 link->dpcd_caps.lttpr_caps.aux_rd_interval[repeater_id - 1] &= 0x7F; in configure_lttpr_mode_non_transparent() 1044 link->dpcd_caps.max_ln_count.bits.POST_LT_ADJ_REQ_SUPPORTED; in dpcd_set_link_settings() 1053 if (link->dpcd_caps.dpcd_rev.raw >= DPCD_REV_13 && in dpcd_set_link_settings() [all …]
|
A D | link_dp_training_dpia.c | 306 repeater_cnt = dp_parse_lttpr_repeater_count(link->dpcd_caps.lttpr_caps.phy_repeater_cnt); in dpia_training_cr_non_transparent() 589 link->dpcd_caps.lttpr_caps.aux_rd_interval[hop - 1]); in dpia_get_eq_aux_rd_interval() 637 repeater_cnt = dp_parse_lttpr_repeater_count(link->dpcd_caps.lttpr_caps.phy_repeater_cnt); in dpia_training_eq_non_transparent() 906 repeater_cnt = dp_parse_lttpr_repeater_count(link->dpcd_caps.lttpr_caps.phy_repeater_cnt); in dpia_training_end() 1010 repeater_cnt = dp_parse_lttpr_repeater_count(link->dpcd_caps.lttpr_caps.phy_repeater_cnt); in dc_link_dpia_perform_link_training()
|
A D | link_dp_irq_handler.c | 217 if (link->dpcd_caps.dpcd_rev.raw < DPCD_REV_14) in dc_link_dp_read_hpd_rx_irq_data()
|
A D | link_dp_training_128b_132b.c | 242 link->dpcd_caps.lttpr_caps.phy_repeater_cnt) + 1) * 20000; in decide_128b_132b_training_settings()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/link/ |
A D | link_validation.c | 56 const struct dpcd_caps *dpcd_caps) in dp_active_dongle_validate_timing() argument 58 const struct dc_dongle_caps *dongle_caps = &dpcd_caps->dongle_caps; in dp_active_dongle_validate_timing() 60 switch (dpcd_caps->dongle_type) { in dp_active_dongle_validate_timing() 72 if (dpcd_caps->dongle_type == DISPLAY_DONGLE_DP_HDMI_CONVERTER && in dp_active_dongle_validate_timing() 139 if (dpcd_caps->channel_coding_cap.bits.DP_128b_132b_SUPPORTED == 0 && in dp_active_dongle_validate_timing() 140 dpcd_caps->dsc_caps.dsc_basic_caps.fields.dsc_support.DSC_PASSTHROUGH_SUPPORT == 0 && in dp_active_dongle_validate_timing() 322 !link->dpcd_caps.dprx_feature.bits.VSC_SDP_COLORIMETRY_SUPPORTED && in dp_validate_mode_timing() 368 struct dpcd_caps *dpcd_caps = &link->dpcd_caps; in link_validate_mode_timing() local 381 if (!dp_active_dongle_validate_timing(timing, dpcd_caps)) in link_validate_mode_timing()
|
A D | link_detection.c | 602 link->dpcd_caps.dpcd_rev.raw = 0; in detect_dp() 816 if (link->dpcd_caps.is_mst_capable || in should_verify_link_capability_destructively() 856 struct dpcd_caps prev_dpcd_caps; in detect_link_and_local_sink() 889 memcpy(&prev_dpcd_caps, &link->dpcd_caps, sizeof(struct dpcd_caps)); in detect_link_and_local_sink() 936 sizeof(link->dpcd_caps.branch_dev_name)) == 0) { in detect_link_and_local_sink() 939 if (!link->dpcd_caps.set_power_state_capable_edp) in detect_link_and_local_sink() 977 (link->dpcd_caps.dongle_type != in detect_link_and_local_sink() 991 if (link->dpcd_caps.sink_count.bits.SINK_COUNT) in detect_link_and_local_sink() 993 link->dpcd_caps.sink_count.bits.SINK_COUNT; in detect_link_and_local_sink() 1049 link->dpcd_caps.dongle_type == in detect_link_and_local_sink() [all …]
|
A D | link_factory.c | 201 link->link_status.dpcd_caps = &link->dpcd_caps; in dc_link_construct_phy() 487 link->link_status.dpcd_caps = &link->dpcd_caps; in dc_link_construct_dpia()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/amdgpu_dm/ |
A D | amdgpu_dm_psr.c | 45 if (!link->dpcd_caps.alpm_caps.bits.AUX_WAKE_ALPM_CAP || in link_supports_psrsu() 46 !link->dpcd_caps.psr_info.psr_dpcd_caps.bits.Y_COORDINATE_REQUIRED) in link_supports_psrsu() 49 if (link->dpcd_caps.psr_info.psr_dpcd_caps.bits.SU_GRANULARITY_REQUIRED && in link_supports_psrsu() 50 !link->dpcd_caps.psr_info.psr2_su_y_granularity_cap) in link_supports_psrsu() 73 if (link->dpcd_caps.psr_info.psr_version == 0) { in amdgpu_dm_set_psr_caps() 89 link->dpcd_caps.psr_info.psr_version, in amdgpu_dm_set_psr_caps() 90 link->dpcd_caps.psr_info.psr_dpcd_caps.raw, in amdgpu_dm_set_psr_caps() 91 link->dpcd_caps.psr_info.psr2_su_y_granularity_cap); in amdgpu_dm_set_psr_caps()
|
A D | amdgpu_dm_helpers.c | 676 memcmp(stream->link->dpcd_caps.branch_dev_name, in write_dsc_enable_synaptics_non_virtual_dpcd_mst() 767 if (stream->sink->link->dpcd_caps.dongle_type == DISPLAY_DONGLE_NONE) { in dm_helpers_dp_write_dsc_enable() 772 } else if (stream->sink->link->dpcd_caps.dongle_type == DISPLAY_DONGLE_DP_HDMI_CONVERTER) { in dm_helpers_dp_write_dsc_enable() 1165 struct dpcd_caps *dpcd_caps = &link->dpcd_caps; in dm_get_adaptive_sync_support_type() local 1168 switch (dpcd_caps->dongle_type) { in dm_get_adaptive_sync_support_type() 1170 if (dpcd_caps->adaptive_sync_caps.dp_adap_sync_caps.bits.ADAPTIVE_SYNC_SDP_SUPPORT == true && in dm_get_adaptive_sync_support_type() 1171 dpcd_caps->allow_invalid_MSA_timing_param == true && in dm_get_adaptive_sync_support_type() 1172 dm_is_freesync_pcon_whitelist(dpcd_caps->branch_dev_id)) in dm_get_adaptive_sync_support_type()
|
A D | amdgpu_dm_mst_types.c | 207 if (link->dpcd_caps.branch_dev_id == DP_BRANCH_DEVICE_ID_90CC24 && in needs_dsc_aux_workaround() 208 (link->dpcd_caps.dpcd_rev.raw == DPCD_REV_14 || link->dpcd_caps.dpcd_rev.raw == DPCD_REV_12) && in needs_dsc_aux_workaround() 209 link->dpcd_caps.sink_count.bits.SINK_COUNT >= 2) in needs_dsc_aux_workaround() 1067 if (!(dc_link->dpcd_caps.dsc_caps.dsc_basic_caps.fields.dsc_support.DSC_SUPPORT || in is_dsc_need_re_compute() 1068 dc_link->dpcd_caps.dsc_caps.dsc_basic_caps.fields.dsc_support.DSC_PASSTHROUGH_SUPPORT)) in is_dsc_need_re_compute() 1278 &dc_link->dpcd_caps.dsc_caps.dsc_basic_caps; in is_link_to_dschub()
|
A D | amdgpu_dm_debugfs.c | 427 struct dc_lttpr_caps caps = aconnector->dc_link->dpcd_caps.lttpr_caps; in dp_lttpr_status_show() 844 seq_printf(m, "Sink support: %s", str_yes_no(link->dpcd_caps.psr_info.psr_version != 0)); in psr_capability_show() 845 if (link->dpcd_caps.psr_info.psr_version) in psr_capability_show() 846 seq_printf(m, " [0x%02x]", link->dpcd_caps.psr_info.psr_version); in psr_capability_show() 1145 struct dpcd_caps dpcd_caps; in dp_dsc_fec_support_show() local 1165 dpcd_caps = aconnector->dc_link->dpcd_caps; in dp_dsc_fec_support_show() 1177 is_fec_supported = dpcd_caps.fec_cap.raw & 0x1; in dp_dsc_fec_support_show() 1178 is_dsc_supported = dpcd_caps.dsc_caps.dsc_basic_caps.raw[0] & 0x1; in dp_dsc_fec_support_show() 2868 dpcd_rev = link->dpcd_caps.dpcd_rev.raw; in edp_ilr_show() 2940 if (param[1] >= link->dpcd_caps.edp_supported_link_rates_count) in edp_ilr_write() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/modules/power/ |
A D | power_helpers.c | 807 struct dpcd_caps *dpcd_caps = &link->dpcd_caps; in is_psr_su_specific_panel() local 809 if (dpcd_caps->edp_rev >= DP_EDP_14) { in is_psr_su_specific_panel() 810 if (dpcd_caps->psr_info.psr_version >= DP_PSR2_WITH_Y_COORD_ET_SUPPORTED) in is_psr_su_specific_panel() 817 if (dpcd_caps->sink_dev_id == DP_BRANCH_DEVICE_ID_001CF8) { in is_psr_su_specific_panel() 822 if (dpcd_caps->psr_info.psr_version < DP_PSR2_WITH_Y_COORD_IS_SUPPORTED) in is_psr_su_specific_panel() 825 ((dpcd_caps->sink_dev_id_str[1] == 0x08 && dpcd_caps->sink_dev_id_str[0] == 0x08) || in is_psr_su_specific_panel() 826 (dpcd_caps->sink_dev_id_str[1] == 0x08 && dpcd_caps->sink_dev_id_str[0] == 0x07))) in is_psr_su_specific_panel() 828 else if (dpcd_caps->psr_info.force_psrsu_cap == 0x1) in is_psr_su_specific_panel() 867 struct dpcd_caps *dpcd_caps = &link->dpcd_caps; in mod_power_calc_psr_configs() local 908 psr_config->su_y_granularity = dpcd_caps->psr_info.psr2_su_y_granularity_cap; in mod_power_calc_psr_configs() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce/ |
A D | dmub_psr.c | 394 link->dpcd_caps.sink_dev_id == DP_DEVICE_ID_38EC11 && in dmub_psr_copy_settings() 395 !memcmp(link->dpcd_caps.sink_dev_id_str, DP_SINK_DEVICE_STR_ID_1, in dmub_psr_copy_settings() 402 if (((link->dpcd_caps.fec_cap.bits.FEC_CAPABLE && in dmub_psr_copy_settings() 404 (link->dpcd_caps.dsc_caps.dsc_basic_caps.fields.dsc_support.DSC_SUPPORT && in dmub_psr_copy_settings() 407 link->dpcd_caps.sink_dev_id == DP_DEVICE_ID_38EC11 && in dmub_psr_copy_settings() 408 (!memcmp(link->dpcd_caps.sink_dev_id_str, DP_SINK_DEVICE_STR_ID_1, in dmub_psr_copy_settings() 410 !memcmp(link->dpcd_caps.sink_dev_id_str, DP_SINK_DEVICE_STR_ID_2, in dmub_psr_copy_settings() 418 if (link->dpcd_caps.sink_dev_id == DP_BRANCH_DEVICE_ID_001CF8) in dmub_psr_copy_settings()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/hdcp/ |
A D | hdcp_msg.c | 340 (link->dpcd_caps.dongle_type == DISPLAY_DONGLE_DP_VGA_CONVERTER || in get_protection_properties_by_signal() 341 link->dpcd_caps.dongle_caps.dongle_type == DISPLAY_DONGLE_DP_VGA_CONVERTER)) { in get_protection_properties_by_signal()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/ |
A D | dc_link.h | 253 struct dpcd_caps dpcd_caps; member
|
A D | dc_types.h | 954 struct dpcd_caps *dpcd_caps; member
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/link/accessories/ |
A D | link_dp_cts.c | 815 if (link->dpcd_caps.dpcd_rev.raw >= DPCD_REV_12) { in dc_link_dp_set_test_pattern() 835 } else if (link->dpcd_caps.dpcd_rev.raw >= DPCD_REV_10 || in dc_link_dp_set_test_pattern() 836 link->dpcd_caps.dpcd_rev.raw == 0) { in dc_link_dp_set_test_pattern() 899 link->dpcd_caps.dprx_feature.bits.SST_SPLIT_SDP_CAP); in dc_link_dp_set_test_pattern()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/link/hwss/ |
A D | link_hwss_dio.c | 89 link->dpcd_caps.dprx_feature.bits.SST_SPLIT_SDP_CAP); in setup_dio_stream_attribute()
|