Lines Matching refs:kc
448 const struct k_clock *kc = clockid_to_kclock(which_clock); in do_timer_create() local
452 if (!kc) in do_timer_create()
454 if (!kc->timer_create) in do_timer_create()
476 new_timer->kclock = kc; in do_timer_create()
512 error = kc->timer_create(new_timer); in do_timer_create()
640 const struct k_clock *kc = timr->kclock; in common_timer_get() local
663 now = kc->clock_get_ktime(timr->it_clock); in common_timer_get()
671 timr->it_overrun += kc->timer_forward(timr, now); in common_timer_get()
673 remaining = kc->timer_remaining(timr, now); in common_timer_get()
699 const struct k_clock *kc; in do_timer_gettime() local
709 kc = timr->kclock; in do_timer_gettime()
710 if (WARN_ON_ONCE(!kc || !kc->timer_get)) in do_timer_gettime()
713 kc->timer_get(timr, setting); in do_timer_gettime()
841 const struct k_clock *kc = READ_ONCE(timer->kclock); in timer_wait_running() local
852 if (!WARN_ON_ONCE(!kc->timer_wait_running)) in timer_wait_running()
853 kc->timer_wait_running(timer); in timer_wait_running()
882 const struct k_clock *kc = timr->kclock; in common_timer_set() local
895 if (kc->timer_try_to_cancel(timr) < 0) in common_timer_set()
910 kc->timer_arm(timr, expires, flags & TIMER_ABSTIME, sigev_none); in common_timer_set()
919 const struct k_clock *kc; in do_timer_settime() local
939 kc = timr->kclock; in do_timer_settime()
940 if (WARN_ON_ONCE(!kc || !kc->timer_set)) in do_timer_settime()
943 error = kc->timer_set(timr, tmr_flags, new_spec64, old_spec64); in do_timer_settime()
1005 const struct k_clock *kc = timer->kclock; in common_timer_del() local
1008 if (kc->timer_try_to_cancel(timer) < 0) in common_timer_del()
1016 const struct k_clock *kc = timer->kclock; in timer_delete_hook() local
1018 if (WARN_ON_ONCE(!kc || !kc->timer_del)) in timer_delete_hook()
1020 return kc->timer_del(timer); in timer_delete_hook()
1131 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2() local
1134 if (!kc || !kc->clock_set) in SYSCALL_DEFINE2()
1144 return kc->clock_set(which_clock, &new_tp); in SYSCALL_DEFINE2()
1150 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2() local
1154 if (!kc) in SYSCALL_DEFINE2()
1157 error = kc->clock_get_timespec(which_clock, &kernel_tp); in SYSCALL_DEFINE2()
1167 const struct k_clock *kc = clockid_to_kclock(which_clock); in do_clock_adjtime() local
1169 if (!kc) in do_clock_adjtime()
1171 if (!kc->clock_adj) in do_clock_adjtime()
1174 return kc->clock_adj(which_clock, ktx); in do_clock_adjtime()
1270 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2() local
1274 if (!kc) in SYSCALL_DEFINE2()
1277 error = kc->clock_getres(which_clock, &rtn_tp); in SYSCALL_DEFINE2()
1290 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2() local
1293 if (!kc || !kc->clock_set) in SYSCALL_DEFINE2()
1299 return kc->clock_set(which_clock, &ts); in SYSCALL_DEFINE2()
1305 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2() local
1309 if (!kc) in SYSCALL_DEFINE2()
1312 err = kc->clock_get_timespec(which_clock, &ts); in SYSCALL_DEFINE2()
1341 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2() local
1345 if (!kc) in SYSCALL_DEFINE2()
1348 err = kc->clock_getres(which_clock, &ts); in SYSCALL_DEFINE2()
1392 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE4() local
1395 if (!kc) in SYSCALL_DEFINE4()
1397 if (!kc->nsleep) in SYSCALL_DEFINE4()
1411 return kc->nsleep(which_clock, flags, &t); in SYSCALL_DEFINE4()
1420 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE4() local
1423 if (!kc) in SYSCALL_DEFINE4()
1425 if (!kc->nsleep) in SYSCALL_DEFINE4()
1439 return kc->nsleep(which_clock, flags, &t); in SYSCALL_DEFINE4()