| /rk3399_rockchip-uboot/arch/arm/mach-omap2/ |
| H A D | timer.c | 59 unsigned long now, last = readl(&timer_base->tcrr); in __udelay() local 62 now = readl(&timer_base->tcrr); in __udelay() 63 if (last > now) /* count up timer overflow */ in __udelay() 64 tmo -= TIMER_OVERFLOW_VAL - last + now + 1; in __udelay() 66 tmo -= now - last; in __udelay() 67 last = now; in __udelay() 74 ulong now = readl(&timer_base->tcrr) / (TIMER_CLOCK / CONFIG_SYS_HZ); in get_timer_masked() local 76 if (now >= gd->arch.lastinc) { /* normal mode (non roll) */ in get_timer_masked() 78 gd->arch.tbl += (now - gd->arch.lastinc); in get_timer_masked() 81 CONFIG_SYS_HZ)) - gd->arch.lastinc) + now; in get_timer_masked() [all …]
|
| /rk3399_rockchip-uboot/arch/arm/cpu/armv7/sunxi/ |
| H A D | timer.c | 67 ulong now = TICKS_TO_HZ(read_timer()); in get_timer_masked() local 69 if (now >= gd->arch.lastinc) /* normal (non rollover) */ in get_timer_masked() 70 gd->arch.tbl += (now - gd->arch.lastinc); in get_timer_masked() 74 - gd->arch.lastinc) + now; in get_timer_masked() 76 gd->arch.lastinc = now; in get_timer_masked() 85 ulong now, last = read_timer(); in __udelay() local 88 now = read_timer(); in __udelay() 89 if (now > last) /* normal (non rollover) */ in __udelay() 90 tmo -= now - last; in __udelay() 92 tmo -= TIMER_LOAD_VAL - last + now; in __udelay() [all …]
|
| /rk3399_rockchip-uboot/arch/nds32/cpu/n1213/ag101/ |
| H A D | timer.c | 97 ulong now = readl(&tmr->timer3_counter) / (TIMER_CLOCK / CONFIG_SYS_HZ); in get_timer_masked() local 99 ulong now = readl(&tmr->timer3_counter) / in get_timer_masked() local 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() 156 unsigned long now, last = readl(&tmr->timer3_counter); in __udelay() local 160 now = readl(&tmr->timer3_counter); in __udelay() 161 if (now > last) /* count down timer overflow */ in __udelay() [all …]
|
| /rk3399_rockchip-uboot/board/armltd/integrator/ |
| H A D | timer.c | 124 unsigned long long now = READ_TIMER; in get_timer_masked() local 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() 135 now = total_count; in get_timer_masked() 136 do_div(now, div_timer); in get_timer_masked() 137 timestamp = now; in get_timer_masked()
|
| /rk3399_rockchip-uboot/drivers/rtc/ |
| H A D | ftrtc010.c | 78 unsigned long now; in rtc_get() local 84 now = (ftrtc010_time() + readl(&rtc->record)) / RTC_DIV_COUNT; in rtc_get() 86 now = ftrtc010_time() + readl(&rtc->record); in rtc_get() 89 rtc_to_tm(now, tmp); in rtc_get() 100 unsigned long now; in rtc_set() local 109 now = ftrtc010_time(); in rtc_set() 111 debug("%s(): write %lx to record register\n", __func__, new - now); in rtc_set() 113 writel(new - now, &rtc->record); in rtc_set()
|
| H A D | i2c_rtc_emul.c | 81 struct rtc_time now; in reset_time() local 83 os_localtime(&now); in reset_time() 84 plat->base_time = rtc_mktime(&now); in reset_time() 93 long now; in sandbox_i2c_rtc_get() local 97 now = rtc_mktime(&tm_now); in sandbox_i2c_rtc_get() 99 now = plat->base_time; in sandbox_i2c_rtc_get() 102 return rtc_to_tm(now + plat->offset, time); in sandbox_i2c_rtc_get() 109 long now; in sandbox_i2c_rtc_set() local 113 now = rtc_mktime(&tm_now); in sandbox_i2c_rtc_set() 115 now = plat->base_time; in sandbox_i2c_rtc_set() [all …]
|
| H A D | imxdi.c | 185 unsigned long now; in rtc_get() local 194 now = __raw_readl(&data.regs->dtcmr); in rtc_get() 195 rtc_to_tm(now, tmp); in rtc_get() 203 unsigned long now; in rtc_set() local 212 now = rtc_mktime(tmp); in rtc_set() 216 rc = DI_WRITE_WAIT(now, dtcmr); in rtc_set()
|
| /rk3399_rockchip-uboot/drivers/watchdog/ |
| H A D | tangier_wdt.c | 32 unsigned long now; in hw_watchdog_reset() local 35 now = timer_get_us(); in hw_watchdog_reset() 37 now = rdtsc() / 1000; in hw_watchdog_reset() 40 if (last > now) in hw_watchdog_reset() 43 if (unlikely((now - last) > (WDT_PRETIMEOUT / 2) * 1000000)) { in hw_watchdog_reset() 44 last = now; in hw_watchdog_reset()
|
| /rk3399_rockchip-uboot/arch/arm/mach-at91/arm920t/ |
| H A D | timer.c | 70 u32 now; in get_timer_raw() local 72 now = readl(&tc->tc[0].cv) & 0x0000ffff; in get_timer_raw() 74 if (now >= gd->arch.lastinc) { in get_timer_raw() 76 gd->arch.tbl += now - gd->arch.lastinc; in get_timer_raw() 79 gd->arch.tbl += now + TIMER_LOAD_VAL - gd->arch.lastinc; in get_timer_raw() 81 gd->arch.lastinc = now; in get_timer_raw() 104 u32 now = get_timer_raw(); in udelay_masked() local 105 diff = endtime - now; in udelay_masked()
|
| /rk3399_rockchip-uboot/arch/arm/cpu/arm926ejs/mxs/ |
| H A D | timer.c | 85 uint32_t now; in get_ticks() local 90 now = readl(&timrot_regs->hw_timrot_timcount0) >> in get_ticks() 93 now = readl(&timrot_regs->hw_timrot_running_count0); in get_ticks() 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()
|
| /rk3399_rockchip-uboot/arch/m68k/lib/ |
| H A D | time.c | 37 uint start, now, tmp; in __udelay() local 54 start = now = timerp->tcn; in __udelay() 55 while (now < start + tmp) in __udelay() 56 now = timerp->tcn; in __udelay() 157 unsigned short now, diff; in get_timer() local 160 now = timerp->pcntr; in get_timer() 161 diff = -(now - lastinc); in get_timer() 164 lastinc = now; in get_timer()
|
| /rk3399_rockchip-uboot/arch/arm/cpu/arm920t/ep93xx/ |
| H A D | timer.c | 44 const unsigned long now = TIMER_MAX_VAL - readl(&timer_regs->timer3.value); in read_timer() local 46 if (now >= timer.last_read) in read_timer() 47 timer.ticks += now - timer.last_read; in read_timer() 50 timer.ticks += TIMER_MAX_VAL - timer.last_read + now; in read_timer() 52 timer.last_read = now; in read_timer()
|
| /rk3399_rockchip-uboot/arch/arm/cpu/armv7/ls102xa/ |
| H A D | timer.c | 84 unsigned long long now; in get_ticks() local 86 asm("mrrc p15, 0, %Q0, %R0, c14" : "=r" (now)); in get_ticks() 88 gd->arch.tbl = (unsigned long)(now & 0xffffffff); in get_ticks() 89 gd->arch.tbu = (unsigned long)(now >> 32); in get_ticks() 91 return now; in get_ticks()
|
| /rk3399_rockchip-uboot/arch/arm/mach-imx/ |
| H A D | syscounter.c | 83 unsigned long long now; in get_ticks() local 85 asm("mrrc p15, 0, %Q0, %R0, c14" : "=r" (now)); in get_ticks() 87 gd->arch.tbl = (unsigned long)(now & 0xffffffff); in get_ticks() 88 gd->arch.tbu = (unsigned long)(now >> 32); in get_ticks() 90 return now; in get_ticks()
|
| /rk3399_rockchip-uboot/arch/arm/mach-stm32/stm32f4/ |
| H A D | timer.c | 79 u32 now; in get_ticks() local 81 now = readl(&tim->cnt); in get_ticks() 83 if (now >= gd->arch.lastinc) in get_ticks() 84 gd->arch.tbl += (now - gd->arch.lastinc); in get_ticks() 86 gd->arch.tbl += (0xFFFFFFFF - gd->arch.lastinc) + now; in get_ticks() 88 gd->arch.lastinc = now; in get_ticks()
|
| /rk3399_rockchip-uboot/arch/arm/mach-stm32/stm32f7/ |
| H A D | timer.c | 77 ulong now = READ_TIMER(); in get_timer_masked() local 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()
|
| /rk3399_rockchip-uboot/arch/arm/cpu/armv7/stv0991/ |
| H A D | timer.c | 79 ulong now = READ_TIMER(); in get_timer_masked() local 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()
|
| /rk3399_rockchip-uboot/arch/arm/cpu/armv7m/ |
| H A D | systick-timer.c | 101 u32 now = read_timer(); in get_ticks() local 103 if (now >= gd->arch.lastinc) in get_ticks() 104 gd->arch.tbl += (now - gd->arch.lastinc); in get_ticks() 106 gd->arch.tbl += (TIMER_MAX_VAL - gd->arch.lastinc) + now; in get_ticks() 108 gd->arch.lastinc = now; in get_ticks()
|
| /rk3399_rockchip-uboot/arch/arm/cpu/arm926ejs/spear/ |
| H A D | timer.c | 88 ulong now = READ_TIMER(); in get_timer_masked() local 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()
|
| /rk3399_rockchip-uboot/test/dm/ |
| H A D | rtc.c | 57 struct rtc_time now, time, cmp; in dm_test_rtc_set_get() local 62 ut_assertok(dm_rtc_get(dev, &now)); in dm_test_rtc_set_get() 95 ut_assertok(cmp_times(&now, &cmp, true)); in dm_test_rtc_set_get() 101 ut_assertok(cmp_times(&now, &cmp, true)); in dm_test_rtc_set_get() 107 if (now.tm_sec == 59) { in dm_test_rtc_set_get() 110 ut_asserteq(now.tm_sec + 1, cmp.tm_sec); in dm_test_rtc_set_get() 122 struct rtc_time now; in dm_test_rtc_reset() local 127 ut_assertok(dm_rtc_get(dev, &now)); in dm_test_rtc_reset()
|
| /rk3399_rockchip-uboot/arch/m68k/cpu/mcf547x_8x/ |
| H A D | slicetimer.c | 31 u32 now, freq; in __udelay() local 41 now = in_be32(&timerp->cnt); in __udelay() 42 while (now != 0) in __udelay() 43 now = in_be32(&timerp->cnt); in __udelay()
|
| /rk3399_rockchip-uboot/arch/arm/cpu/arm926ejs/mx27/ |
| H A D | timer.c | 114 ulong now = readl(®s->gpt_tcn); /* current tick value */ in get_ticks() local 116 if (now >= lastinc) { in get_ticks() 121 timestamp += (now - lastinc); in get_ticks() 124 timestamp += (0xFFFFFFFF - lastinc) + now; in get_ticks() 126 lastinc = now; in get_ticks()
|
| /rk3399_rockchip-uboot/arch/arm/mach-orion5x/ |
| H A D | timer.c | 84 ulong now = read_timer(); in get_timer_masked() local 86 if (lastdec >= now) { in get_timer_masked() 88 timestamp += lastdec - now; in get_timer_masked() 92 (TIMER_LOAD_VAL / (CONFIG_SYS_TCLK / 1000)) - now; in get_timer_masked() 94 lastdec = now; in get_timer_masked()
|
| /rk3399_rockchip-uboot/lib/lzma/ |
| H A D | history.txt | 74 - C++ LZMA code now is just wrapper over ANSI-C code. 86 - now it supports BCJ and BCJ2 filters 87 - now it supports files larger than 4 GB. 88 - now it supports "Last Write Time" field for files. 125 - LZMA now can use only these match finders: HC4, BT2, BT3, BT4 137 - -fb switch now supports values up to 273 149 ISequentialInStream::Read now works as old ReadPart 150 ISequentialOutStream::Write now works as old WritePart 184 - ANSI-C LZMA Decoder now can decompress files larger than 4 GB 203 - Speed optimization of ANSI-C LZMA Decoder (now it's about 20% faster). [all …]
|
| /rk3399_rockchip-uboot/arch/arm/cpu/armv7/s5p-common/ |
| H A D | timer.c | 69 ulong now = timer_get_us_down(); in get_timer() local 76 gd->arch.timer_reset_value += gd->arch.lastinc - now; in get_timer() 77 gd->arch.lastinc = now; in get_timer()
|