Lines Matching refs:link_train

40 	struct link_train link_train;  member
297 if (edp->link_train.revision < 0x11) in rk_edp_link_power_up()
325 values[0] = edp->link_train.link_rate; in rk_edp_link_configure()
326 values[1] = edp->link_train.lane_count; in rk_edp_link_configure()
337 for (i = 0; i < edp->link_train.lane_count; i++) in rk_edp_set_link_training()
484 edp->link_train.lane_count); in rk_edp_link_train_cr()
497 edp->link_train.lane_count); in rk_edp_link_train_cr()
501 for (i = 0; i < edp->link_train.lane_count; i++) { in rk_edp_link_train_cr()
506 if (i == edp->link_train.lane_count) { in rk_edp_link_train_cr()
524 edp_get_adjust_train(status, edp->link_train.lane_count, in rk_edp_link_train_cr()
566 edp->link_train.lane_count); in rk_edp_link_train_ce()
569 edp_get_adjust_train(status, edp->link_train.lane_count, in rk_edp_link_train_ce()
596 edp->link_train.revision = values[0]; in rk_edp_init_training()
597 edp->link_train.link_rate = values[1]; in rk_edp_init_training()
598 edp->link_train.lane_count = values[2] & DP_MAX_LANE_COUNT_MASK; in rk_edp_init_training()
601 edp->link_train.link_rate * 27 / 100, in rk_edp_init_training()
602 edp->link_train.link_rate * 27 % 100, in rk_edp_init_training()
603 edp->link_train.lane_count); in rk_edp_init_training()
605 if ((edp->link_train.link_rate != LINK_RATE_1_62GBPS) && in rk_edp_init_training()
606 (edp->link_train.link_rate != LINK_RATE_2_70GBPS)) { in rk_edp_init_training()
608 edp->link_train.link_rate); in rk_edp_init_training()
612 if (edp->link_train.lane_count == 0) { in rk_edp_init_training()
614 edp->link_train.lane_count); in rk_edp_init_training()
632 writel(edp->link_train.link_rate, &edp->regs->link_bw_set); in rk_edp_hw_link_training()
633 writel(edp->link_train.lane_count, &edp->regs->lane_count_set); in rk_edp_hw_link_training()