Lines Matching refs:tp

55 timespec_to_sample(const clockid_t which_clock, const struct timespec *tp)  in timespec_to_sample()  argument
61 ret = (unsigned long long)tp->tv_sec * NSEC_PER_SEC + tp->tv_nsec; in timespec_to_sample()
63 ret = cputime_to_expires(timespec_to_cputime(tp)); in timespec_to_sample()
70 struct timespec *tp) in sample_to_timespec() argument
73 *tp = ns_to_timespec(expires); in sample_to_timespec()
75 cputime_to_timespec((__force cputime_t)expires, tp); in sample_to_timespec()
144 posix_cpu_clock_getres(const clockid_t which_clock, struct timespec *tp) in posix_cpu_clock_getres() argument
148 tp->tv_sec = 0; in posix_cpu_clock_getres()
149 tp->tv_nsec = ((NSEC_PER_SEC + HZ - 1) / HZ); in posix_cpu_clock_getres()
156 tp->tv_nsec = 1; in posix_cpu_clock_getres()
163 posix_cpu_clock_set(const clockid_t which_clock, const struct timespec *tp) in posix_cpu_clock_set() argument
289 struct timespec *tp) in posix_cpu_clock_get_task() argument
303 sample_to_timespec(which_clock, rtn, tp); in posix_cpu_clock_get_task()
309 static int posix_cpu_clock_get(const clockid_t which_clock, struct timespec *tp) in posix_cpu_clock_get() argument
319 err = posix_cpu_clock_get_task(current, which_clock, tp); in posix_cpu_clock_get()
329 err = posix_cpu_clock_get_task(p, which_clock, tp); in posix_cpu_clock_get()
1446 struct timespec *tp) in process_cpu_clock_getres() argument
1448 return posix_cpu_clock_getres(PROCESS_CLOCK, tp); in process_cpu_clock_getres()
1451 struct timespec *tp) in process_cpu_clock_get() argument
1453 return posix_cpu_clock_get(PROCESS_CLOCK, tp); in process_cpu_clock_get()
1471 struct timespec *tp) in thread_cpu_clock_getres() argument
1473 return posix_cpu_clock_getres(THREAD_CLOCK, tp); in thread_cpu_clock_getres()
1476 struct timespec *tp) in thread_cpu_clock_get() argument
1478 return posix_cpu_clock_get(THREAD_CLOCK, tp); in thread_cpu_clock_get()