Lines Matching full:lanes

196 	unsigned int lanes;  member
431 unsigned int lanes, unsigned int rate) in dw_dp_bandwidth_ok() argument
436 max_bw = lanes * rate; in dw_dp_bandwidth_ok()
503 static void dw_dp_phy_xmit_enable(struct dw_dp *dp, u32 lanes) in dw_dp_phy_xmit_enable() argument
507 switch (lanes) { in dw_dp_phy_xmit_enable()
511 xmit_enable = GENMASK(lanes - 1, 0); in dw_dp_phy_xmit_enable()
568 link->lanes = min_t(u8, dp->phy.attrs.bus_width, in dw_dp_link_probe()
586 unsigned int lanes = link->lanes, *vs, *pe; in dw_dp_link_train_update_vs_emph() local
593 for (i = 0; i < lanes; i++) { in dw_dp_link_train_update_vs_emph()
597 phy_cfg.dp.lanes = lanes; in dw_dp_link_train_update_vs_emph()
606 for (i = 0; i < lanes; i++) in dw_dp_link_train_update_vs_emph()
609 ret = drm_dp_dpcd_write(&dp->aux, DP_TRAINING_LANE0_SET, buf, lanes); in dw_dp_link_train_update_vs_emph()
627 phy_cfg.dp.lanes = link->lanes; in dw_dp_link_configure()
638 FIELD_PREP(PHY_LANES, link->lanes / 2)); in dw_dp_link_configure()
662 dw_dp_phy_xmit_enable(dp, link->lanes); in dw_dp_link_configure()
665 buf[1] = link->lanes; in dw_dp_link_configure()
758 for (i = 0; i < link->lanes; i++) { in dw_dp_link_get_adjustments()
809 if (drm_dp_clock_recovery_ok(status, link->lanes)) { in dw_dp_link_clock_recovery()
859 if (!drm_dp_clock_recovery_ok(status, link->lanes)) { in dw_dp_link_channel_equalization()
866 if (drm_dp_channel_eq_ok(status, link->lanes)) { in dw_dp_link_channel_equalization()
897 if (!dw_dp_bandwidth_ok(dp, &video->mode, video->bpp, link->lanes, in dw_dp_link_downgrade()
913 link->lanes, (link->lanes > 1) ? "s" : "", link->rate / 100); in dw_dp_link_train()
988 link->lanes = dp->phy.attrs.bus_width; in dw_dp_set_phy_default_config()
998 for (i = 0; i < link->lanes; i++) { in dw_dp_set_phy_default_config()
1002 phy_cfg.dp.lanes = link->lanes; in dw_dp_set_phy_default_config()
1013 FIELD_PREP(PHY_LANES, link->lanes / 2)); in dw_dp_set_phy_default_config()
1037 dw_dp_phy_xmit_enable(dp, link->lanes); in dw_dp_set_phy_default_config()
1298 link_bandwidth = (link->rate / 1000) * link->lanes; in dw_dp_video_enable()
1318 t1 = (4 * 1000 / 9) * link->lanes; in dw_dp_video_enable()
1322 t1 = (1000 / 2) * link->lanes; in dw_dp_video_enable()
1325 t1 = (1000 / 3) * link->lanes; in dw_dp_video_enable()
1327 t1 = (3000 / 16) * link->lanes; in dw_dp_video_enable()
1332 t1 = (2000 / 5) * link->lanes; in dw_dp_video_enable()
1334 t1 = (4000 / 15) * link->lanes; in dw_dp_video_enable()
1339 t1 = (1000 / 6) * link->lanes; in dw_dp_video_enable()
1341 t1 = (1000 / 3) * link->lanes; in dw_dp_video_enable()
1343 t1 = (2000 / 9) * link->lanes; in dw_dp_video_enable()
1349 t1 = (1000 / 6) * link->lanes; in dw_dp_video_enable()
1351 t1 = (1000 / 4) * link->lanes; in dw_dp_video_enable()
1563 if (!dw_dp_bandwidth_ok(dp, &edid_data->mode_buf[i], min_bpp, link->lanes, in dw_dp_mode_valid()
1593 if (!dw_dp_bandwidth_ok(dp, edid_data->preferred_mode, fmt->bpp, link->lanes, in dw_dp_get_output_bus_fmts()