Lines Matching refs:kc
447 const struct k_clock *kc = clockid_to_kclock(which_clock); in do_timer_create() local
451 if (!kc) in do_timer_create()
453 if (!kc->timer_create) in do_timer_create()
475 new_timer->kclock = kc; in do_timer_create()
511 error = kc->timer_create(new_timer); in do_timer_create()
639 const struct k_clock *kc = timr->kclock; in common_timer_get() local
662 now = kc->clock_get_ktime(timr->it_clock); in common_timer_get()
670 timr->it_overrun += kc->timer_forward(timr, now); in common_timer_get()
672 remaining = kc->timer_remaining(timr, now); in common_timer_get()
698 const struct k_clock *kc; in do_timer_gettime() local
708 kc = timr->kclock; in do_timer_gettime()
709 if (WARN_ON_ONCE(!kc || !kc->timer_get)) in do_timer_gettime()
712 kc->timer_get(timr, setting); in do_timer_gettime()
840 const struct k_clock *kc = READ_ONCE(timer->kclock); in timer_wait_running() local
851 if (!WARN_ON_ONCE(!kc->timer_wait_running)) in timer_wait_running()
852 kc->timer_wait_running(timer); in timer_wait_running()
864 const struct k_clock *kc = timr->kclock; in common_timer_set() local
877 if (kc->timer_try_to_cancel(timr) < 0) in common_timer_set()
895 kc->timer_arm(timr, expires, flags & TIMER_ABSTIME, sigev_none); in common_timer_set()
904 const struct k_clock *kc; in do_timer_settime() local
921 kc = timr->kclock; in do_timer_settime()
922 if (WARN_ON_ONCE(!kc || !kc->timer_set)) in do_timer_settime()
925 error = kc->timer_set(timr, tmr_flags, new_spec64, old_spec64); in do_timer_settime()
987 const struct k_clock *kc = timer->kclock; in common_timer_del() local
990 if (kc->timer_try_to_cancel(timer) < 0) in common_timer_del()
998 const struct k_clock *kc = timer->kclock; in timer_delete_hook() local
1000 if (WARN_ON_ONCE(!kc || !kc->timer_del)) in timer_delete_hook()
1002 return kc->timer_del(timer); in timer_delete_hook()
1116 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2() local
1119 if (!kc || !kc->clock_set) in SYSCALL_DEFINE2()
1129 return kc->clock_set(which_clock, &new_tp); in SYSCALL_DEFINE2()
1135 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2() local
1139 if (!kc) in SYSCALL_DEFINE2()
1142 error = kc->clock_get_timespec(which_clock, &kernel_tp); in SYSCALL_DEFINE2()
1152 const struct k_clock *kc = clockid_to_kclock(which_clock); in do_clock_adjtime() local
1154 if (!kc) in do_clock_adjtime()
1156 if (!kc->clock_adj) in do_clock_adjtime()
1159 return kc->clock_adj(which_clock, ktx); in do_clock_adjtime()
1255 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2() local
1259 if (!kc) in SYSCALL_DEFINE2()
1262 error = kc->clock_getres(which_clock, &rtn_tp); in SYSCALL_DEFINE2()
1275 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2() local
1278 if (!kc || !kc->clock_set) in SYSCALL_DEFINE2()
1284 return kc->clock_set(which_clock, &ts); in SYSCALL_DEFINE2()
1290 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2() local
1294 if (!kc) in SYSCALL_DEFINE2()
1297 err = kc->clock_get_timespec(which_clock, &ts); in SYSCALL_DEFINE2()
1326 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2() local
1330 if (!kc) in SYSCALL_DEFINE2()
1333 err = kc->clock_getres(which_clock, &ts); in SYSCALL_DEFINE2()
1377 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE4() local
1380 if (!kc) in SYSCALL_DEFINE4()
1382 if (!kc->nsleep) in SYSCALL_DEFINE4()
1396 return kc->nsleep(which_clock, flags, &t); in SYSCALL_DEFINE4()
1405 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE4() local
1408 if (!kc) in SYSCALL_DEFINE4()
1410 if (!kc->nsleep) in SYSCALL_DEFINE4()
1424 return kc->nsleep(which_clock, flags, &t); in SYSCALL_DEFINE4()