• Home
  • Raw
  • Download

Lines Matching refs:which_clock

170 static int posix_get_realtime_timespec(clockid_t which_clock, struct timespec64 *tp)  in posix_get_realtime_timespec()  argument
176 static ktime_t posix_get_realtime_ktime(clockid_t which_clock) in posix_get_realtime_ktime() argument
182 static int posix_clock_realtime_set(const clockid_t which_clock, in posix_clock_realtime_set() argument
188 static int posix_clock_realtime_adj(const clockid_t which_clock, in posix_clock_realtime_adj() argument
197 static int posix_get_monotonic_timespec(clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_timespec() argument
204 static ktime_t posix_get_monotonic_ktime(clockid_t which_clock) in posix_get_monotonic_ktime() argument
212 static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_raw() argument
220 static int posix_get_realtime_coarse(clockid_t which_clock, struct timespec64 *tp) in posix_get_realtime_coarse() argument
226 static int posix_get_monotonic_coarse(clockid_t which_clock, in posix_get_monotonic_coarse() argument
234 static int posix_get_coarse_res(const clockid_t which_clock, struct timespec64 *tp) in posix_get_coarse_res() argument
240 static int posix_get_boottime_timespec(const clockid_t which_clock, struct timespec64 *tp) in posix_get_boottime_timespec() argument
247 static ktime_t posix_get_boottime_ktime(const clockid_t which_clock) in posix_get_boottime_ktime() argument
252 static int posix_get_tai_timespec(clockid_t which_clock, struct timespec64 *tp) in posix_get_tai_timespec() argument
258 static ktime_t posix_get_tai_ktime(clockid_t which_clock) in posix_get_tai_ktime() argument
263 static int posix_get_hrtimer_res(clockid_t which_clock, struct timespec64 *tp) in posix_get_hrtimer_res() argument
498 static int do_timer_create(clockid_t which_clock, struct sigevent *event, in do_timer_create() argument
501 const struct k_clock *kc = clockid_to_kclock(which_clock); in do_timer_create()
524 new_timer->it_clock = which_clock; in do_timer_create()
577 SYSCALL_DEFINE3(timer_create, const clockid_t, which_clock, in SYSCALL_DEFINE3() argument
586 return do_timer_create(which_clock, &event, created_timer_id); in SYSCALL_DEFINE3()
588 return do_timer_create(which_clock, NULL, created_timer_id); in SYSCALL_DEFINE3()
592 COMPAT_SYSCALL_DEFINE3(timer_create, clockid_t, which_clock, in COMPAT_SYSCALL_DEFINE3() argument
601 return do_timer_create(which_clock, &event, created_timer_id); in COMPAT_SYSCALL_DEFINE3()
603 return do_timer_create(which_clock, NULL, created_timer_id); in COMPAT_SYSCALL_DEFINE3()
1107 SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument
1110 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2()
1119 return kc->clock_set(which_clock, &new_tp); in SYSCALL_DEFINE2()
1122 SYSCALL_DEFINE2(clock_gettime, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument
1125 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2()
1132 error = kc->clock_get_timespec(which_clock, &kernel_tp); in SYSCALL_DEFINE2()
1140 int do_clock_adjtime(const clockid_t which_clock, struct __kernel_timex * ktx) in do_clock_adjtime() argument
1142 const struct k_clock *kc = clockid_to_kclock(which_clock); in do_clock_adjtime()
1149 return kc->clock_adj(which_clock, ktx); in do_clock_adjtime()
1152 SYSCALL_DEFINE2(clock_adjtime, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument
1161 err = do_clock_adjtime(which_clock, &ktx); in SYSCALL_DEFINE2()
1169 SYSCALL_DEFINE2(clock_getres, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument
1172 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2()
1179 error = kc->clock_getres(which_clock, &rtn_tp); in SYSCALL_DEFINE2()
1189 SYSCALL_DEFINE2(clock_settime32, clockid_t, which_clock, in SYSCALL_DEFINE2() argument
1192 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2()
1201 return kc->clock_set(which_clock, &ts); in SYSCALL_DEFINE2()
1204 SYSCALL_DEFINE2(clock_gettime32, clockid_t, which_clock, in SYSCALL_DEFINE2() argument
1207 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2()
1214 err = kc->clock_get_timespec(which_clock, &ts); in SYSCALL_DEFINE2()
1222 SYSCALL_DEFINE2(clock_adjtime32, clockid_t, which_clock, in SYSCALL_DEFINE2() argument
1232 err = do_clock_adjtime(which_clock, &ktx); in SYSCALL_DEFINE2()
1240 SYSCALL_DEFINE2(clock_getres_time32, clockid_t, which_clock, in SYSCALL_DEFINE2() argument
1243 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2()
1250 err = kc->clock_getres(which_clock, &ts); in SYSCALL_DEFINE2()
1262 static int common_nsleep(const clockid_t which_clock, int flags, in common_nsleep() argument
1269 which_clock); in common_nsleep()
1272 static int common_nsleep_timens(const clockid_t which_clock, int flags, in common_nsleep_timens() argument
1278 texp = timens_ktime_to_host(which_clock, texp); in common_nsleep_timens()
1282 which_clock); in common_nsleep_timens()
1285 SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags, in SYSCALL_DEFINE4() argument
1289 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE4()
1308 return kc->nsleep(which_clock, flags, &t); in SYSCALL_DEFINE4()
1313 SYSCALL_DEFINE4(clock_nanosleep_time32, clockid_t, which_clock, int, flags, in SYSCALL_DEFINE4() argument
1317 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE4()
1336 return kc->nsleep(which_clock, flags, &t); in SYSCALL_DEFINE4()