Lines Matching refs:lanes
198 unsigned int lanes; member
441 unsigned int lanes, unsigned int rate) in dw_dp_bandwidth_ok() argument
446 max_bw = lanes * rate; in dw_dp_bandwidth_ok()
513 static void dw_dp_phy_xmit_enable(struct dw_dp *dp, u32 lanes) in dw_dp_phy_xmit_enable() argument
517 switch (lanes) { in dw_dp_phy_xmit_enable()
521 xmit_enable = GENMASK(lanes - 1, 0); in dw_dp_phy_xmit_enable()
579 link->lanes = min_t(u8, dp->phy.attrs.bus_width, in dw_dp_link_probe()
597 unsigned int lanes = link->lanes, *vs, *pe; in dw_dp_link_train_update_vs_emph() local
604 for (i = 0; i < lanes; i++) { in dw_dp_link_train_update_vs_emph()
608 phy_cfg.dp.lanes = lanes; in dw_dp_link_train_update_vs_emph()
617 for (i = 0; i < lanes; i++) in dw_dp_link_train_update_vs_emph()
620 ret = drm_dp_dpcd_write(&dp->aux, DP_TRAINING_LANE0_SET, buf, lanes); in dw_dp_link_train_update_vs_emph()
638 phy_cfg.dp.lanes = link->lanes; in dw_dp_link_configure()
649 FIELD_PREP(PHY_LANES, link->lanes / 2)); in dw_dp_link_configure()
673 dw_dp_phy_xmit_enable(dp, link->lanes); in dw_dp_link_configure()
676 buf[1] = link->lanes; in dw_dp_link_configure()
769 for (i = 0; i < link->lanes; i++) { in dw_dp_link_get_adjustments()
820 if (drm_dp_clock_recovery_ok(status, link->lanes)) { in dw_dp_link_clock_recovery()
870 if (!drm_dp_clock_recovery_ok(status, link->lanes)) { in dw_dp_link_channel_equalization()
877 if (drm_dp_channel_eq_ok(status, link->lanes)) { in dw_dp_link_channel_equalization()
908 if (!dw_dp_bandwidth_ok(dp, &video->mode, video->bpp, link->lanes, in dw_dp_link_downgrade()
924 link->lanes, (link->lanes > 1) ? "s" : "", link->rate / 100); in dw_dp_link_train()
999 link->lanes = dp->phy.attrs.bus_width; in dw_dp_set_phy_default_config()
1009 for (i = 0; i < link->lanes; i++) { in dw_dp_set_phy_default_config()
1013 phy_cfg.dp.lanes = link->lanes; in dw_dp_set_phy_default_config()
1024 FIELD_PREP(PHY_LANES, link->lanes / 2)); in dw_dp_set_phy_default_config()
1048 dw_dp_phy_xmit_enable(dp, link->lanes); in dw_dp_set_phy_default_config()
1309 link_bandwidth = (link->rate / 1000) * link->lanes; in dw_dp_video_enable()
1329 t1 = (4 * 1000 / 9) * link->lanes; in dw_dp_video_enable()
1333 t1 = (1000 / 2) * link->lanes; in dw_dp_video_enable()
1336 t1 = (1000 / 3) * link->lanes; in dw_dp_video_enable()
1338 t1 = (3000 / 16) * link->lanes; in dw_dp_video_enable()
1343 t1 = (2000 / 5) * link->lanes; in dw_dp_video_enable()
1345 t1 = (4000 / 15) * link->lanes; in dw_dp_video_enable()
1350 t1 = (1000 / 6) * link->lanes; in dw_dp_video_enable()
1352 t1 = (1000 / 3) * link->lanes; in dw_dp_video_enable()
1354 t1 = (2000 / 9) * link->lanes; in dw_dp_video_enable()
1360 t1 = (1000 / 6) * link->lanes; in dw_dp_video_enable()
1362 t1 = (1000 / 4) * link->lanes; in dw_dp_video_enable()
1591 if (!dw_dp_bandwidth_ok(dp, &edid_data->mode_buf[i], min_bpp, link->lanes, in dw_dp_mode_valid()
1621 if (!dw_dp_bandwidth_ok(dp, edid_data->preferred_mode, fmt->bpp, link->lanes, in dw_dp_get_output_bus_fmts()