Lines Matching refs:upper_idx
555 u8 lower_idx, upper_idx, txreserve_val; in tx_vcm_cal_sw() local
617 upper_idx = TXRESERVE_MAX; in tx_vcm_cal_sw()
620 while ((upper_idx - lower_idx) > 1) { in tx_vcm_cal_sw()
621 txreserve_val = DIV_ROUND_CLOSEST(lower_idx + upper_idx, 2); in tx_vcm_cal_sw()
630 upper_idx = txreserve_val; in tx_vcm_cal_sw()
650 } else if (upper_idx == TXRESERVE_MAX) { in tx_vcm_cal_sw()
657 upper_idx << 12 | upper_idx << 8 | in tx_vcm_cal_sw()
658 upper_idx << 4 | upper_idx); in tx_vcm_cal_sw()
676 upper_idx << 12 | upper_idx << 8 | in tx_vcm_cal_sw()
677 upper_idx << 4 | upper_idx); in tx_vcm_cal_sw()
678 phydev_dbg(phydev, "TX-VCM SW cal result: 0x%x\n", upper_idx); in tx_vcm_cal_sw()
691 } else if (upper_idx == TXRESERVE_MAX && upper_ret == 0 && in tx_vcm_cal_sw()
695 upper_idx); in tx_vcm_cal_sw()