Lines Matching defs:now
64 unsigned long now, last = readl(&timer_base->tcrr);
67 now = readl(&timer_base->tcrr);
68 if (last > now) /* count up timer overflow */
69 tmo -= TIMER_OVERFLOW_VAL - last + now + 1;
71 tmo -= now - last;
72 last = now;
79 ulong now = readl(&timer_base->tcrr) / (TIMER_CLOCK / CONFIG_SYS_HZ);
81 if (now >= gd->arch.lastinc) { /* normal mode (non roll) */
83 gd->arch.tbl += (now - gd->arch.lastinc);
86 CONFIG_SYS_HZ)) - gd->arch.lastinc) + now;
88 gd->arch.lastinc = now;