Searched refs:lastdec (Results 1 – 8 of 8) sorted by relevance
17 static ulong lastdec; variable72 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()
37 static unsigned long long lastdec; /* Timer reading at last call */ variable83 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()
20 #define lastdec gd->arch.lastinc macro45 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()
23 #define lastdec gd->arch.lastinc macro47 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()
26 #define lastdec gd->arch.lastinc macro56 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()
80 #define lastdec gd->arch.lastinc macro86 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()
28 #define lastdec (gd->arch.lastinc) macro98 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()
17 static ulong lastdec; variable22 lastdec = 0; in timer_init()