Lines Matching full:percent
67 static u32 phy_tx_vref_tune_from_property(u32 percent) in phy_tx_vref_tune_from_property() argument
69 percent = clamp(percent, 94U, 124U); in phy_tx_vref_tune_from_property()
71 return DIV_ROUND_CLOSEST(percent - 94U, 2); in phy_tx_vref_tune_from_property()
74 static u32 phy_tx_rise_tune_from_property(u32 percent) in phy_tx_rise_tune_from_property() argument
76 switch (percent) { in phy_tx_rise_tune_from_property()
112 static u32 phy_comp_dis_tune_from_property(u32 percent) in phy_comp_dis_tune_from_property() argument
114 switch (percent) { in phy_comp_dis_tune_from_property()
133 static u32 phy_pcs_tx_swing_full_from_property(u32 percent) in phy_pcs_tx_swing_full_from_property() argument
135 percent = min(percent, 100U); in phy_pcs_tx_swing_full_from_property()
137 return (percent * 127) / 100; in phy_pcs_tx_swing_full_from_property()
144 if (device_property_read_u32(dev, "fsl,phy-tx-vref-tune-percent", in imx8m_get_phy_tuning_data()
151 if (device_property_read_u32(dev, "fsl,phy-tx-rise-tune-percent", in imx8m_get_phy_tuning_data()
172 if (device_property_read_u32(dev, "fsl,phy-comp-dis-tune-percent", in imx8m_get_phy_tuning_data()
186 if (device_property_read_u32(dev, "fsl,phy-pcs-tx-swing-full-percent", in imx8m_get_phy_tuning_data()