Searched refs:lastdec (Results 1 – 7 of 7) sorted by relevance
16 static ulong lastdec; variable71 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()
36 static unsigned long long lastdec; /* Timer reading at last call */ variable82 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()
22 #define lastdec gd->arch.lastinc macro46 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()
25 #define lastdec gd->arch.lastinc macro55 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()
79 #define lastdec gd->arch.lastinc macro85 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()
27 #define lastdec (gd->arch.lastinc) macro97 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()
16 static ulong lastdec; variable21 lastdec = 0; in timer_init()