Searched refs:lastdec (Results 1 – 8 of 8) sorted by relevance
/u-boot/arch/nds32/cpu/n1213/ag101/ |
A D | timer.c | 21 static ulong lastdec; variable 76 lastdec = readl(&tmr->timer3_counter) / (TIMER_CLOCK / CONFIG_SYS_HZ); in reset_timer_masked() 78 lastdec = readl(&tmr->timer3_counter) / in reset_timer_masked() 83 debug("%s(): lastdec = %lx\n", __func__, lastdec); in reset_timer_masked() 107 debug("%s(): now = %lx, lastdec = %lx\n", __func__, now, lastdec); in get_timer_masked() 109 if (lastdec >= now) { in get_timer_masked() 114 timestamp += lastdec - now; in get_timer_masked() 125 timestamp += lastdec + TIMER_LOAD_VAL - now; in get_timer_masked() 128 lastdec = now; in get_timer_masked()
|
/u-boot/board/armltd/integrator/ |
A D | timer.c | 38 static unsigned long long lastdec; /* Timer reading at last call */ variable 84 lastdec = READ_TIMER; in timer_init() 106 if(now > lastdec) { in get_timer_masked() 108 total_count += lastdec + TIMER_LOAD_VAL + 1 - now; in get_timer_masked() 110 total_count += lastdec - now; in get_timer_masked() 112 lastdec = now; in get_timer_masked()
|
/u-boot/arch/arm/cpu/armv7/stv0991/ |
A D | timer.c | 26 #define lastdec gd->arch.lastinc macro 52 lastdec = READ_TIMER(); in timer_init() 86 if (now >= lastdec) { in get_timer_masked() 88 timestamp += now - lastdec; in get_timer_masked() 91 timestamp += now + GPT_FREE_RUNNING - lastdec; in get_timer_masked() 93 lastdec = now; in get_timer_masked()
|
/u-boot/arch/arm/cpu/arm926ejs/spear/ |
A D | timer.c | 32 #define lastdec gd->arch.lastinc macro 62 lastdec = READ_TIMER(); in timer_init() 96 if (now >= lastdec) { in get_timer_masked() 98 timestamp += now - lastdec; in get_timer_masked() 101 timestamp += now + GPT_FREE_RUNNING - lastdec; in get_timer_masked() 103 lastdec = now; in get_timer_masked()
|
/u-boot/arch/arm/mach-orion5x/ |
A D | timer.c | 83 #define lastdec gd->arch.lastinc macro 89 if (lastdec >= now) { in get_timer_masked() 91 timestamp += lastdec - now; in get_timer_masked() 94 timestamp += lastdec + in get_timer_masked() 97 lastdec = now; in get_timer_masked() 154 lastdec = read_timer(); in timer_init_r()
|
/u-boot/arch/arm/cpu/arm926ejs/mxs/ |
A D | timer.c | 31 #define lastdec (gd->arch.lastinc) macro 101 if (lastdec >= now) { in get_ticks() 106 timestamp += (lastdec - now); in get_ticks() 109 timestamp += (TIMER_LOAD_VAL - now) + lastdec; in get_ticks() 112 lastdec = now; in get_ticks()
|
/u-boot/arch/arm/cpu/arm720t/ |
A D | interrupts.c | 16 static ulong lastdec; variable 21 lastdec = 0; in timer_init()
|
/u-boot/arch/arm/mach-nexell/ |
A D | timer.c | 27 static unsigned long lastdec __attribute__ ((section(".data"))); variable 186 lastdec = timer_read(base, ch); in reset_timer_masked() 198 if (now >= lastdec) { /* normal mode (non roll) */ in get_timer_masked() 200 timestamp += now - lastdec; in get_timer_masked() 209 timestamp += now + TIMER_COUNT - lastdec; in get_timer_masked() 212 lastdec = now; in get_timer_masked() 214 debug("now=%lu, last=%lu, timestamp=%lu\n", now, lastdec, timestamp); in get_timer_masked()
|
Completed in 8 milliseconds