Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/net/atm/
Datm_sysfs.c74 int link_rate; in show_link_rate() local
77 switch (adev->link_rate) { in show_link_rate()
79 link_rate = 155520000; in show_link_rate()
82 link_rate = 622080000; in show_link_rate()
85 link_rate = 25600000; in show_link_rate()
88 link_rate = adev->link_rate * 8 * 53; in show_link_rate()
90 return scnprintf(buf, PAGE_SIZE, "%d\n", link_rate); in show_link_rate()
98 static DEVICE_ATTR(link_rate, 0444, show_link_rate, NULL);
Dresources.c44 dev->link_rate = ATM_OC3_PCR; in __alloc_atm_dev()
307 if (copy_to_user(buf, &dev->link_rate, size)) { in atm_dev_ioctl()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/core/
Ddc_link_dp.c190 rate = (uint8_t) (lt_settings->link_settings.link_rate); in dpcd_set_link_settings()
198 lt_settings->link_settings.link_rate, in dpcd_set_link_settings()
549 max_lt_setting->link_settings.link_rate = in find_max_drive_settings()
550 link_training_setting->link_settings.link_rate; in find_max_drive_settings()
653 request_settings.link_settings.link_rate = in get_lane_status_and_drive_settings()
654 link_training_setting->link_settings.link_rate; in get_lane_status_and_drive_settings()
1207 if (link->preferred_link_setting.link_rate != LINK_RATE_UNKNOWN) in initialize_training_settings()
1208 lt_settings->link_settings.link_rate = link->preferred_link_setting.link_rate; in initialize_training_settings()
1210 lt_settings->link_settings.link_rate = link_setting->link_rate; in initialize_training_settings()
1390 char *link_rate = "Unknown"; in print_status_message() local
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
Dintel_dp_link_training.c163 intel_dp_compute_rate(intel_dp, intel_dp->link_rate, in intel_dp_link_training_clock_recovery()
283 } else if (intel_dp->link_rate == 810000) { in intel_dp_training_pattern()
300 } else if (intel_dp->link_rate >= 540000) { in intel_dp_training_pattern()
404 intel_dp->link_rate, intel_dp->lane_count); in intel_dp_start_link_train()
412 intel_dp->link_rate, intel_dp->lane_count); in intel_dp_start_link_train()
419 intel_dp->link_rate, in intel_dp_start_link_train()
Dintel_dp.h47 int link_rate, u8 lane_count,
50 int link_rate, u8 lane_count);
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/edp/
Dedp_ctrl.c98 u8 link_rate; member
219 (unsigned long)ctrl->link_rate * 27000000); in edp_clk_enable()
221 (unsigned long)ctrl->link_rate * 27000000); in edp_clk_enable()
415 ctrl->link_rate = ctrl->dpcd[DP_MAX_LINK_RATE]; in edp_fill_link_cfg()
421 lrate *= ctrl->link_rate; in edp_fill_link_cfg()
431 DBG("rate=%d lane=%d", ctrl->link_rate, ctrl->lane_cnt); in edp_fill_link_cfg()
701 rate = ctrl->link_rate; in edp_link_rate_down_shift()
730 ctrl->link_rate = rate; in edp_link_rate_down_shift()
762 values[1] = ctrl->link_rate; in edp_do_link_train()
849 if (ctrl->link_rate == DP_LINK_BW_1_62) { in edp_sw_mvid_nvid()
[all …]
/kernel/linux/linux-5.10/sound/x86/
Dintel_hdmi_audio.c638 static int had_calculate_maud_value(u32 aud_samp_freq, u32 link_rate) in had_calculate_maud_value() argument
643 if (link_rate == DP_2_7_GHZ) { in had_calculate_maud_value()
677 } else if (link_rate == DP_1_62_GHZ) { in had_calculate_maud_value()
728 static void had_prog_cts(u32 aud_samp_freq, u32 tmds, u32 link_rate, in had_prog_cts() argument
736 cts_val = had_calculate_maud_value(aud_samp_freq, link_rate); in had_prog_cts()
1198 u32 link_rate = 0; in had_pcm_prepare() local
1226 link_rate = intelhaddata->link_rate; in had_pcm_prepare()
1228 had_prog_cts(substream->runtime->rate, disp_samp_freq, link_rate, in had_pcm_prepare()
1303 u32 link_rate = 0; in had_process_mode_change() local
1323 link_rate = intelhaddata->link_rate; in had_process_mode_change()
[all …]
Dintel_hdmi_audio.h113 int link_rate; member
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_debugfs.c203 link->cur_link_settings.link_rate, in dp_link_settings_read()
210 link->verified_link_cap.link_rate, in dp_link_settings_read()
217 link->reported_link_cap.link_rate, in dp_link_settings_read()
224 link->preferred_link_setting.link_rate, in dp_link_settings_read()
315 prefer_link_settings.link_rate = param[1]; in dp_link_settings_write()
451 ((link->preferred_link_setting.link_rate != LINK_RATE_UNKNOWN) && in dp_phy_settings_write()
459 link_lane_settings.link_settings.link_rate = in dp_phy_settings_write()
460 link->preferred_link_setting.link_rate; in dp_phy_settings_write()
466 link_lane_settings.link_settings.link_rate = in dp_phy_settings_write()
467 link->cur_link_settings.link_rate; in dp_phy_settings_write()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/analogix/
Danalogix_dp_core.c272 analogix_dp_set_link_bandwidth(dp, dp->link_train.link_rate); in analogix_dp_link_start()
276 buf[0] = dp->link_train.link_rate; in analogix_dp_link_start()
577 dp->link_train.link_rate = reg; in analogix_dp_process_equalizer_training()
579 dp->link_train.link_rate); in analogix_dp_process_equalizer_training()
653 analogix_dp_get_max_rx_bandwidth(dp, &dp->link_train.link_rate); in analogix_dp_full_link_train()
656 if ((dp->link_train.link_rate != DP_LINK_BW_1_62) && in analogix_dp_full_link_train()
657 (dp->link_train.link_rate != DP_LINK_BW_2_7) && in analogix_dp_full_link_train()
658 (dp->link_train.link_rate != DP_LINK_BW_5_4)) { in analogix_dp_full_link_train()
660 dp->link_train.link_rate); in analogix_dp_full_link_train()
661 dp->link_train.link_rate = DP_LINK_BW_1_62; in analogix_dp_full_link_train()
[all …]
/kernel/linux/linux-5.10/include/linux/phy/
Dphy-dp.h25 unsigned int link_rate; member
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce/
Ddce_link_encoder.c1145 cntl.pixel_clock = link_settings->link_rate in dce110_link_encoder_enable_dp_output()
1184 cntl.pixel_clock = link_settings->link_rate in dce110_link_encoder_enable_dp_mst_output()
1224 cntl.pixel_clock = link_settings->link_rate in dce60_link_encoder_enable_dp_output()
1263 cntl.pixel_clock = link_settings->link_rate in dce60_link_encoder_enable_dp_mst_output()
1344 cntl.pixel_clock = link_settings->link_settings.link_rate * in dce110_link_encoder_dp_set_lane_settings()
1356 if (link_settings->link_settings.link_rate == LINK_RATE_HIGH2) { in dce110_link_encoder_dp_set_lane_settings()
1676 max_link_cap.link_rate = LINK_RATE_HIGH2; in dce110_link_encoder_get_max_link_cap()
1679 max_link_cap.link_rate = LINK_RATE_HIGH3; in dce110_link_encoder_get_max_link_cap()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_link_encoder.c983 cntl.pixel_clock = link_settings->link_rate in dcn10_link_encoder_enable_dp_output()
1022 cntl.pixel_clock = link_settings->link_rate in dcn10_link_encoder_enable_dp_mst_output()
1105 cntl.pixel_clock = link_settings->link_settings.link_rate * in dcn10_link_encoder_dp_set_lane_settings()
1117 if (link_settings->link_settings.link_rate == LINK_RATE_HIGH2) { in dcn10_link_encoder_dp_set_lane_settings()
1443 max_link_cap.link_rate = LINK_RATE_HIGH2; in dcn10_link_encoder_get_max_link_cap()
1446 max_link_cap.link_rate = LINK_RATE_HIGH3; in dcn10_link_encoder_get_max_link_cap()
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/cadence/
Dcdns-mhdp8546-core.c626 return min(mhdp->host.link_rate, mhdp->sink.link_rate); in cdns_mhdp_max_link_rate()
880 phy_cfg.dp.link_rate = mhdp->link.rate / 100; in cdns_mhdp_link_training_init()
1353 unsigned int link_rate; in cdns_mhdp_fill_host_caps() local
1361 link_rate = mhdp->phy->attrs.max_link_rate; in cdns_mhdp_fill_host_caps()
1362 if (!link_rate) in cdns_mhdp_fill_host_caps()
1363 link_rate = drm_dp_bw_code_to_link_rate(DP_LINK_BW_8_1); in cdns_mhdp_fill_host_caps()
1366 link_rate *= 100; in cdns_mhdp_fill_host_caps()
1368 mhdp->host.link_rate = link_rate; in cdns_mhdp_fill_host_caps()
1384 mhdp->sink.link_rate = mhdp->link.rate; in cdns_mhdp_fill_sink_caps()
2195 mhdp->link.rate = mhdp->host.link_rate; in cdns_mhdp_update_link_status()
[all …]
Dcdns-mhdp8546-core.h283 unsigned int link_rate; member
296 unsigned int link_rate; member
/kernel/linux/linux-5.10/drivers/scsi/pm8001/
Dpm8001_init.c50 static ulong link_rate = LINKRATE_15 | LINKRATE_30 | LINKRATE_60 | LINKRATE_120; variable
51 module_param(link_rate, ulong, 0644);
52 MODULE_PARM_DESC(link_rate, "Enable link rate.\n"
516 if (link_rate >= 1 && link_rate <= 15) in pm8001_pci_alloc()
517 pm8001_ha->link_rate = (link_rate << 8); in pm8001_pci_alloc()
519 pm8001_ha->link_rate = LINKRATE_15 | LINKRATE_30 | in pm8001_pci_alloc()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn21/
Ddcn21_link_encoder.c184 switch (link_settings->link_rate) { in update_cfg_data()
199 __func__, link_settings->link_rate); in update_cfg_data()
/kernel/linux/linux-5.10/drivers/scsi/hisi_sas/
Dhisi_sas_v2_hw.c2638 u32 port_id, link_rate; in phy_up_v2_hw() local
2658 link_rate = (port_state & PORT_STATE_PHY8_CONN_RATE_MSK) >> in phy_up_v2_hw()
2663 link_rate = hisi_sas_read32(hisi_hba, PHY_CONN_RATE); in phy_up_v2_hw()
2664 link_rate = (link_rate >> (phy_no * 4)) & 0xf; in phy_up_v2_hw()
2679 sas_phy->linkrate = link_rate; in phy_up_v2_hw()
2682 dev_info(dev, "phyup: phy%d link_rate=%d\n", phy_no, link_rate); in phy_up_v2_hw()
3202 u32 ent_tmp, ent_msk, ent_int, port_id, link_rate, hard_phy_linkrate; in sata_int_v2_hw() local
3243 link_rate = (port_state & PORT_STATE_PHY8_CONN_RATE_MSK) >> in sata_int_v2_hw()
3248 link_rate = hisi_sas_read32(hisi_hba, PHY_CONN_RATE); in sata_int_v2_hw()
3249 link_rate = (link_rate >> (phy_no * 4)) & 0xf; in sata_int_v2_hw()
[all …]
Dhisi_sas_v1_hw.c1326 u32 irq_value, context, port_id, link_rate; in int_phyup_v1_hw() local
1362 link_rate = hisi_sas_read32(hisi_hba, PHY_CONN_RATE); in int_phyup_v1_hw()
1363 link_rate = (link_rate >> (phy_no * 4)) & 0xf; in int_phyup_v1_hw()
1364 sas_phy->linkrate = link_rate; in int_phyup_v1_hw()
1369 phy_no, link_rate); in int_phyup_v1_hw()
/kernel/linux/linux-5.10/drivers/scsi/isci/
Dphy.c127 u32 llctl, link_rate; in sci_phy_link_layer_initialization() local
272 link_rate = SCU_SAS_LINK_LAYER_CONTROL_MAX_LINK_RATE_GEN3; in sci_phy_link_layer_initialization()
275 link_rate = SCU_SAS_LINK_LAYER_CONTROL_MAX_LINK_RATE_GEN2; in sci_phy_link_layer_initialization()
278 link_rate = SCU_SAS_LINK_LAYER_CONTROL_MAX_LINK_RATE_GEN1; in sci_phy_link_layer_initialization()
281 llctl |= SCU_SAS_LLCTL_GEN_VAL(MAX_LINK_RATE, link_rate); in sci_phy_link_layer_initialization()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_link_encoder.c224 switch (link_settings->link_rate) { in update_cfg_data()
239 __func__, link_settings->link_rate); in update_cfg_data()
Ddcn20_stream_encoder.c452 if (param->link_settings.link_rate != LINK_RATE_UNKNOWN) { in enc2_stream_encoder_dp_unblank()
469 param->link_settings.link_rate in enc2_stream_encoder_dp_unblank()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/include/
Dbios_parser_types.h125 enum dc_link_rate link_rate; member

1234