/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/um/os-Linux/ |
D | time.c | 52 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/sparc/include/asm/ |
D | timer_32.h | 18 BTFIXUPDEF_CALL(int, bus_do_settimeofday, struct timespec *tv) 19 #define bus_do_settimeofday(tv) BTFIXUP_CALL(bus_do_settimeofday)(tv) argument
|
/arch/x86/vdso/ |
D | vclock_gettime.c | 73 notrace static long vdso_fallback_gtod(struct timeval *tv, struct timezone *tz) in vdso_fallback_gtod() argument 78 "0" (__NR_gettimeofday), "D" (tv), "S" (tz) : "memory"); in vdso_fallback_gtod() 179 notrace int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument 183 if (likely(tv != NULL)) { in __vdso_gettimeofday() 186 sizeof(*tv) != sizeof(struct timespec)); in __vdso_gettimeofday() 187 ret = do_realtime((struct timespec *)tv); in __vdso_gettimeofday() 188 tv->tv_usec /= 1000; in __vdso_gettimeofday() 197 return vdso_fallback_gtod(tv, tz); in __vdso_gettimeofday()
|
/arch/cris/arch-v32/kernel/ |
D | fasttimer.c | 104 inline void do_gettimeofday_fast(struct fasttime_t *tv) in do_gettimeofday_fast() argument 106 tv->tv_jiff = jiffies; in do_gettimeofday_fast() 107 tv->tv_usec = GET_JIFFIES_USEC(); in do_gettimeofday_fast() 357 struct fasttime_t tv; in timer_trig_handler() local 360 do_gettimeofday_fast(&tv); in timer_trig_handler() 362 "t: %is %06ius\n", tv.tv_jiff, tv.tv_usec)); in timer_trig_handler() 364 if (fasttime_cmp(&t->tv_expires, &tv) <= 0) { in timer_trig_handler() 407 struct fasttime_t tv; in timer_trig_handler() local 409 do_gettimeofday_fast(&tv); in timer_trig_handler() 412 if (time_after_eq(t->tv_expires.tv_jiff, tv.tv_jiff)) in timer_trig_handler() [all …]
|
/arch/cris/arch-v10/kernel/ |
D | fasttimer.c | 116 inline void do_gettimeofday_fast(struct fasttime_t *tv) in do_gettimeofday_fast() argument 118 tv->tv_jiff = jiffies; in do_gettimeofday_fast() 119 tv->tv_usec = GET_JIFFIES_USEC(); in do_gettimeofday_fast() 367 struct fasttime_t tv; in timer1_handler() local 372 do_gettimeofday_fast(&tv); in timer1_handler() 374 tv.tv_jiff, tv.tv_usec)); in timer1_handler() 376 if (fasttime_cmp(&t->tv_expires, &tv) <= 0) in timer1_handler() 427 struct fasttime_t tv; in timer1_handler() local 429 do_gettimeofday_fast(&tv); in timer1_handler() 432 if (time_after_eq(t->tv_expires.tv_jiff, tv.tv_jiff)) in timer1_handler() [all …]
|
/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/arm/mach-clps711x/ |
D | common.c | 204 struct timespec tv; in clps711x_timer_init() local 215 tv.tv_nsec = 0; in clps711x_timer_init() 216 tv.tv_sec = clps_readl(RTCDR); in clps711x_timer_init() 217 do_settimeofday(&tv); in clps711x_timer_init()
|
/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/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 | 840 SYSCALL_DEFINE2(osf_gettimeofday, struct timeval32 __user *, tv, in SYSCALL_DEFINE2() argument 843 if (tv) { in SYSCALL_DEFINE2() 846 if (put_tv32(tv, &ktv)) in SYSCALL_DEFINE2() 856 SYSCALL_DEFINE2(osf_settimeofday, struct timeval32 __user *, tv, in SYSCALL_DEFINE2() argument 862 if (tv) { in SYSCALL_DEFINE2() 863 if (get_tv32((struct timeval *)&kts, tv)) in SYSCALL_DEFINE2() 873 return do_sys_settimeofday(tv ? &kts : NULL, tz ? &ktz : NULL); in SYSCALL_DEFINE2() 914 struct timespec tv[2]; in SYSCALL_DEFINE2() local 926 tv[0].tv_sec = ktvs[0].tv_sec; in SYSCALL_DEFINE2() 927 tv[0].tv_nsec = 1000 * ktvs[0].tv_usec; in SYSCALL_DEFINE2() [all …]
|
/arch/mips/kernel/ |
D | kspd.c | 205 struct timeval tv; in sp_work_handle_request() local 252 if ((ret.retval = sp_syscall(__NR_gettimeofday, (int)&tv, in sp_work_handle_request() 254 ret.retval = tv.tv_sec; in sp_work_handle_request()
|
/arch/xtensa/platforms/iss/ |
D | console.c | 115 struct timeval tv = { .tv_sec = 0, .tv_usec = 0 }; in rs_poll() local 121 while (__simc(SYS_select_one, 0, XTISS_SELECT_ONE_READ, (int)&tv,0,0)){ in rs_poll()
|
D | network.c | 148 struct timeval tv = { .tv_sec = 0, .tv_usec = 0 }; in simc_poll() local 150 return __simc(SYS_select_one, fd, XTISS_SELECT_ONE_READ, (int)&tv,0,0); in simc_poll()
|
/arch/um/os-Linux/skas/ |
D | process.c | 482 struct timeval tv = { .tv_sec = 0, .tv_usec = UM_USEC_PER_SEC / UM_HZ }; in copy_context_skas0() local 497 { .it_value = tv, in copy_context_skas0() 498 .it_interval = tv }) }); in copy_context_skas0()
|
/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()
|