Lines Matching refs:now
59 unsigned long now, last = readl(&timer_base->tcrr); in __udelay() local
62 now = readl(&timer_base->tcrr); in __udelay()
63 if (last > now) /* count up timer overflow */ in __udelay()
64 tmo -= TIMER_OVERFLOW_VAL - last + now + 1; in __udelay()
66 tmo -= now - last; in __udelay()
67 last = now; in __udelay()
74 ulong now = readl(&timer_base->tcrr) / (TIMER_CLOCK / CONFIG_SYS_HZ); in get_timer_masked() local
76 if (now >= gd->arch.lastinc) { /* normal mode (non roll) */ in get_timer_masked()
78 gd->arch.tbl += (now - gd->arch.lastinc); in get_timer_masked()
81 CONFIG_SYS_HZ)) - gd->arch.lastinc) + now; in get_timer_masked()
83 gd->arch.lastinc = now; in get_timer_masked()