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