Home
last modified time | relevance | path

Searched refs:lastdec (Results 1 – 7 of 7) sorted by relevance

/external/u-boot/arch/nds32/cpu/n1213/ag101/
Dtimer.c16 static ulong lastdec; variable
71 lastdec = readl(&tmr->timer3_counter) / (TIMER_CLOCK / CONFIG_SYS_HZ); in reset_timer_masked()
73 lastdec = readl(&tmr->timer3_counter) / in reset_timer_masked()
78 debug("%s(): lastdec = %lx\n", __func__, lastdec); in reset_timer_masked()
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()
/external/u-boot/board/armltd/integrator/
Dtimer.c36 static unsigned long long lastdec; /* Timer reading at last call */ variable
82 lastdec = READ_TIMER; in timer_init()
125 if(now > lastdec) { in get_timer_masked()
127 total_count += lastdec + TIMER_LOAD_VAL + 1 - now; in get_timer_masked()
129 total_count += lastdec - now; in get_timer_masked()
131 lastdec = now; in get_timer_masked()
/external/u-boot/arch/arm/cpu/armv7/stv0991/
Dtimer.c22 #define lastdec gd->arch.lastinc macro
46 lastdec = READ_TIMER(); in timer_init()
80 if (now >= lastdec) { in get_timer_masked()
82 timestamp += now - lastdec; in get_timer_masked()
85 timestamp += now + GPT_FREE_RUNNING - lastdec; in get_timer_masked()
87 lastdec = now; in get_timer_masked()
/external/u-boot/arch/arm/cpu/arm926ejs/spear/
Dtimer.c25 #define lastdec gd->arch.lastinc macro
55 lastdec = READ_TIMER(); in timer_init()
89 if (now >= lastdec) { in get_timer_masked()
91 timestamp += now - lastdec; in get_timer_masked()
94 timestamp += now + GPT_FREE_RUNNING - lastdec; in get_timer_masked()
96 lastdec = now; in get_timer_masked()
/external/u-boot/arch/arm/mach-orion5x/
Dtimer.c79 #define lastdec gd->arch.lastinc macro
85 if (lastdec >= now) { in get_timer_masked()
87 timestamp += lastdec - now; in get_timer_masked()
90 timestamp += lastdec + in get_timer_masked()
93 lastdec = now; in get_timer_masked()
150 lastdec = read_timer(); in timer_init_r()
/external/u-boot/arch/arm/cpu/arm926ejs/mxs/
Dtimer.c27 #define lastdec (gd->arch.lastinc) macro
97 if (lastdec >= now) { in get_ticks()
102 timestamp += (lastdec - now); in get_ticks()
105 timestamp += (TIMER_LOAD_VAL - now) + lastdec; in get_ticks()
108 lastdec = now; in get_ticks()
/external/u-boot/arch/arm/cpu/arm720t/
Dinterrupts.c16 static ulong lastdec; variable
21 lastdec = 0; in timer_init()