Lines Matching refs:tmp_delay
1663 u32 tmp_delay, d; in sdr_backup_phase() local
1673 tmp_delay = *work_bgn - iocfg->delay_per_opa_tap; in sdr_backup_phase()
1676 for (d = 0; d <= iocfg->dqs_en_delay_max && tmp_delay < *work_bgn; in sdr_backup_phase()
1683 *work_bgn = tmp_delay; in sdr_backup_phase()
1687 tmp_delay += iocfg->delay_per_dqs_en_dchain_tap; in sdr_backup_phase()
1743 int tmp_delay = 0; in sdr_find_window_center() local
1751 tmp_delay = (iocfg->dqs_en_phase_max + 1) * iocfg->delay_per_opa_tap; in sdr_find_window_center()
1753 debug_cond(DLEVEL >= 2, "vfifo ptap delay %d\n", tmp_delay); in sdr_find_window_center()
1754 work_mid %= tmp_delay; in sdr_find_window_center()
1757 tmp_delay = rounddown(work_mid, iocfg->delay_per_opa_tap); in sdr_find_window_center()
1758 if (tmp_delay > iocfg->dqs_en_phase_max * iocfg->delay_per_opa_tap) in sdr_find_window_center()
1759 tmp_delay = iocfg->dqs_en_phase_max * iocfg->delay_per_opa_tap; in sdr_find_window_center()
1760 p = tmp_delay / iocfg->delay_per_opa_tap; in sdr_find_window_center()
1762 debug_cond(DLEVEL >= 2, "new p %d, tmp_delay=%d\n", p, tmp_delay); in sdr_find_window_center()
1764 d = DIV_ROUND_UP(work_mid - tmp_delay, in sdr_find_window_center()
1768 tmp_delay += d * iocfg->delay_per_dqs_en_dchain_tap; in sdr_find_window_center()
1770 debug_cond(DLEVEL >= 2, "new d %d, tmp_delay=%d\n", d, tmp_delay); in sdr_find_window_center()