Lines Matching refs:now
96 ulong now = readl(&tmr->timer3_counter) / (TIMER_CLOCK / CONFIG_SYS_HZ); in get_timer_masked() local
98 ulong now = readl(&tmr->timer3_counter) / in get_timer_masked() local
102 debug("%s(): now = %lx, lastdec = %lx\n", __func__, now, lastdec); in get_timer_masked()
104 if (lastdec >= now) { in get_timer_masked()
109 timestamp += lastdec - now; in get_timer_masked()
120 timestamp += lastdec + TIMER_LOAD_VAL - now; in get_timer_masked()
123 lastdec = now; in get_timer_masked()
155 unsigned long now, last = readl(&tmr->timer3_counter); in __udelay() local
159 now = readl(&tmr->timer3_counter); in __udelay()
160 if (now > last) /* count down timer overflow */ in __udelay()
161 tmo -= TIMER_LOAD_VAL + last - now; in __udelay()
163 tmo -= last - now; in __udelay()
164 last = now; in __udelay()