Home
last modified time | relevance | path

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

/OK3568_Linux_fs/u-boot/arch/nds32/cpu/n1213/ag101/
H A Dtimer.c17 static ulong lastdec; variable
72 lastdec = readl(&tmr->timer3_counter) / (TIMER_CLOCK / CONFIG_SYS_HZ); in reset_timer_masked()
74 lastdec = readl(&tmr->timer3_counter) / in reset_timer_masked()
79 debug("%s(): lastdec = %lx\n", __func__, lastdec); in reset_timer_masked()
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()
121 timestamp += lastdec + TIMER_LOAD_VAL - now; in get_timer_masked()
124 lastdec = now; in get_timer_masked()
/OK3568_Linux_fs/u-boot/board/armltd/integrator/
H A Dtimer.c37 static unsigned long long lastdec; /* Timer reading at last call */ variable
83 lastdec = READ_TIMER; in timer_init()
126 if(now > lastdec) { in get_timer_masked()
128 total_count += lastdec + TIMER_LOAD_VAL + 1 - now; in get_timer_masked()
130 total_count += lastdec - now; in get_timer_masked()
132 lastdec = now; in get_timer_masked()
/OK3568_Linux_fs/u-boot/arch/arm/mach-stm32/stm32f7/
H A Dtimer.c20 #define lastdec gd->arch.lastinc macro
45 lastdec = READ_TIMER(); in timer_init()
79 if (now >= lastdec) { in get_timer_masked()
81 timestamp += now - lastdec; in get_timer_masked()
84 timestamp += now + GPT_FREE_RUNNING - lastdec; in get_timer_masked()
86 lastdec = now; in get_timer_masked()
/OK3568_Linux_fs/u-boot/arch/arm/cpu/armv7/stv0991/
H A Dtimer.c23 #define lastdec gd->arch.lastinc macro
47 lastdec = READ_TIMER(); in timer_init()
81 if (now >= lastdec) { in get_timer_masked()
83 timestamp += now - lastdec; in get_timer_masked()
86 timestamp += now + GPT_FREE_RUNNING - lastdec; in get_timer_masked()
88 lastdec = now; in get_timer_masked()
/OK3568_Linux_fs/u-boot/arch/arm/cpu/arm926ejs/spear/
H A Dtimer.c26 #define lastdec gd->arch.lastinc macro
56 lastdec = READ_TIMER(); in timer_init()
90 if (now >= lastdec) { in get_timer_masked()
92 timestamp += now - lastdec; in get_timer_masked()
95 timestamp += now + GPT_FREE_RUNNING - lastdec; in get_timer_masked()
97 lastdec = now; in get_timer_masked()
/OK3568_Linux_fs/u-boot/arch/arm/mach-orion5x/
H A Dtimer.c80 #define lastdec gd->arch.lastinc macro
86 if (lastdec >= now) { in get_timer_masked()
88 timestamp += lastdec - now; in get_timer_masked()
91 timestamp += lastdec + in get_timer_masked()
94 lastdec = now; in get_timer_masked()
151 lastdec = read_timer(); in timer_init_r()
/OK3568_Linux_fs/u-boot/arch/arm/cpu/arm926ejs/mxs/
H A Dtimer.c28 #define lastdec (gd->arch.lastinc) macro
98 if (lastdec >= now) { in get_ticks()
103 timestamp += (lastdec - now); in get_ticks()
106 timestamp += (TIMER_LOAD_VAL - now) + lastdec; in get_ticks()
109 lastdec = now; in get_ticks()
/OK3568_Linux_fs/u-boot/arch/arm/cpu/arm720t/
H A Dinterrupts.c17 static ulong lastdec; variable
22 lastdec = 0; in timer_init()