/linux/drivers/gpu/drm/amd/display/dc/link/protocols/ |
H A D | link_dp_capability.c | 68 enum dc_link_rate link_rate; member 103 .link_rate = LINK_RATE_LOW, 183 enum dc_link_rate link_rate; in linkRateInKHzToLinkRateMultiplier() local 187 link_rate = LINK_RATE_LOW; // Rate_1 (RBR) - 1.62 Gbps/Lane in linkRateInKHzToLinkRateMultiplier() 190 link_rate = LINK_RATE_RATE_2; // Rate_2 - 2.16 Gbps/Lane in linkRateInKHzToLinkRateMultiplier() 193 link_rate = LINK_RATE_RATE_3; // Rate_3 - 2.43 Gbps/Lane in linkRateInKHzToLinkRateMultiplier() 196 link_rate = LINK_RATE_HIGH; // Rate_4 (HBR) - 2.70 Gbps/Lane in linkRateInKHzToLinkRateMultiplier() 199 link_rate = LINK_RATE_RBR2; // Rate_5 (RBR2)- 3.24 Gbps/Lane in linkRateInKHzToLinkRateMultiplier() 202 link_rate = LINK_RATE_RATE_6; // Rate_6 - 4.32 Gbps/Lane in linkRateInKHzToLinkRateMultiplier() 205 link_rate = LINK_RATE_HIGH2; // Rate_7 (HBR2)- 5.40 Gbps/Lane in linkRateInKHzToLinkRateMultiplier() [all …]
|
H A D | link_dp_training.c | 63 char *link_rate = "Unknown"; in dp_log_training_result() local 67 switch (lt_settings->link_settings.link_rate) { in dp_log_training_result() 69 link_rate = "RBR"; in dp_log_training_result() 72 link_rate = "R2"; in dp_log_training_result() 75 link_rate = "R3"; in dp_log_training_result() 78 link_rate = "HBR"; in dp_log_training_result() 81 link_rate = "RBR2"; in dp_log_training_result() 84 link_rate = "R6"; in dp_log_training_result() 87 link_rate = "HBR2"; in dp_log_training_result() 90 link_rate = "R8"; in dp_log_training_result() [all …]
|
/linux/drivers/gpu/drm/tests/ |
H A D | drm_dp_mst_helper_test.c | 72 int link_rate; member 93 .link_rate = 2000000, 98 .link_rate = 2000000, 103 .link_rate = 2000000, 108 .link_rate = 1350000, 113 .link_rate = 1350000, 118 .link_rate = 1350000, 123 .link_rate = 1000000, 128 .link_rate = 1000000, 133 .link_rate = 1000000, [all …]
|
/linux/net/atm/ |
H A D | atm_sysfs.c | 74 int link_rate; in link_rate_show() local 77 switch (adev->link_rate) { in link_rate_show() 79 link_rate = 155520000; in link_rate_show() 82 link_rate = 622080000; in link_rate_show() 85 link_rate = 25600000; in link_rate_show() 88 link_rate = adev->link_rate * 8 * 53; in link_rate_show() 90 return scnprintf(buf, PAGE_SIZE, "%d\n", link_rate); in link_rate_show() 98 static DEVICE_ATTR_RO(link_rate);
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_dp.h | 53 int link_rate, int lane_count); 108 int intel_dp_link_config_index(struct intel_dp *intel_dp, int link_rate, int lane_count); 109 void intel_dp_link_config_get(struct intel_dp *intel_dp, int idx, int *link_rate, int *lane_count); 205 bool intel_dp_link_params_valid(struct intel_dp *intel_dp, int link_rate,
|
H A D | intel_dp_link_training.c | 716 void intel_dp_link_training_set_mode(struct intel_dp *intel_dp, int link_rate, bool is_vrr) in intel_dp_link_training_set_mode() argument 721 link_config[1] = drm_dp_is_uhbr_rate(link_rate) ? in intel_dp_link_training_set_mode() 1166 int link_rate, in intel_dp_can_link_train_fallback_for_edp() argument 1175 max_rate = intel_dp_max_link_data_rate(intel_dp, link_rate, lane_count); in intel_dp_can_link_train_fallback_for_edp() 1186 int link_rate; in reduce_link_params_in_bw_order() local 1192 intel_dp_link_config_get(intel_dp, i, &link_rate, &lane_count); in reduce_link_params_in_bw_order() 1195 intel_dp->link.force_rate != link_rate) || in reduce_link_params_in_bw_order() 1206 *new_link_rate = link_rate; in reduce_link_params_in_bw_order() 1251 int link_rate; in reduce_link_params_in_rate_lane_order() local 1255 link_rate = reduce_link_rate(intel_dp, crtc_state->port_clock); in reduce_link_params_in_rate_lane_order() [all …]
|
H A D | intel_dp_link_training.h | 20 int link_rate, bool is_vrr);
|
/linux/sound/x86/ |
H A D | intel_hdmi_audio.c | 641 static int had_calculate_maud_value(u32 aud_samp_freq, u32 link_rate) in had_calculate_maud_value() argument 646 if (link_rate == DP_2_7_GHZ) { in had_calculate_maud_value() 680 } else if (link_rate == DP_1_62_GHZ) { in had_calculate_maud_value() 731 static void had_prog_cts(u32 aud_samp_freq, u32 tmds, u32 link_rate, in had_prog_cts() argument 739 cts_val = had_calculate_maud_value(aud_samp_freq, link_rate); in had_prog_cts() 1190 u32 link_rate = 0; in had_pcm_prepare() local 1216 link_rate = intelhaddata->link_rate; in had_pcm_prepare() 1218 had_prog_cts(substream->runtime->rate, disp_samp_freq, link_rate, in had_pcm_prepare() 1280 u32 link_rate = 0; in had_process_mode_change() local 1300 link_rate = intelhaddata->link_rate; in had_process_mode_change() [all …]
|
H A D | intel_hdmi_audio.h | 113 int link_rate; member
|
/linux/drivers/gpu/drm/bridge/analogix/ |
H A D | analogix_dp_core.c | 240 analogix_dp_set_link_bandwidth(dp, dp->link_train.link_rate); in analogix_dp_link_start() 254 buf[0] = dp->link_train.link_rate; in analogix_dp_link_start() 491 dp->link_train.link_rate = reg; in analogix_dp_process_equalizer_training() 493 dp->link_train.link_rate); in analogix_dp_process_equalizer_training() 559 analogix_dp_get_max_rx_bandwidth(dp, &dp->link_train.link_rate); in analogix_dp_full_link_train() 562 if ((dp->link_train.link_rate != DP_LINK_BW_1_62) && in analogix_dp_full_link_train() 563 (dp->link_train.link_rate != DP_LINK_BW_2_7) && in analogix_dp_full_link_train() 564 (dp->link_train.link_rate != DP_LINK_BW_5_4)) { in analogix_dp_full_link_train() 566 dp->link_train.link_rate); in analogix_dp_full_link_train() 567 dp->link_train.link_rate = DP_LINK_BW_1_62; in analogix_dp_full_link_train() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/link/ |
H A D | link_resource.c | 95 link->verified_link_cap.link_rate = LINK_RATE_HIGH3; in link_restore_res_map() 109 link->verified_link_cap.link_rate = LINK_RATE_HIGH3; in link_restore_res_map()
|
H A D | link_detection.c | 563 link->cur_link_settings.link_rate = in read_current_link_settings_on_detect() 573 link->cur_link_settings.link_rate = link_bw_set; in read_current_link_settings_on_detect() 1003 link->reported_link_cap.link_rate > LINK_RATE_HIGH3) in detect_link_and_local_sink() 1004 link->reported_link_cap.link_rate = LINK_RATE_HIGH3; in detect_link_and_local_sink() 1015 link->reported_link_cap.link_rate = in detect_link_and_local_sink() 1202 if (link->reported_link_cap.link_rate == LINK_RATE_UNKNOWN) in detect_link_and_local_sink() 1204 link->reported_link_cap.link_rate = get_max_edp_link_rate(link); in detect_link_and_local_sink()
|
H A D | link_validation.c | 235 link_rate_per_lane_kbps = link_settings->link_rate * LINK_RATE_REF_FREQ_IN_KHZ * BITS_PER_DP_BYTE; in dp_link_bandwidth_kbps() 247 link_rate_per_lane_kbps = link_settings->link_rate * 10000; in dp_link_bandwidth_kbps()
|
/linux/drivers/gpu/drm/amd/display/dc/dio/dcn10/ |
H A D | dcn10_link_encoder.c | 995 cntl.pixel_clock = link_settings->link_rate in dcn10_link_encoder_enable_dp_output() 1034 cntl.pixel_clock = link_settings->link_rate in dcn10_link_encoder_enable_dp_mst_output() 1119 cntl.pixel_clock = link_settings->link_rate * LINK_RATE_REF_FREQ_IN_KHZ; in dcn10_link_encoder_dp_set_lane_settings() 1130 if (link_settings->link_rate == LINK_RATE_HIGH2) { in dcn10_link_encoder_dp_set_lane_settings() 1459 max_link_cap.link_rate = LINK_RATE_HIGH2; in dcn10_link_encoder_get_max_link_cap() 1462 max_link_cap.link_rate = LINK_RATE_HIGH3; in dcn10_link_encoder_get_max_link_cap() 1465 max_link_cap.link_rate = LINK_RATE_UHBR10; in dcn10_link_encoder_get_max_link_cap() 1468 max_link_cap.link_rate = LINK_RATE_UHBR13_5; in dcn10_link_encoder_get_max_link_cap() 1471 max_link_cap.link_rate = LINK_RATE_UHBR20; in dcn10_link_encoder_get_max_link_cap()
|
/linux/drivers/gpu/drm/mediatek/ |
H A D | mtk_dp.c | 73 int link_rate; member 1234 u32 link_rate, int lane_count) in mtk_dp_phy_configure() argument 1239 .link_rate = drm_dp_bw_code_to_link_rate(link_rate) / 100, in mtk_dp_phy_configure() 1404 mtk_dp->train_info.link_rate = DP_LINK_BW_5_4; in mtk_dp_initialize_priv_data() 1424 mtk_dp->train_info.link_rate * 2700 * 8 / in mtk_dp_sdp_set_down_cnt_init() 1471 if (pix_clk_mhz > mtk_dp->train_info.link_rate * 27) in mtk_dp_sdp_set_down_cnt_init_in_hblank() 1795 u8 lane_count, link_rate, train_limit, max_link_rate; in mtk_dp_training() local 1797 link_rate = min_t(u8, mtk_dp->max_linkrate, in mtk_dp_training() 1799 max_link_rate = link_rate; in mtk_dp_training() 1813 ret = mtk_dp_train_setting(mtk_dp, link_rate, lane_count); in mtk_dp_training() [all …]
|
/linux/drivers/scsi/mpi3mr/ |
H A D | mpi3mr_transport.c | 547 static enum sas_linkrate mpi3mr_convert_phy_link_rate(u8 link_rate) in mpi3mr_convert_phy_link_rate() argument 551 switch (link_rate) { in mpi3mr_convert_phy_link_rate() 1074 u64 sas_address_parent, u16 handle, u8 phy_number, u8 link_rate, in mpi3mr_update_links() argument 1095 if (handle && (link_rate >= MPI3_SAS_NEG_LINK_RATE_1_5)) { in mpi3mr_update_links() 1107 mpi3mr_convert_phy_link_rate(link_rate); in mpi3mr_update_links() 1115 link_rate, phy_number, handle, (unsigned long long) in mpi3mr_update_links() 1133 u8 link_rate; in mpi3mr_sas_host_refresh() local 1159 link_rate = in mpi3mr_sas_host_refresh() 1172 if (attached_handle && link_rate < MPI3_SAS_NEG_LINK_RATE_1_5) in mpi3mr_sas_host_refresh() 1173 link_rate = MPI3_SAS_NEG_LINK_RATE_1_5; in mpi3mr_sas_host_refresh() [all …]
|
/linux/drivers/phy/mediatek/ |
H A D | phy-mtk-dp.c | 115 switch (opts->dp.link_rate) { in mtk_dp_phy_configure() 119 opts->dp.link_rate); in mtk_dp_phy_configure()
|
/linux/include/linux/phy/ |
H A D | phy-dp.h | 28 unsigned int link_rate; member
|
/linux/drivers/gpu/drm/rockchip/ |
H A D | cdn-dp-reg.c | 635 u32 val, link_rate, rem; in cdn_dp_config_video() local 642 link_rate = dp->max_rate / 1000; in cdn_dp_config_video() 662 do_div(symbol, dp->max_lanes * link_rate * 8); in cdn_dp_config_video() 668 mode->clock, dp->max_lanes, link_rate); in cdn_dp_config_video() 681 val = div_u64(mode->clock * (symbol + 1), 1000) + link_rate; in cdn_dp_config_video() 682 val /= (dp->max_lanes * link_rate); in cdn_dp_config_video()
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_debugfs.c | 210 link->cur_link_settings.link_rate, in dp_link_settings_read() 217 link->verified_link_cap.link_rate, in dp_link_settings_read() 224 link->reported_link_cap.link_rate, in dp_link_settings_read() 231 link->preferred_link_setting.link_rate, in dp_link_settings_read() 331 prefer_link_settings.link_rate = param[1]; in dp_link_settings_write() 465 prefer_link_settings.link_rate = param[1]; in dp_mst_link_setting() 653 ((link->preferred_link_setting.link_rate != LINK_RATE_UNKNOWN) && in dp_phy_settings_write() 661 link_lane_settings.link_settings.link_rate = in dp_phy_settings_write() 662 link->preferred_link_setting.link_rate; in dp_phy_settings_write() 668 link_lane_settings.link_settings.link_rate = in dp_phy_settings_write() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_link_encoder.c | 1140 cntl.pixel_clock = link_settings->link_rate in dce110_link_encoder_enable_dp_output() 1179 cntl.pixel_clock = link_settings->link_rate in dce110_link_encoder_enable_dp_mst_output() 1219 cntl.pixel_clock = link_settings->link_rate in dce60_link_encoder_enable_dp_output() 1258 cntl.pixel_clock = link_settings->link_rate in dce60_link_encoder_enable_dp_mst_output() 1340 cntl.pixel_clock = link_settings->link_rate * in dce110_link_encoder_dp_set_lane_settings() 1352 if (link_settings->link_rate == LINK_RATE_HIGH2) { in dce110_link_encoder_dp_set_lane_settings() 1674 max_link_cap.link_rate = LINK_RATE_HIGH2; in dce110_link_encoder_get_max_link_cap() 1677 max_link_cap.link_rate = LINK_RATE_HIGH3; in dce110_link_encoder_get_max_link_cap()
|
/linux/include/drm/display/ |
H A D | drm_dp_helper.h | 69 u8 drm_dp_link_rate_to_bw_code(int link_rate); 302 static inline bool drm_dp_is_uhbr_rate(int link_rate) in drm_dp_is_uhbr_rate() argument 304 return link_rate >= 1000000; in drm_dp_is_uhbr_rate() 825 int link_rate; member
|
/linux/drivers/gpu/drm/amd/display/dc/link/accessories/ |
H A D | link_dp_cts.c | 113 link_settings.link_rate = get_link_rate_from_test_link_rate(test_rate); in dp_test_send_link_training() 115 if (link_settings.link_rate == LINK_RATE_UNKNOWN) { in dp_test_send_link_training() 122 link->verified_link_cap.link_rate = link_settings.link_rate; in dp_test_send_link_training() 948 link->preferred_link_setting.link_rate = LINK_RATE_UNKNOWN; in dp_set_preferred_training_settings()
|
/linux/drivers/gpu/drm/bridge/cadence/ |
H A D | cdns-mhdp8546-core.c | 647 return min(mhdp->host.link_rate, mhdp->sink.link_rate); in cdns_mhdp_max_link_rate() 899 phy_cfg.dp.link_rate = mhdp->link.rate / 100; in cdns_mhdp_link_training_init() 1372 unsigned int link_rate; in cdns_mhdp_fill_host_caps() local 1380 link_rate = mhdp->phy->attrs.max_link_rate; in cdns_mhdp_fill_host_caps() 1381 if (!link_rate) in cdns_mhdp_fill_host_caps() 1382 link_rate = drm_dp_bw_code_to_link_rate(DP_LINK_BW_8_1); in cdns_mhdp_fill_host_caps() 1385 link_rate *= 100; in cdns_mhdp_fill_host_caps() 1387 mhdp->host.link_rate = link_rate; in cdns_mhdp_fill_host_caps() 1403 mhdp->sink.link_rate = mhdp->link.rate; in cdns_mhdp_fill_sink_caps() 2291 mhdp->link.rate = mhdp->host.link_rate; in cdns_mhdp_update_link_status() [all …]
|
/linux/drivers/gpu/drm/amd/display/include/ |
H A D | audio_types.h | 41 enum dc_link_rate link_rate; member
|