Searched refs:tv (Results 1 – 4 of 4) sorted by relevance
/kernel/ |
D | time.c | 84 struct timespec tv; in SYSCALL_DEFINE1() local 87 if (get_user(tv.tv_sec, tptr)) in SYSCALL_DEFINE1() 90 tv.tv_nsec = 0; in SYSCALL_DEFINE1() 92 err = security_settime(&tv, NULL); in SYSCALL_DEFINE1() 96 do_settimeofday(&tv); in SYSCALL_DEFINE1() 102 SYSCALL_DEFINE2(gettimeofday, struct timeval __user *, tv, in SYSCALL_DEFINE2() argument 105 if (likely(tv != NULL)) { in SYSCALL_DEFINE2() 108 if (copy_to_user(tv, &ktv, sizeof(ktv))) in SYSCALL_DEFINE2() 155 int do_sys_settimeofday(struct timespec *tv, struct timezone *tz) in do_sys_settimeofday() argument 160 if (tv && !timespec_valid(tv)) in do_sys_settimeofday() [all …]
|
D | compat.c | 54 asmlinkage long compat_sys_gettimeofday(struct compat_timeval __user *tv, in compat_sys_gettimeofday() argument 57 if (tv) { in compat_sys_gettimeofday() 60 if (compat_put_timeval(tv, &ktv)) in compat_sys_gettimeofday() 71 asmlinkage long compat_sys_settimeofday(struct compat_timeval __user *tv, in compat_sys_settimeofday() argument 77 if (tv) { in compat_sys_settimeofday() 78 if (compat_get_timeval(&kts, tv)) in compat_sys_settimeofday() 86 return do_sys_settimeofday(tv ? &kts : NULL, tz ? &ktz : NULL); in compat_sys_settimeofday() 892 struct timeval tv; in compat_sys_time() local 894 do_gettimeofday(&tv); in compat_sys_time() 895 i = tv.tv_sec; in compat_sys_time() [all …]
|
D | timer.c | 803 static int cascade(struct tvec_base *base, struct tvec *tv, int index) in cascade() argument 809 list_replace_init(tv->vec + index, &tv_list); in cascade()
|
/kernel/time/ |
D | timekeeping.c | 127 void do_gettimeofday(struct timeval *tv) in do_gettimeofday() argument 132 tv->tv_sec = now.tv_sec; in do_gettimeofday() 133 tv->tv_usec = now.tv_nsec/1000; in do_gettimeofday() 143 int do_settimeofday(struct timespec *tv) in do_settimeofday() argument 148 if ((unsigned long)tv->tv_nsec >= NSEC_PER_SEC) in do_settimeofday() 155 ts_delta.tv_sec = tv->tv_sec - xtime.tv_sec; in do_settimeofday() 156 ts_delta.tv_nsec = tv->tv_nsec - xtime.tv_nsec; in do_settimeofday() 159 xtime = *tv; in do_settimeofday()
|