/u-boot/arch/arm/mach-omap2/ |
H A D | timer.c | 64 unsigned long now, last = readl(&timer_base->tcrr); local 67 now = readl(&timer_base->tcrr); 68 if (last > now) /* count up timer overflow */ 69 tmo -= TIMER_OVERFLOW_VAL - last + now + 1; 71 tmo -= now - last; 72 last = now; 79 ulong now = readl(&timer_base->tcrr) / (TIMER_CLOCK / CONFIG_SYS_HZ); local 81 if (now >= gd->arch.lastinc) { /* normal mode (non roll) */ 83 gd->arch.tbl += (now - gd->arch.lastinc); 86 CONFIG_SYS_HZ)) - gd->arch.lastinc) + now; [all...] |
/u-boot/arch/arm/mach-sunxi/ |
H A D | timer.c | 65 ulong now = TICKS_TO_HZ(read_timer()); local 67 if (now >= gd->arch.lastinc) { /* normal (non rollover) */ 68 gd->arch.tbl += (now - gd->arch.lastinc); 72 - gd->arch.lastinc) + now; 74 gd->arch.lastinc = now; 89 ulong now, last = read_timer(); local 92 now = read_timer(); 93 if (now > last) /* normal (non rollover) */ 94 tmo -= now - last; 96 tmo -= TIMER_LOAD_VAL - last + now; [all...] |
/u-boot/board/armltd/integrator/ |
H A D | timer.c | 104 unsigned long long now = READ_TIMER; local 106 if(now > lastdec) { 108 total_count += lastdec + TIMER_LOAD_VAL + 1 - now; 110 total_count += lastdec - now; 112 lastdec = now; 114 /* Reuse "now" */ 115 now = total_count; 116 do_div(now, div_timer); 117 timestamp = now;
|
/u-boot/drivers/rtc/ |
H A D | goldfish_rtc.c | 38 u64 now; local 42 now = (time_high << 32) | time_low; 44 do_div(now, 1000000000U); 46 rtc_to_tm(now, time); 56 u64 now; local 61 now = rtc_mktime(time) * 1000000000ULL; 62 iowrite32(now >> 32, base + GOLDFISH_TIME_HIGH); 63 iowrite32(now, base + GOLDFISH_TIME_LOW);
|
H A D | emul_rtc.c | 32 u64 now; local 34 now = timer_get_us() + priv->offset_us; 35 do_div(now, 1000000); 36 rtc_to_tm(now, time);
|
H A D | i2c_rtc_emul.c | 61 struct rtc_time now; local 63 os_localtime(&now); 64 plat->base_time = rtc_mktime(&now); 73 long now; local 77 now = rtc_mktime(&tm_now); 79 now = plat->base_time; 82 rtc_to_tm(now + plat->offset, time); 91 long now; local 95 now = rtc_mktime(&tm_now); 97 now [all...] |
/u-boot/arch/arm/mach-at91/arm920t/ |
H A D | timer.c | 63 u32 now; local 65 now = readl(&tc->tc[0].cv) & 0x0000ffff; 67 if (now >= gd->arch.lastinc) { 69 gd->arch.tbl += now - gd->arch.lastinc; 72 gd->arch.tbl += now + TIMER_LOAD_VAL - gd->arch.lastinc; 74 gd->arch.lastinc = now; 102 u32 now = get_timer_raw(); local 103 diff = endtime - now;
|
/u-boot/arch/arm/cpu/arm926ejs/mxs/ |
H A D | timer.c | 88 uint32_t now; local 93 now = readl(&timrot_regs->hw_timrot_timcount0) >> 96 now = readl(&timrot_regs->hw_timrot_running_count0); 101 if (lastdec >= now) { 106 timestamp += (lastdec - now); 109 timestamp += (TIMER_LOAD_VAL - now) + lastdec; 112 lastdec = now;
|
/u-boot/arch/arm/cpu/armv7/ls102xa/ |
H A D | timer.c | 87 unsigned long long now; local 89 asm("mrrc p15, 0, %Q0, %R0, c14" : "=r" (now)); 91 gd->arch.tbl = (unsigned long)(now & 0xffffffff); 92 gd->arch.tbu = (unsigned long)(now >> 32); 94 return now;
|
/u-boot/common/ |
H A D | cyclic.c | 63 uint64_t now, cpu_time; local 75 now = timer_get_us(); 76 if (time_after_eq64(now, cyclic->next_call)) { 78 cyclic->next_call = now + cyclic->delay_us; 81 cpu_time = timer_get_us() - now;
|
/u-boot/arch/arm/mach-imx/ |
H A D | syscounter.c | 89 unsigned long long now; local 91 asm volatile("mrrc p15, 0, %Q0, %R0, c14" : "=r" (now)); 93 gd->arch.tbl = (unsigned long)(now & 0xffffffff); 94 gd->arch.tbu = (unsigned long)(now >> 32); 96 return now;
|
/u-boot/arch/arm/cpu/armv7m/ |
H A D | systick-timer.c | 104 u32 now = read_timer(); local 106 if (now >= gd->arch.lastinc) 107 gd->arch.tbl += (now - gd->arch.lastinc); 109 gd->arch.tbl += (TIMER_MAX_VAL - gd->arch.lastinc) + now; 111 gd->arch.lastinc = now;
|
/u-boot/arch/arm/cpu/armv7/s5p-common/ |
H A D | timer.c | 69 ulong now = timer_get_us_down(); local 76 gd->arch.timer_reset_value += gd->arch.lastinc - now; 77 gd->arch.lastinc = now;
|
/u-boot/arch/arm/cpu/armv7/vf610/ |
H A D | timer.c | 54 ulong now = TIMER_LOAD_VAL - __raw_readl(&cur_pit->cval1); local 57 if (now < gd->arch.tbl) 59 gd->arch.tbl = now;
|
/u-boot/arch/arm/mach-orion5x/ |
H A D | timer.c | 87 ulong now = read_timer(); local 89 if (lastdec >= now) { 91 timestamp += lastdec - now; 95 (TIMER_LOAD_VAL / (CFG_SYS_TCLK / 1000)) - now; 97 lastdec = now;
|
/u-boot/drivers/timer/ |
H A D | fttmr010_timer.c | 27 u32 now = TIMER_LOAD_VAL - readl(&tmr->timer3_counter); local 30 if (now < gd->arch.tbl) 32 gd->arch.tbl = now;
|
H A D | tsc_timer.c | 373 u64 now = get_ticks(); local 376 stop = now + (u64)usec * get_tbclk_mhz();
|
/u-boot/arch/m68k/lib/ |
H A D | time.c | 40 uint start, now, tmp; local 57 start = now = timerp->tcn; 58 while (now < start + tmp) 59 now = timerp->tcn;
|
/u-boot/arch/arm/mach-nexell/ |
H A D | timer.c | 196 unsigned long now = timer_read(base, ch); /* current tick value */ local 198 if (now >= lastdec) { /* normal mode (non roll) */ 200 timestamp += now - lastdec; 203 /* nts = ts + ld + (TLV - now) 205 * (TLV-now) amount of time after passing though -1 209 timestamp += now + TIMER_COUNT - lastdec; 212 lastdec = now; 214 debug("now=%lu, last=%lu, timestamp=%lu\n", now, lastdec, timestamp); 282 unsigned long now local [all...] |
/u-boot/lib/ |
H A D | time.c | 117 unsigned long now = timer_read_counter(); local 120 if (now < gd->timebase_l) 122 gd->timebase_l = now;
|
/u-boot/arch/arm/mach-davinci/ |
H A D | timer.c | 61 unsigned long now = readl(&timer->tim34); local 64 if (now < gd->arch.tbl) 66 gd->arch.tbl = now;
|
/u-boot/test/dm/ |
H A D | rtc.c | 61 struct rtc_time now, time, cmp; local 75 ut_assertok(dm_rtc_get(dev, &now)); 123 ut_assertok(cmp_times(&now, &cmp, true)); 129 ut_assertok(cmp_times(&now, &cmp, true)); 135 if (now.tm_sec == 59) { 138 ut_asserteq(now.tm_sec + 1, cmp.tm_sec); 252 struct rtc_time now; local 258 ut_assertok(dm_rtc_get(dev, &now));
|
/u-boot/examples/api/ |
H A D | demo.c | 31 ulong start, now; local 71 now = ub_get_timer(start); 72 printf("\ntime: now %lu\n\n", now);
|
/u-boot/scripts/kconfig/ |
H A D | conf.c | 517 struct timeval now; local 525 gettimeofday(&now, NULL); 526 seed = (unsigned int)((now.tv_sec + 1) * (now.tv_usec + 1));
|
/u-boot/tools/buildman/ |
H A D | builder.py | 334 self._next_delay_update = datetime.now() 447 now = datetime.now() 448 self._timestamps.append(now) 455 if count > 1 and self._next_delay_update < now: 456 self._next_delay_update = now + timedelta(seconds=2) 1155 # We now have a list of image size changes sorted by arch 1204 the last call and what it sees now. 1785 self._start_time = datetime.now() 1821 duration = datetime.now() [all...] |