Lines Matching refs:kc

461 	const struct k_clock *kc = clockid_to_kclock(which_clock);
466 if (!kc)
468 if (!kc->timer_create)
497 new_timer->kclock = kc;
536 error = kc->timer_create(new_timer);
678 const struct k_clock *kc = timr->kclock;
701 now = kc->clock_get_ktime(timr->it_clock);
709 timr->it_overrun += kc->timer_forward(timr, now);
711 remaining = kc->timer_remaining(timr, now);
854 * kc->timer_wait_running() might drop RCU lock. So @timer
880 const struct k_clock *kc = timr->kclock;
891 if (kc->timer_try_to_cancel(timr) < 0)
906 kc->timer_arm(timr, expires, flags & TIMER_ABSTIME, sigev_none);
994 const struct k_clock *kc = timer->kclock;
996 if (kc->timer_try_to_cancel(timer) < 0)
1111 const struct k_clock *kc = clockid_to_kclock(which_clock);
1114 if (!kc || !kc->clock_set)
1124 return kc->clock_set(which_clock, &new_tp);
1130 const struct k_clock *kc = clockid_to_kclock(which_clock);
1134 if (!kc)
1137 error = kc->clock_get_timespec(which_clock, &kernel_tp);
1147 const struct k_clock *kc = clockid_to_kclock(which_clock);
1149 if (!kc)
1151 if (!kc->clock_adj)
1154 return kc->clock_adj(which_clock, ktx);
1250 const struct k_clock *kc = clockid_to_kclock(which_clock);
1254 if (!kc)
1257 error = kc->clock_getres(which_clock, &rtn_tp);
1270 const struct k_clock *kc = clockid_to_kclock(which_clock);
1273 if (!kc || !kc->clock_set)
1279 return kc->clock_set(which_clock, &ts);
1285 const struct k_clock *kc = clockid_to_kclock(which_clock);
1289 if (!kc)
1292 err = kc->clock_get_timespec(which_clock, &ts);
1321 const struct k_clock *kc = clockid_to_kclock(which_clock);
1325 if (!kc)
1328 err = kc->clock_getres(which_clock, &ts);
1372 const struct k_clock *kc = clockid_to_kclock(which_clock);
1375 if (!kc)
1377 if (!kc->nsleep)
1391 return kc->nsleep(which_clock, flags, &t);
1400 const struct k_clock *kc = clockid_to_kclock(which_clock);
1403 if (!kc)
1405 if (!kc->nsleep)
1419 return kc->nsleep(which_clock, flags, &t);