Lines Matching full:percent
289 static u32 phy_tx_vref_tune_from_property(u32 percent) in phy_tx_vref_tune_from_property() argument
291 percent = clamp(percent, 94U, 124U); in phy_tx_vref_tune_from_property()
293 return DIV_ROUND_CLOSEST(percent - 94U, 2); in phy_tx_vref_tune_from_property()
296 static u32 phy_tx_rise_tune_from_property(u32 percent) in phy_tx_rise_tune_from_property() argument
298 switch (percent) { in phy_tx_rise_tune_from_property()
334 static u32 phy_comp_dis_tune_from_property(u32 percent) in phy_comp_dis_tune_from_property() argument
336 switch (percent) { in phy_comp_dis_tune_from_property()
355 static u32 phy_pcs_tx_swing_full_from_property(u32 percent) in phy_pcs_tx_swing_full_from_property() argument
357 percent = min(percent, 100U); in phy_pcs_tx_swing_full_from_property()
359 return (percent * 127) / 100; in phy_pcs_tx_swing_full_from_property()
366 if (device_property_read_u32(dev, "fsl,phy-tx-vref-tune-percent", in imx8m_get_phy_tuning_data()
373 if (device_property_read_u32(dev, "fsl,phy-tx-rise-tune-percent", in imx8m_get_phy_tuning_data()
394 if (device_property_read_u32(dev, "fsl,phy-comp-dis-tune-percent", in imx8m_get_phy_tuning_data()
408 if (device_property_read_u32(dev, "fsl,phy-pcs-tx-swing-full-percent", in imx8m_get_phy_tuning_data()