Home
last modified time | relevance | path

Searched refs:tp (Results 1 – 8 of 8) sorted by relevance

/kernel/
Dposix-timers.c172 struct timespec *tp) in common_clock_getres() argument
174 tp->tv_sec = 0; in common_clock_getres()
175 tp->tv_nsec = posix_clocks[which_clock].res; in common_clock_getres()
182 static int common_clock_get(clockid_t which_clock, struct timespec *tp) in common_clock_get() argument
184 ktime_get_real_ts(tp); in common_clock_get()
189 struct timespec *tp) in common_clock_set() argument
191 return do_sys_settimeofday(tp, NULL); in common_clock_set()
224 static int posix_ktime_get_ts(clockid_t which_clock, struct timespec *tp) in posix_ktime_get_ts() argument
226 ktime_get_ts(tp); in posix_ktime_get_ts()
233 static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec *tp) in posix_get_monotonic_raw() argument
[all …]
Dposix-cpu-timers.c52 timespec_to_sample(const clockid_t which_clock, const struct timespec *tp) in timespec_to_sample() argument
57 ret.sched = (unsigned long long)tp->tv_sec * NSEC_PER_SEC + tp->tv_nsec; in timespec_to_sample()
59 ret.cpu = timespec_to_cputime(tp); in timespec_to_sample()
66 struct timespec *tp) in sample_to_timespec() argument
69 *tp = ns_to_timespec(cpu.sched); in sample_to_timespec()
71 cputime_to_timespec(cpu.cpu, tp); in sample_to_timespec()
179 int posix_cpu_clock_getres(const clockid_t which_clock, struct timespec *tp) in posix_cpu_clock_getres() argument
183 tp->tv_sec = 0; in posix_cpu_clock_getres()
184 tp->tv_nsec = ((NSEC_PER_SEC + HZ - 1) / HZ); in posix_cpu_clock_getres()
191 tp->tv_nsec = 1; in posix_cpu_clock_getres()
[all …]
Dtimer.c1329 struct timespec tp; in do_sysinfo() local
1339 getnstimeofday(&tp); in do_sysinfo()
1340 tp.tv_sec += wall_to_monotonic.tv_sec; in do_sysinfo()
1341 tp.tv_nsec += wall_to_monotonic.tv_nsec; in do_sysinfo()
1342 monotonic_to_bootbased(&tp); in do_sysinfo()
1343 if (tp.tv_nsec - NSEC_PER_SEC >= 0) { in do_sysinfo()
1344 tp.tv_nsec = tp.tv_nsec - NSEC_PER_SEC; in do_sysinfo()
1345 tp.tv_sec++; in do_sysinfo()
1347 info->uptime = tp.tv_sec + (tp.tv_nsec ? 1 : 0); in do_sysinfo()
Dfutex_compat.c178 ktime_t t, *tp = NULL; in compat_sys_futex() local
192 tp = &t; in compat_sys_futex()
197 return do_futex(uaddr, op, val, tp, uaddr2, val2, val3); in compat_sys_futex()
Dprintk.c749 char tbuf[50], *tp; in vprintk() local
760 for (tp = tbuf; tp < tbuf + tlen; tp++) in vprintk()
761 emit_log_char(*tp); in vprintk()
Dcompat.c600 struct compat_timespec __user *tp) in compat_sys_clock_settime() argument
606 if (get_compat_timespec(&ts, tp)) in compat_sys_clock_settime()
617 struct compat_timespec __user *tp) in compat_sys_clock_gettime() argument
628 if (!err && put_compat_timespec(&ts, tp)) in compat_sys_clock_gettime()
634 struct compat_timespec __user *tp) in compat_sys_clock_getres() argument
645 if (!err && tp && put_compat_timespec(&ts, tp)) in compat_sys_clock_getres()
Dfutex.c2020 ktime_t t, *tp = NULL; in SYSCALL_DEFINE6() local
2034 tp = &t; in SYSCALL_DEFINE6()
2044 return do_futex(uaddr, op, val, tp, uaddr2, val2, val3); in SYSCALL_DEFINE6()
Dhrtimer.c1120 int hrtimer_get_res(const clockid_t which_clock, struct timespec *tp) in hrtimer_get_res() argument
1125 *tp = ktime_to_timespec(cpu_base->clock_base[which_clock].resolution); in hrtimer_get_res()