/arch/sh/kernel/ |
D | time.c | 27 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/x86/entry/vdso/ |
D | vclock_gettime.c | 25 extern int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz); 49 notrace static long vdso_fallback_gtod(struct timeval *tv, struct timezone *tz) in vdso_fallback_gtod() argument 53 asm ("syscall" : "=a" (ret), "=m" (*tv), "=m" (*tz) : in vdso_fallback_gtod() 54 "0" (__NR_gettimeofday), "D" (tv), "S" (tz) : in vdso_fallback_gtod() 148 notrace static long vdso_fallback_gtod(struct timeval *tv, struct timezone *tz) in vdso_fallback_gtod() argument 157 : "=a" (ret), "=m" (*tv), "=m" (*tz) in vdso_fallback_gtod() 158 : "0" (__NR_gettimeofday), [tv] "g" (tv), "c" (tz) in vdso_fallback_gtod() 302 notrace int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument 304 if (likely(tv != NULL)) { in __vdso_gettimeofday() 305 if (unlikely(do_realtime((struct timespec *)tv) == VCLOCK_NONE)) in __vdso_gettimeofday() [all …]
|
/arch/cris/arch-v10/kernel/ |
D | fasttimer.c | 115 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/ |
D | gettimeofday.c | 29 register struct timeval *tv asm("a0") = _tv; in gettimeofday_fallback() 37 : "r" (tv), "r" (tz), "r" (nr) in gettimeofday_fallback() 224 int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument 232 return gettimeofday_fallback(tv, tz); in __vdso_gettimeofday() 234 if (tv) { in __vdso_gettimeofday() 235 tv->tv_sec = ts.tv_sec; in __vdso_gettimeofday() 236 tv->tv_usec = ts.tv_nsec / 1000; in __vdso_gettimeofday()
|
/arch/cris/arch-v32/kernel/ |
D | fasttimer.c | 105 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/ |
D | vgettimeofday.c | 233 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/ |
D | vgettimeofday.c | 130 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/ |
D | um_vdso.c | 31 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/um/os-Linux/ |
D | time.c | 21 static inline long long timeval_to_ns(const struct timeval *tv) in timeval_to_ns() argument 23 return ((long long) tv->tv_sec * UM_NSEC_PER_SEC) + in timeval_to_ns() 24 tv->tv_usec * UM_NSEC_PER_USEC; in timeval_to_ns()
|
/arch/sh/boards/mach-sh03/ |
D | rtc.c | 80 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/ |
D | simcall.h | 106 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/ |
D | daemon_user.c | 128 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/ |
D | osf_sys.c | 989 SYSCALL_DEFINE2(osf_gettimeofday, struct timeval32 __user *, tv, in SYSCALL_DEFINE2() argument 992 if (tv) { in SYSCALL_DEFINE2() 995 if (put_tv32(tv, &ktv)) in SYSCALL_DEFINE2() 1005 SYSCALL_DEFINE2(osf_settimeofday, struct timeval32 __user *, tv, in SYSCALL_DEFINE2() argument 1011 if (tv) { in SYSCALL_DEFINE2() 1012 if (get_tv32((struct timeval *)&kts, tv)) in SYSCALL_DEFINE2() 1021 return do_sys_settimeofday(tv ? &kts : NULL, tz ? &ktz : NULL); in SYSCALL_DEFINE2() 1062 struct timespec tv[2]; in SYSCALL_DEFINE2() local 1074 tv[0].tv_sec = ktvs[0].tv_sec; in SYSCALL_DEFINE2() 1075 tv[0].tv_nsec = 1000 * ktvs[0].tv_usec; in SYSCALL_DEFINE2() [all …]
|
/arch/arm/boot/dts/ |
D | sun5i-a10s-r7-tv-dongle.dts | 51 model = "R7 A10s hdmi tv-stick"; 52 compatible = "allwinner,r7-tv-dongle", "allwinner,sun5i-a10s"; 68 label = "r7-tv-dongle:green:usr";
|
D | sun5i-a10s-auxtek-t003.dts | 50 model = "Auxtek t003 A10s hdmi tv-stick"; 67 label = "t003-tv-dongle:red:usr";
|
D | sun5i-a10s-auxtek-t004.dts | 50 model = "Auxtek t004 A10s hdmi tv-stick"; 67 label = "t004-tv-dongle:red:usr";
|
D | omap3-pandora-common.dtsi | 30 tv: connector@1 { label 31 compatible = "connector-analog-tv"; 32 label = "tv";
|
D | omap3-beagle-xm.dts | 139 label = "tv";
|
D | omap3-cm-t3x.dtsi | 62 label = "tv";
|
D | omap3-devkit8000-common.dtsi | 114 label = "tv";
|
D | omap3-beagle.dts | 134 label = "tv";
|
D | omap3-gta04.dtsi | 111 label = "tv";
|
D | omap3-n900.dts | 116 tv: connector { label 118 label = "tv";
|
/arch/ia64/include/asm/ |
D | pal.h | 521 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/ |
D | clock.c | 233 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()
|