Lines Matching refs:lane
34 #define EDP_PHY_TX_EMP(lane, x) HIWORD_UPDATE(x, 4 * ((lane) + 1) - 1, 4 * (lane)) argument
36 #define EDP_PHY_TX_AMP(lane, x) HIWORD_UPDATE(x, 4 * ((lane) + 1) - 2, 4 * (lane)) argument
39 #define EDP_PHY_TX_AMP_SCALE(lane, x) HIWORD_UPDATE(x, 2 * ((lane) + 1) - 1, 2 * (lane)) argument
87 u8 lane; in rockchip_edp_phy_set_voltages() local
90 for (lane = 0; lane < dp->lanes; lane++) { in rockchip_edp_phy_set_voltages()
91 val = vp[dp->voltage[lane]][dp->pre[lane]].amp; in rockchip_edp_phy_set_voltages()
92 writel(EDP_PHY_TX_AMP(lane, val), edpphy->regs + EDP_PHY_GRF_CON4); in rockchip_edp_phy_set_voltages()
94 val = vp[dp->voltage[lane]][dp->pre[lane]].amp_scale; in rockchip_edp_phy_set_voltages()
95 writel(EDP_PHY_TX_AMP_SCALE(lane, val), edpphy->regs + EDP_PHY_GRF_CON5); in rockchip_edp_phy_set_voltages()
97 val = vp[dp->voltage[lane]][dp->pre[lane]].emp; in rockchip_edp_phy_set_voltages()
98 writel(EDP_PHY_TX_EMP(lane, val), edpphy->regs + EDP_PHY_GRF_CON3); in rockchip_edp_phy_set_voltages()