• Home
  • Raw
  • Download

Lines Matching refs:kc

501 	const struct k_clock *kc = clockid_to_kclock(which_clock);  in do_timer_create()  local
506 if (!kc) in do_timer_create()
508 if (!kc->timer_create) in do_timer_create()
525 new_timer->kclock = kc; in do_timer_create()
556 error = kc->timer_create(new_timer); in do_timer_create()
672 const struct k_clock *kc = timr->kclock; in common_timer_get() local
691 now = kc->clock_get_ktime(timr->it_clock); in common_timer_get()
698 timr->it_overrun += kc->timer_forward(timr, now); in common_timer_get()
700 remaining = kc->timer_remaining(timr, now); in common_timer_get()
718 const struct k_clock *kc; in do_timer_gettime() local
727 kc = timr->kclock; in do_timer_gettime()
728 if (WARN_ON_ONCE(!kc || !kc->timer_get)) in do_timer_gettime()
731 kc->timer_get(timr, setting); in do_timer_gettime()
842 const struct k_clock *kc = READ_ONCE(timer->kclock); in timer_wait_running() local
853 if (!WARN_ON_ONCE(!kc->timer_wait_running)) in timer_wait_running()
854 kc->timer_wait_running(timer); in timer_wait_running()
866 const struct k_clock *kc = timr->kclock; in common_timer_set() local
879 if (kc->timer_try_to_cancel(timr) < 0) in common_timer_set()
897 kc->timer_arm(timr, expires, flags & TIMER_ABSTIME, sigev_none); in common_timer_set()
906 const struct k_clock *kc; in do_timer_settime() local
923 kc = timr->kclock; in do_timer_settime()
924 if (WARN_ON_ONCE(!kc || !kc->timer_set)) in do_timer_settime()
927 error = kc->timer_set(timr, tmr_flags, new_spec64, old_spec64); in do_timer_settime()
989 const struct k_clock *kc = timer->kclock; in common_timer_del() local
992 if (kc->timer_try_to_cancel(timer) < 0) in common_timer_del()
1000 const struct k_clock *kc = timer->kclock; in timer_delete_hook() local
1002 if (WARN_ON_ONCE(!kc || !kc->timer_del)) in timer_delete_hook()
1004 return kc->timer_del(timer); in timer_delete_hook()
1110 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2() local
1113 if (!kc || !kc->clock_set) in SYSCALL_DEFINE2()
1119 return kc->clock_set(which_clock, &new_tp); in SYSCALL_DEFINE2()
1125 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2() local
1129 if (!kc) in SYSCALL_DEFINE2()
1132 error = kc->clock_get_timespec(which_clock, &kernel_tp); in SYSCALL_DEFINE2()
1142 const struct k_clock *kc = clockid_to_kclock(which_clock); in do_clock_adjtime() local
1144 if (!kc) in do_clock_adjtime()
1146 if (!kc->clock_adj) in do_clock_adjtime()
1149 return kc->clock_adj(which_clock, ktx); in do_clock_adjtime()
1172 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2() local
1176 if (!kc) in SYSCALL_DEFINE2()
1179 error = kc->clock_getres(which_clock, &rtn_tp); in SYSCALL_DEFINE2()
1192 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2() local
1195 if (!kc || !kc->clock_set) in SYSCALL_DEFINE2()
1201 return kc->clock_set(which_clock, &ts); in SYSCALL_DEFINE2()
1207 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2() local
1211 if (!kc) in SYSCALL_DEFINE2()
1214 err = kc->clock_get_timespec(which_clock, &ts); in SYSCALL_DEFINE2()
1243 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE2() local
1247 if (!kc) in SYSCALL_DEFINE2()
1250 err = kc->clock_getres(which_clock, &ts); in SYSCALL_DEFINE2()
1289 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE4() local
1292 if (!kc) in SYSCALL_DEFINE4()
1294 if (!kc->nsleep) in SYSCALL_DEFINE4()
1308 return kc->nsleep(which_clock, flags, &t); in SYSCALL_DEFINE4()
1317 const struct k_clock *kc = clockid_to_kclock(which_clock); in SYSCALL_DEFINE4() local
1320 if (!kc) in SYSCALL_DEFINE4()
1322 if (!kc->nsleep) in SYSCALL_DEFINE4()
1336 return kc->nsleep(which_clock, flags, &t); in SYSCALL_DEFINE4()