Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 22 of 22) sorted by relevance

/arch/sh/kernel/
Dtime.c27 static void null_rtc_get_time(struct timespec *tv) in null_rtc_get_time() argument
29 tv->tv_sec = mktime(2000, 1, 1, 0, 0, 0); in null_rtc_get_time()
30 tv->tv_nsec = 0; in null_rtc_get_time()
56 struct timespec tv; in get_rtc_time() local
58 rtc_sh_get_time(&tv); in get_rtc_time()
59 rtc_time_to_tm(tv.tv_sec, tm); in get_rtc_time()
/arch/um/os-Linux/
Dtime.c52 static inline long long timeval_to_ns(const struct timeval *tv) in timeval_to_ns() argument
54 return ((long long) tv->tv_sec * UM_NSEC_PER_SEC) + in timeval_to_ns()
55 tv->tv_usec * UM_NSEC_PER_USEC; in timeval_to_ns()
76 struct timeval tv; in os_nsecs() local
78 gettimeofday(&tv, NULL); in os_nsecs()
79 return timeval_to_ns(&tv); in os_nsecs()
139 struct timeval tv; in after_sleep_interval() local
156 tv = ((struct timeval) { .tv_sec = start_usecs / UM_USEC_PER_SEC, in after_sleep_interval()
158 interval = ((struct itimerval) { { 0, usec }, tv }); in after_sleep_interval()
/arch/x86/vdso/
Dvclock_gettime.c26 extern int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz);
54 notrace static long vdso_fallback_gtod(struct timeval *tv, struct timezone *tz) in vdso_fallback_gtod() argument
59 "0" (__NR_gettimeofday), "D" (tv), "S" (tz) : "memory"); in vdso_fallback_gtod()
150 notrace static long vdso_fallback_gtod(struct timeval *tv, struct timezone *tz) in vdso_fallback_gtod() argument
160 : "0" (__NR_gettimeofday), "g" (tv), "c" (tz) in vdso_fallback_gtod()
320 notrace int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument
322 if (likely(tv != NULL)) { in __vdso_gettimeofday()
323 if (unlikely(do_realtime((struct timespec *)tv) == VCLOCK_NONE)) in __vdso_gettimeofday()
324 return vdso_fallback_gtod(tv, tz); in __vdso_gettimeofday()
325 tv->tv_usec /= 1000; in __vdso_gettimeofday()
/arch/cris/arch-v10/kernel/
Dfasttimer.c115 inline void do_gettimeofday_fast(struct fasttime_t *tv) in do_gettimeofday_fast() argument
117 tv->tv_jiff = jiffies; in do_gettimeofday_fast()
118 tv->tv_usec = GET_JIFFIES_USEC(); in do_gettimeofday_fast()
366 struct fasttime_t tv; in timer1_handler() local
371 do_gettimeofday_fast(&tv); in timer1_handler()
373 tv.tv_jiff, tv.tv_usec)); in timer1_handler()
375 if (fasttime_cmp(&t->tv_expires, &tv) <= 0) in timer1_handler()
426 struct fasttime_t tv; in timer1_handler() local
428 do_gettimeofday_fast(&tv); in timer1_handler()
431 if (time_after_eq(t->tv_expires.tv_jiff, tv.tv_jiff)) in timer1_handler()
[all …]
/arch/mips/vdso/
Dgettimeofday.c28 register struct timeval *tv asm("a0") = _tv; in gettimeofday_fallback()
36 : "r" (tv), "r" (tz), "r" (nr) in gettimeofday_fallback()
200 int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument
208 return gettimeofday_fallback(tv, tz); in __vdso_gettimeofday()
210 if (tv) { in __vdso_gettimeofday()
211 tv->tv_sec = ts.tv_sec; in __vdso_gettimeofday()
212 tv->tv_usec = ts.tv_nsec / 1000; in __vdso_gettimeofday()
/arch/cris/arch-v32/kernel/
Dfasttimer.c105 inline void do_gettimeofday_fast(struct fasttime_t *tv) in do_gettimeofday_fast() argument
107 tv->tv_jiff = jiffies; in do_gettimeofday_fast()
108 tv->tv_usec = GET_JIFFIES_USEC(); in do_gettimeofday_fast()
358 struct fasttime_t tv; in timer_trig_handler() local
361 do_gettimeofday_fast(&tv); in timer_trig_handler()
363 "t: %is %06ius\n", tv.tv_jiff, tv.tv_usec)); in timer_trig_handler()
365 if (fasttime_cmp(&t->tv_expires, &tv) <= 0) { in timer_trig_handler()
408 struct fasttime_t tv; in timer_trig_handler() local
410 do_gettimeofday_fast(&tv); in timer_trig_handler()
413 if (time_after_eq(t->tv_expires.tv_jiff, tv.tv_jiff)) in timer_trig_handler()
[all …]
/arch/arm/vdso/
Dvgettimeofday.c233 register struct timeval *tv asm("r0") = _tv; in gettimeofday_fallback()
240 : "r" (tv), "r" (tz), "r" (nr) in gettimeofday_fallback()
246 notrace int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument
256 return gettimeofday_fallback(tv, tz); in __vdso_gettimeofday()
258 if (tv) { in __vdso_gettimeofday()
259 tv->tv_sec = ts.tv_sec; in __vdso_gettimeofday()
260 tv->tv_usec = ts.tv_nsec / 1000; in __vdso_gettimeofday()
/arch/tile/kernel/vdso/
Dvgettimeofday.c130 struct syscall_return_value __vdso_gettimeofday(struct timeval *tv, in __vdso_gettimeofday() argument
146 if (unlikely(tv == NULL)) in __vdso_gettimeofday()
149 do_realtime(vdso, (struct timespec *)tv); in __vdso_gettimeofday()
150 tv->tv_usec /= 1000; in __vdso_gettimeofday()
155 int gettimeofday(struct timeval *tv, struct timezone *tz)
/arch/x86/um/vdso/
Dum_vdso.c31 int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument
36 "0" (__NR_gettimeofday), "D" (tv), "S" (tz) : "memory"); in __vdso_gettimeofday()
/arch/arm/boot/dts/
Dsun5i-a10s-r7-tv-dongle.dts17 model = "R7 A10s hdmi tv-stick";
18 compatible = "allwinner,r7-tv-dongle", "allwinner,sun5i-a10s";
89 label = "r7-tv-dongle:green:usr";
Domap3-beagle-xm.dts140 label = "tv";
Domap3-beagle.dts135 label = "tv";
Domap3-n900.dts95 tv: connector { label
97 label = "tv";
Dexynos4.dtsi96 pd_tv: tv-power-domain@10023C20 {
DMakefile428 sun5i-a10s-r7-tv-dongle.dtb \
/arch/sh/boards/mach-sh03/
Drtc.c80 void sh03_rtc_gettimeofday(struct timespec *tv) in sh03_rtc_gettimeofday() argument
83 tv->tv_sec = get_cmos_time(); in sh03_rtc_gettimeofday()
84 tv->tv_nsec = 0; in sh03_rtc_gettimeofday()
/arch/xtensa/platforms/iss/include/platform/
Dsimcall.h106 struct timeval tv = { .tv_sec = 0, .tv_usec = 0 }; in simc_poll() local
108 return __simc(SYS_select_one, fd, XTISS_SELECT_ONE_READ, (int)&tv); in simc_poll()
/arch/um/drivers/
Ddaemon_user.c128 struct timeval tv; in daemon_user_init() local
140 gettimeofday(&tv, NULL); in daemon_user_init()
141 name.usecs = tv.tv_usec; in daemon_user_init()
/arch/alpha/kernel/
Dosf_sys.c996 SYSCALL_DEFINE2(osf_gettimeofday, struct timeval32 __user *, tv, in SYSCALL_DEFINE2() argument
999 if (tv) { in SYSCALL_DEFINE2()
1002 if (put_tv32(tv, &ktv)) in SYSCALL_DEFINE2()
1012 SYSCALL_DEFINE2(osf_settimeofday, struct timeval32 __user *, tv, in SYSCALL_DEFINE2() argument
1018 if (tv) { in SYSCALL_DEFINE2()
1019 if (get_tv32((struct timeval *)&kts, tv)) in SYSCALL_DEFINE2()
1029 return do_sys_settimeofday(tv ? &kts : NULL, tz ? &ktz : NULL); in SYSCALL_DEFINE2()
1070 struct timespec tv[2]; in SYSCALL_DEFINE2() local
1082 tv[0].tv_sec = ktvs[0].tv_sec; in SYSCALL_DEFINE2()
1083 tv[0].tv_nsec = 1000 * ktvs[0].tv_usec; in SYSCALL_DEFINE2()
[all …]
/arch/um/os-Linux/skas/
Dprocess.c490 struct timeval tv = { .tv_sec = 0, .tv_usec = UM_USEC_PER_SEC / UM_HZ }; in copy_context_skas0() local
505 { .it_value = tv, in copy_context_skas0()
506 .it_interval = tv }) }); in copy_context_skas0()
/arch/ia64/include/asm/
Dpal.h521 tv : 1, /* Target address member
558 tv : 1, /* Target address member
594 tv : 1, /* Target address member
654 tv : 1, /* Target address member
723 #define pmci_cache_target_address_valid pme_cache.tv
737 #define pmci_bus_target_address_valid pme_bus.tv
/arch/arm/mach-lpc32xx/
Dclock.c233 u32 tv, tmp = 0; in local_clk_pll_setup() local
244 tv = ffs(PllSetup->pll_p) - 1; in local_clk_pll_setup()
245 if ((!is_power_of_2(PllSetup->pll_p)) || (tv > 3)) in local_clk_pll_setup()
248 tmp |= LPC32XX_CLKPWR_HCLKPLL_POSTDIV_2POW(tv); in local_clk_pll_setup()