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 imx95_phy_tx_vref_tune_from_property(u32 percent) in imx95_phy_tx_vref_tune_from_property() argument
298 percent = clamp(percent, 90U, 108U); in imx95_phy_tx_vref_tune_from_property()
300 switch (percent) { in imx95_phy_tx_vref_tune_from_property()
302 percent = 0; in imx95_phy_tx_vref_tune_from_property()
305 percent -= 91; in imx95_phy_tx_vref_tune_from_property()
308 percent -= 92; in imx95_phy_tx_vref_tune_from_property()
311 percent -= 93; in imx95_phy_tx_vref_tune_from_property()
315 return percent; in imx95_phy_tx_vref_tune_from_property()
318 static u32 phy_tx_rise_tune_from_property(u32 percent) in phy_tx_rise_tune_from_property() argument
320 switch (percent) { in phy_tx_rise_tune_from_property()
332 static u32 imx95_phy_tx_rise_tune_from_property(u32 percent) in imx95_phy_tx_rise_tune_from_property() argument
334 percent = clamp(percent, 90U, 120U); in imx95_phy_tx_rise_tune_from_property()
336 switch (percent) { in imx95_phy_tx_rise_tune_from_property()
372 static u32 phy_comp_dis_tune_from_property(u32 percent) in phy_comp_dis_tune_from_property() argument
374 switch (percent) { in phy_comp_dis_tune_from_property()
394 static u32 imx95_phy_comp_dis_tune_from_property(u32 percent) in imx95_phy_comp_dis_tune_from_property() argument
396 percent = clamp(percent, 94, 104); in imx95_phy_comp_dis_tune_from_property()
398 switch (percent) { in imx95_phy_comp_dis_tune_from_property()
400 percent = 0; in imx95_phy_comp_dis_tune_from_property()
403 percent -= 95; in imx95_phy_comp_dis_tune_from_property()
406 percent -= 96; in imx95_phy_comp_dis_tune_from_property()
409 percent -= 97; in imx95_phy_comp_dis_tune_from_property()
413 return percent; in imx95_phy_comp_dis_tune_from_property()
416 static u32 phy_pcs_tx_swing_full_from_property(u32 percent) in phy_pcs_tx_swing_full_from_property() argument
418 percent = min(percent, 100U); in phy_pcs_tx_swing_full_from_property()
420 return (percent * 127) / 100; in phy_pcs_tx_swing_full_from_property()
431 if (device_property_read_u32(dev, "fsl,phy-tx-vref-tune-percent", in imx8m_get_phy_tuning_data()
441 if (device_property_read_u32(dev, "fsl,phy-tx-rise-tune-percent", in imx8m_get_phy_tuning_data()
465 if (device_property_read_u32(dev, "fsl,phy-comp-dis-tune-percent", in imx8m_get_phy_tuning_data()
482 if (device_property_read_u32(dev, "fsl,phy-pcs-tx-swing-full-percent", in imx8m_get_phy_tuning_data()