Home
last modified time | relevance | path

Searched refs:link_rate (Results 1 – 25 of 102) sorted by relevance

12345

/linux-6.6.21/drivers/gpu/drm/amd/display/dc/link/protocols/
Dlink_dp_capability.c67 enum dc_link_rate link_rate; member
102 .link_rate = LINK_RATE_LOW,
182 enum dc_link_rate link_rate; in linkRateInKHzToLinkRateMultiplier() local
186 link_rate = LINK_RATE_LOW; // Rate_1 (RBR) - 1.62 Gbps/Lane in linkRateInKHzToLinkRateMultiplier()
189 link_rate = LINK_RATE_RATE_2; // Rate_2 - 2.16 Gbps/Lane in linkRateInKHzToLinkRateMultiplier()
192 link_rate = LINK_RATE_RATE_3; // Rate_3 - 2.43 Gbps/Lane in linkRateInKHzToLinkRateMultiplier()
195 link_rate = LINK_RATE_HIGH; // Rate_4 (HBR) - 2.70 Gbps/Lane in linkRateInKHzToLinkRateMultiplier()
198 link_rate = LINK_RATE_RBR2; // Rate_5 (RBR2)- 3.24 Gbps/Lane in linkRateInKHzToLinkRateMultiplier()
201 link_rate = LINK_RATE_RATE_6; // Rate_6 - 4.32 Gbps/Lane in linkRateInKHzToLinkRateMultiplier()
204 link_rate = LINK_RATE_HIGH2; // Rate_7 (HBR2)- 5.40 Gbps/Lane in linkRateInKHzToLinkRateMultiplier()
[all …]
Dlink_dp_training.c63 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 …]
Dlink_edp_panel_control.c302 enum dc_link_rate link_rate = link->reported_link_cap.link_rate; in get_max_link_rate_from_ilr_table() local
305 if (link_rate < link->dpcd_caps.edp_supported_link_rates[i]) in get_max_link_rate_from_ilr_table()
306 link_rate = link->dpcd_caps.edp_supported_link_rates[i]; in get_max_link_rate_from_ilr_table()
309 return link_rate; in get_max_link_rate_from_ilr_table()
351 if (link->dpcd_caps.edp_supported_link_rates[link_rate_set] != link_setting.link_rate || in edp_is_ilr_optimization_required()
Dlink_dp_irq_handler.c264 pipes[i]->link_config.dp_link_settings.link_rate = in dp_handle_link_loss()
265 link->verified_link_cap.link_rate; in dp_handle_link_loss()
/linux-6.6.21/net/atm/
Datm_sysfs.c74 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-6.6.21/drivers/phy/qualcomm/
Dphy-qcom-edp.c253 if (dp_opts->link_rate <= 2700) { in qcom_edp_set_voltages()
297 switch (dp_opts->link_rate) { in qcom_edp_configure_ssc()
335 switch (dp_opts->link_rate) { in qcom_edp_configure_pll()
416 switch (dp_opts->link_rate) { in qcom_edp_set_vco_div()
577 clk_set_rate(edp->dp_link_hw.clk, edp->dp_opts.link_rate * 100000); in qcom_edp_phy_power_on()
680 switch (dp_opts->link_rate) { in qcom_edp_dp_pixel_clk_recalc_rate()
720 switch (dp_opts->link_rate) { in qcom_edp_dp_link_clk_recalc_rate()
725 return dp_opts->link_rate * 100000; in qcom_edp_dp_link_clk_recalc_rate()
/linux-6.6.21/sound/x86/
Dintel_hdmi_audio.c640 static int had_calculate_maud_value(u32 aud_samp_freq, u32 link_rate) in had_calculate_maud_value() argument
645 if (link_rate == DP_2_7_GHZ) { in had_calculate_maud_value()
679 } else if (link_rate == DP_1_62_GHZ) { in had_calculate_maud_value()
730 static void had_prog_cts(u32 aud_samp_freq, u32 tmds, u32 link_rate, in had_prog_cts() argument
738 cts_val = had_calculate_maud_value(aud_samp_freq, link_rate); in had_prog_cts()
1189 u32 link_rate = 0; in had_pcm_prepare() local
1215 link_rate = intelhaddata->link_rate; in had_pcm_prepare()
1217 had_prog_cts(substream->runtime->rate, disp_samp_freq, link_rate, in had_pcm_prepare()
1279 u32 link_rate = 0; in had_process_mode_change() local
1299 link_rate = intelhaddata->link_rate; in had_process_mode_change()
[all …]
Dintel_hdmi_audio.h113 int link_rate; member
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/link/
Dlink_resource.c95 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()
Dlink_detection.c556 link->cur_link_settings.link_rate = in read_current_link_settings_on_detect()
566 link->cur_link_settings.link_rate = link_bw_set; in read_current_link_settings_on_detect()
989 link->reported_link_cap.link_rate > LINK_RATE_HIGH3) in detect_link_and_local_sink()
990 link->reported_link_cap.link_rate = LINK_RATE_HIGH3; in detect_link_and_local_sink()
1171 if (link->reported_link_cap.link_rate == LINK_RATE_UNKNOWN) in detect_link_and_local_sink()
1174 link->reported_link_cap.link_rate = get_max_link_rate_from_ilr_table(link); in detect_link_and_local_sink()
Dlink_validation.c237 link_rate_per_lane_kbps = link_settings->link_rate * LINK_RATE_REF_FREQ_IN_KHZ * BITS_PER_DP_BYTE; in dp_link_bandwidth_kbps()
249 link_rate_per_lane_kbps = link_settings->link_rate * 10000; in dp_link_bandwidth_kbps()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_link_encoder.c995 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()
1118 cntl.pixel_clock = link_settings->link_rate * LINK_RATE_REF_FREQ_IN_KHZ; in dcn10_link_encoder_dp_set_lane_settings()
1129 if (link_settings->link_rate == LINK_RATE_HIGH2) { in dcn10_link_encoder_dp_set_lane_settings()
1454 max_link_cap.link_rate = LINK_RATE_HIGH2; in dcn10_link_encoder_get_max_link_cap()
1457 max_link_cap.link_rate = LINK_RATE_HIGH3; in dcn10_link_encoder_get_max_link_cap()
1460 max_link_cap.link_rate = LINK_RATE_UHBR10; in dcn10_link_encoder_get_max_link_cap()
1463 max_link_cap.link_rate = LINK_RATE_UHBR13_5; in dcn10_link_encoder_get_max_link_cap()
1466 max_link_cap.link_rate = LINK_RATE_UHBR20; in dcn10_link_encoder_get_max_link_cap()
/linux-6.6.21/drivers/gpu/drm/bridge/analogix/
Danalogix_dp_core.c273 analogix_dp_set_link_bandwidth(dp, dp->link_train.link_rate); in analogix_dp_link_start()
277 buf[0] = dp->link_train.link_rate; in analogix_dp_link_start()
578 dp->link_train.link_rate = reg; in analogix_dp_process_equalizer_training()
580 dp->link_train.link_rate); in analogix_dp_process_equalizer_training()
654 analogix_dp_get_max_rx_bandwidth(dp, &dp->link_train.link_rate); in analogix_dp_full_link_train()
657 if ((dp->link_train.link_rate != DP_LINK_BW_1_62) && in analogix_dp_full_link_train()
658 (dp->link_train.link_rate != DP_LINK_BW_2_7) && in analogix_dp_full_link_train()
659 (dp->link_train.link_rate != DP_LINK_BW_5_4)) { in analogix_dp_full_link_train()
661 dp->link_train.link_rate); in analogix_dp_full_link_train()
662 dp->link_train.link_rate = DP_LINK_BW_1_62; in analogix_dp_full_link_train()
[all …]
/linux-6.6.21/drivers/gpu/drm/mediatek/
Dmtk_dp.c73 int link_rate; member
1149 u32 link_rate, int lane_count) in mtk_dp_phy_configure() argument
1154 .link_rate = drm_dp_bw_code_to_link_rate(link_rate) / 100, in mtk_dp_phy_configure()
1319 mtk_dp->train_info.link_rate = DP_LINK_BW_5_4; in mtk_dp_initialize_priv_data()
1339 mtk_dp->train_info.link_rate * 2700 * 8 / in mtk_dp_sdp_set_down_cnt_init()
1386 if (pix_clk_mhz > mtk_dp->train_info.link_rate * 27) in mtk_dp_sdp_set_down_cnt_init_in_hblank()
1697 u8 lane_count, link_rate, train_limit, max_link_rate; in mtk_dp_training() local
1699 link_rate = min_t(u8, mtk_dp->max_linkrate, in mtk_dp_training()
1701 max_link_rate = link_rate; in mtk_dp_training()
1715 ret = mtk_dp_train_setting(mtk_dp, link_rate, lane_count); in mtk_dp_training()
[all …]
/linux-6.6.21/drivers/scsi/mpi3mr/
Dmpi3mr_transport.c544 static enum sas_linkrate mpi3mr_convert_phy_link_rate(u8 link_rate) in mpi3mr_convert_phy_link_rate() argument
548 switch (link_rate) { in mpi3mr_convert_phy_link_rate()
1053 u64 sas_address_parent, u16 handle, u8 phy_number, u8 link_rate, in mpi3mr_update_links() argument
1074 if (handle && (link_rate >= MPI3_SAS_NEG_LINK_RATE_1_5)) { in mpi3mr_update_links()
1086 mpi3mr_convert_phy_link_rate(link_rate); in mpi3mr_update_links()
1094 link_rate, phy_number, handle, (unsigned long long) in mpi3mr_update_links()
1112 u8 link_rate; in mpi3mr_sas_host_refresh() local
1138 link_rate = in mpi3mr_sas_host_refresh()
1151 if (attached_handle && link_rate < MPI3_SAS_NEG_LINK_RATE_1_5) in mpi3mr_sas_host_refresh()
1152 link_rate = MPI3_SAS_NEG_LINK_RATE_1_5; in mpi3mr_sas_host_refresh()
[all …]
/linux-6.6.21/include/linux/phy/
Dphy-dp.h25 unsigned int link_rate; member
/linux-6.6.21/drivers/phy/mediatek/
Dphy-mtk-dp.c115 switch (opts->dp.link_rate) { in mtk_dp_phy_configure()
119 opts->dp.link_rate); in mtk_dp_phy_configure()
/linux-6.6.21/drivers/gpu/drm/i915/display/
Dintel_dp.h42 int link_rate, int lane_count);
44 int link_rate, u8 lane_count);
/linux-6.6.21/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_debugfs.c208 link->cur_link_settings.link_rate, in dp_link_settings_read()
215 link->verified_link_cap.link_rate, in dp_link_settings_read()
222 link->reported_link_cap.link_rate, in dp_link_settings_read()
229 link->preferred_link_setting.link_rate, in dp_link_settings_read()
329 prefer_link_settings.link_rate = param[1]; in dp_link_settings_write()
463 prefer_link_settings.link_rate = param[1]; in dp_mst_link_setting()
651 ((link->preferred_link_setting.link_rate != LINK_RATE_UNKNOWN) && in dp_phy_settings_write()
659 link_lane_settings.link_settings.link_rate = in dp_phy_settings_write()
660 link->preferred_link_setting.link_rate; in dp_phy_settings_write()
666 link_lane_settings.link_settings.link_rate = in dp_phy_settings_write()
[all …]
/linux-6.6.21/drivers/gpu/drm/rockchip/
Dcdn-dp-reg.c635 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-6.6.21/drivers/gpu/drm/amd/display/dc/dce/
Ddce_link_encoder.c1140 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()
1671 max_link_cap.link_rate = LINK_RATE_HIGH2; in dce110_link_encoder_get_max_link_cap()
1674 max_link_cap.link_rate = LINK_RATE_HIGH3; in dce110_link_encoder_get_max_link_cap()
/linux-6.6.21/drivers/gpu/drm/bridge/cadence/
Dcdns-mhdp8546-core.c647 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-6.6.21/drivers/scsi/pm8001/
Dpm8001_init.c51 static ulong link_rate = LINKRATE_15 | LINKRATE_30 | LINKRATE_60 | LINKRATE_120; variable
52 module_param(link_rate, ulong, 0644);
53 MODULE_PARM_DESC(link_rate, "Enable link rate.\n"
530 if (link_rate >= 1 && link_rate <= 15) in pm8001_pci_alloc()
531 pm8001_ha->link_rate = (link_rate << 8); in pm8001_pci_alloc()
533 pm8001_ha->link_rate = LINKRATE_15 | LINKRATE_30 | in pm8001_pci_alloc()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/
Ddce110_clk_mgr.c157 cfg->link_settings.link_rate = in dce110_fill_display_configs()
158 stream->link->cur_link_settings.link_rate; in dce110_fill_display_configs()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn21/
Ddcn21_link_encoder.c183 switch (link_settings->link_rate) { in update_cfg_data()
198 __func__, link_settings->link_rate); in update_cfg_data()

12345