Lines Matching +full:conversion +full:- +full:interval

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
51 FEATURE(ffclock, "Feed-forward clock support");
59 * Feed-forward clock absolute time. This should be the preferred way to read
60 * the feed-forward clock for "wall-clock" type time. The flags allow to compose
64 * NOTE: use ffclock_convert_abs() to differ the conversion of a ffcounter value
96 bt->sec -= cest.leapsec_total; in ffclock_abstime()
98 bt->sec -= cest.leapsec; in ffclock_abstime()
108 ffdelta_error = ffc - cest.update_ffcount; in ffclock_abstime()
123 * Feed-forward difference clock. This should be the preferred way to convert a
124 * time interval in ffcounter values into a time interval in seconds. If a valid
125 * pointer is passed, an upper bound on the error in computing the time interval
151 * sysclock configuration variables. Feed-forward clock specific variables will
158 "Feed-forward clock configuration");
160 static char *sysclocks[] = {"feedback", "feed-forward"};
166 &ffclock_version, 0, "Feed-forward clock kernel version");
214 if (error != 0 || req->newptr == NULL) in sysctl_kern_sysclock_active()
221 MAX_SYSCLOCK_NAME_LEN - 1)) { in sysctl_kern_sysclock_active()
240 "Use reliable hardware timecounter as the feed-forward counter");
243 * High level functions to access the Feed-Forward Clock.
378 * the Feed-Forward Clock counter.
396 error = copyout(&ffcount, uap->ffcount, sizeof(ffcounter)); in sys_ffclock_getcounter()
402 * System call allowing the synchronisation daemon to push new feed-forward clock
425 if ((error = copyin(uap->cest, &cest, sizeof(struct ffclock_estimate))) in sys_ffclock_setestimate()
456 error = copyout(&cest, uap->cest, sizeof(struct ffclock_estimate)); in sys_ffclock_getestimate()