Lines Matching full:now
97 ulong now = readl(&tmr->timer3_counter) / (TIMER_CLOCK / CONFIG_SYS_HZ); in get_timer_masked() local
99 ulong now = readl(&tmr->timer3_counter) / in get_timer_masked() local
103 debug("%s(): now = %lx, lastdec = %lx\n", __func__, now, lastdec); in get_timer_masked()
105 if (lastdec >= now) { in get_timer_masked()
110 timestamp += lastdec - now; in get_timer_masked()
115 * nts = ts + ld + (TLV - now) in get_timer_masked()
117 * (TLV-now) amount of time after passing though -1 in get_timer_masked()
121 timestamp += lastdec + TIMER_LOAD_VAL - now; in get_timer_masked()
124 lastdec = now; in get_timer_masked()
156 unsigned long now, last = readl(&tmr->timer3_counter); in __udelay() local
160 now = readl(&tmr->timer3_counter); in __udelay()
161 if (now > last) /* count down timer overflow */ in __udelay()
162 tmo -= TIMER_LOAD_VAL + last - now; in __udelay()
164 tmo -= last - now; in __udelay()
165 last = now; in __udelay()