Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 139) sorted by relevance

123456

/u-boot/arch/arm/mach-omap2/
A Dtimer.c63 unsigned long now, last = readl(&timer_base->tcrr); in __udelay() local
66 now = readl(&timer_base->tcrr); in __udelay()
67 if (last > now) /* count up timer overflow */ in __udelay()
68 tmo -= TIMER_OVERFLOW_VAL - last + now + 1; in __udelay()
70 tmo -= now - last; in __udelay()
71 last = now; in __udelay()
78 ulong now = readl(&timer_base->tcrr) / (TIMER_CLOCK / CONFIG_SYS_HZ); in get_timer_masked() local
80 if (now >= gd->arch.lastinc) { /* normal mode (non roll) */ in get_timer_masked()
82 gd->arch.tbl += (now - gd->arch.lastinc); in get_timer_masked()
85 CONFIG_SYS_HZ)) - gd->arch.lastinc) + now; in get_timer_masked()
[all …]
/u-boot/arch/arm/cpu/armv7/sunxi/
A Dtimer.c65 ulong now = TICKS_TO_HZ(read_timer()); in get_timer_masked() local
67 if (now >= gd->arch.lastinc) /* normal (non rollover) */ in get_timer_masked()
68 gd->arch.tbl += (now - gd->arch.lastinc); in get_timer_masked()
72 - gd->arch.lastinc) + now; in get_timer_masked()
74 gd->arch.lastinc = now; in get_timer_masked()
88 ulong now, last = read_timer(); in __udelay() local
91 now = read_timer(); in __udelay()
92 if (now > last) /* normal (non rollover) */ in __udelay()
93 tmo -= now - last; in __udelay()
95 tmo -= TIMER_LOAD_VAL - last + now; in __udelay()
[all …]
/u-boot/arch/nds32/cpu/n1213/ag101/
A Dtimer.c103 ulong now = readl(&tmr->timer3_counter) / in get_timer_masked() local
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()
160 unsigned long now, last = readl(&tmr->timer3_counter); in __udelay() local
164 now = readl(&tmr->timer3_counter); in __udelay()
165 if (now > last) /* count down timer overflow */ in __udelay()
166 tmo -= TIMER_LOAD_VAL + last - now; in __udelay()
168 tmo -= last - now; in __udelay()
[all …]
/u-boot/board/armltd/integrator/
A Dtimer.c104 unsigned long long now = READ_TIMER; in get_timer_masked() local
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()
115 now = total_count; in get_timer_masked()
116 do_div(now, div_timer); in get_timer_masked()
117 timestamp = now; in get_timer_masked()
/u-boot/drivers/rtc/
A Dftrtc010.c78 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()
A Di2c_rtc_emul.c80 struct rtc_time now; in reset_time() local
82 os_localtime(&now); in reset_time()
83 plat->base_time = rtc_mktime(&now); in reset_time()
92 long now; in sandbox_i2c_rtc_get() local
96 now = rtc_mktime(&tm_now); in sandbox_i2c_rtc_get()
98 now = plat->base_time; in sandbox_i2c_rtc_get()
101 rtc_to_tm(now + plat->offset, time); in sandbox_i2c_rtc_get()
110 long now; in sandbox_i2c_rtc_set() local
114 now = rtc_mktime(&tm_now); in sandbox_i2c_rtc_set()
116 now = plat->base_time; in sandbox_i2c_rtc_set()
[all …]
A Demul_rtc.c32 u64 now; in emul_rtc_get() local
34 now = timer_get_us() + priv->offset_us; in emul_rtc_get()
35 do_div(now, 1000000); in emul_rtc_get()
36 rtc_to_tm(now, time); in emul_rtc_get()
A Dimxdi.c183 unsigned long now; in rtc_get() local
192 now = __raw_readl(&data.regs->dtcmr); in rtc_get()
193 rtc_to_tm(now, tmp); in rtc_get()
201 unsigned long now; in rtc_set() local
210 now = rtc_mktime(tmp); in rtc_set()
214 rc = DI_WRITE_WAIT(now, dtcmr); in rtc_set()
/u-boot/arch/arm/mach-at91/arm920t/
A Dtimer.c63 u32 now; in get_timer_raw() local
65 now = readl(&tc->tc[0].cv) & 0x0000ffff; in get_timer_raw()
67 if (now >= gd->arch.lastinc) { in get_timer_raw()
69 gd->arch.tbl += now - gd->arch.lastinc; in get_timer_raw()
72 gd->arch.tbl += now + TIMER_LOAD_VAL - gd->arch.lastinc; in get_timer_raw()
74 gd->arch.lastinc = now; in get_timer_raw()
102 u32 now = get_timer_raw(); in __udelay() local
103 diff = endtime - now; in __udelay()
/u-boot/arch/arm/cpu/arm926ejs/mxs/
A Dtimer.c88 uint32_t now; in get_ticks() local
93 now = readl(&timrot_regs->hw_timrot_timcount0) >> in get_ticks()
96 now = readl(&timrot_regs->hw_timrot_running_count0); in get_ticks()
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/armv7/ls102xa/
A Dtimer.c87 unsigned long long now; in get_ticks() local
89 asm("mrrc p15, 0, %Q0, %R0, c14" : "=r" (now)); in get_ticks()
91 gd->arch.tbl = (unsigned long)(now & 0xffffffff); in get_ticks()
92 gd->arch.tbu = (unsigned long)(now >> 32); in get_ticks()
94 return now; in get_ticks()
/u-boot/arch/arm/cpu/arm920t/ep93xx/
A Dtimer.c46 const unsigned long now = TIMER_MAX_VAL - readl(&timer_regs->timer3.value); in read_timer() local
48 if (now >= timer.last_read) in read_timer()
49 timer.ticks += now - timer.last_read; in read_timer()
52 timer.ticks += TIMER_MAX_VAL - timer.last_read + now; in read_timer()
54 timer.last_read = now; in read_timer()
/u-boot/arch/arm/mach-imx/
A Dsyscounter.c88 unsigned long long now; in get_ticks() local
90 asm volatile("mrrc p15, 0, %Q0, %R0, c14" : "=r" (now)); in get_ticks()
92 gd->arch.tbl = (unsigned long)(now & 0xffffffff); in get_ticks()
93 gd->arch.tbu = (unsigned long)(now >> 32); in get_ticks()
95 return now; in get_ticks()
/u-boot/arch/arm/cpu/armv7/stv0991/
A Dtimer.c84 ulong now = READ_TIMER(); in get_timer_masked() local
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/armv7m/
A Dsystick-timer.c104 u32 now = read_timer(); in get_ticks() local
106 if (now >= gd->arch.lastinc) in get_ticks()
107 gd->arch.tbl += (now - gd->arch.lastinc); in get_ticks()
109 gd->arch.tbl += (TIMER_MAX_VAL - gd->arch.lastinc) + now; in get_ticks()
111 gd->arch.lastinc = now; in get_ticks()
/u-boot/arch/arm/cpu/arm926ejs/spear/
A Dtimer.c94 ulong now = READ_TIMER(); in get_timer_masked() local
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/m68k/cpu/mcf547x_8x/
A Dslicetimer.c34 u32 now, freq; in __udelay() local
44 now = in_be32(&timerp->cnt); in __udelay()
45 while (now != 0) in __udelay()
46 now = in_be32(&timerp->cnt); in __udelay()
/u-boot/arch/arm/cpu/arm926ejs/mx27/
A Dtimer.c118 ulong now = readl(&regs->gpt_tcn); /* current tick value */ in get_ticks() local
120 if (now >= lastinc) { in get_ticks()
125 timestamp += (now - lastinc); in get_ticks()
128 timestamp += (0xFFFFFFFF - lastinc) + now; in get_ticks()
130 lastinc = now; in get_ticks()
/u-boot/arch/m68k/lib/
A Dtime.c41 uint start, now, tmp; in __udelay() local
58 start = now = timerp->tcn; in __udelay()
59 while (now < start + tmp) in __udelay()
60 now = timerp->tcn; in __udelay()
/u-boot/arch/arm/mach-orion5x/
A Dtimer.c87 ulong now = read_timer(); in get_timer_masked() local
89 if (lastdec >= now) { in get_timer_masked()
91 timestamp += lastdec - now; in get_timer_masked()
95 (TIMER_LOAD_VAL / (CONFIG_SYS_TCLK / 1000)) - now; in get_timer_masked()
97 lastdec = now; in get_timer_masked()
/u-boot/arch/arm/cpu/armv7/vf610/
A Dtimer.c54 ulong now = TIMER_LOAD_VAL - __raw_readl(&cur_pit->cval1); in get_ticks() local
57 if (now < gd->arch.tbl) in get_ticks()
59 gd->arch.tbl = now; in get_ticks()
/u-boot/arch/arm/mach-nexell/
A Dtimer.c196 unsigned long now = timer_read(base, ch); /* current tick value */ in get_timer_masked() local
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()
282 unsigned long now = get_timer_masked(); in udelay_masked() local
284 diff = endtime - now; in udelay_masked()
/u-boot/arch/arm/cpu/armv7/s5p-common/
A Dtimer.c73 ulong now = timer_get_us_down(); in get_timer() local
80 gd->arch.timer_reset_value += gd->arch.lastinc - now; in get_timer()
81 gd->arch.lastinc = now; in get_timer()
/u-boot/arch/arm/cpu/arm926ejs/armada100/
A Dtimer.c71 ulong now = read_timer(); in get_timer_masked() local
73 if (now >= gd->arch.tbl) { in get_timer_masked()
75 gd->arch.tbu += now - gd->arch.tbl; in get_timer_masked()
78 gd->arch.tbu += now + TIMER_LOAD_VAL - gd->arch.tbl; in get_timer_masked()
80 gd->arch.tbl = now; in get_timer_masked()
/u-boot/lib/lzma/
A Dhistory.txt74 - 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
204 Old version of LZMA Decoder now is in file LzmaDecodeSize.c.
[all …]

Completed in 38 milliseconds

123456