Home
last modified time | relevance | path

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

/openbmc/u-boot/arch/nds32/cpu/n1213/ag101/
H A 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()
/openbmc/u-boot/board/armltd/integrator/
H A Dtimer.c36 static unsigned long long lastdec; /* Timer reading at last call */ variable
82 lastdec = READ_TIMER; in timer_init()
104 if(now > lastdec) { in get_timer_masked()
106 total_count += lastdec + TIMER_LOAD_VAL + 1 - now; in get_timer_masked()
108 total_count += lastdec - now; in get_timer_masked()
110 lastdec = now; in get_timer_masked()
/openbmc/u-boot/arch/arm/cpu/armv7/stv0991/
H A Dtimer.c22 #define lastdec gd->arch.lastinc macro
48 lastdec = READ_TIMER(); in timer_init()
82 if (now >= lastdec) { in get_timer_masked()
84 timestamp += now - lastdec; in get_timer_masked()
87 timestamp += now + GPT_FREE_RUNNING - lastdec; in get_timer_masked()
89 lastdec = now; in get_timer_masked()
/openbmc/u-boot/arch/arm/cpu/arm926ejs/spear/
H A Dtimer.c27 #define lastdec gd->arch.lastinc macro
57 lastdec = READ_TIMER(); in timer_init()
91 if (now >= lastdec) { in get_timer_masked()
93 timestamp += now - lastdec; in get_timer_masked()
96 timestamp += now + GPT_FREE_RUNNING - lastdec; in get_timer_masked()
98 lastdec = now; in get_timer_masked()
/openbmc/u-boot/arch/arm/mach-orion5x/
H A 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()
/openbmc/u-boot/arch/arm/cpu/arm926ejs/mxs/
H A 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()
/openbmc/u-boot/arch/arm/cpu/arm720t/
H A Dinterrupts.c16 static ulong lastdec; variable
21 lastdec = 0; in timer_init()