Lines Matching defs:timehands
68 struct timehands {
82 struct timehands *th_next;
85 static struct timehands ths[16] = {
95 static struct timehands *volatile timehands = &ths[0];
109 * system uptime. The timehands track boot time, but it changes when the system
132 &timehands_count, 0, "Count of timehands in rotation");
202 * Return the difference between the timehands' counter value now and what
203 * was when we copied it to the timehands' offset_count.
206 tc_delta(struct timehands *th)
234 * the timehands that we operated on was not updated under our feet. See
241 struct timehands *th;
247 th = timehands;
261 _Static_assert(_Generic(((struct timehands *)NULL)->member, \
263 "struct timehands member is not of struct bintime type"); \
264 bintime_off(dst, __offsetof(struct timehands, member)); \
270 struct timehands *th;
274 th = timehands;
283 __typeof(((struct timehands *)NULL)->member): 1, \
285 "*dst and struct timehands member have different types"); \
286 getthmember(dst, sizeof(*dst), __offsetof(struct timehands, \
504 * by the timehands mechanism but kept independent from it. *_windup() functions
562 tc = timehands->th_counter;
775 ffclock_change_tc(struct timehands *th)
900 struct timehands *th;
909 th = timehands;
1050 struct timehands *th;
1066 th = timehands;
1260 return (timehands->th_counter->tc_frequency);
1344 recalculate_scaling_factor_and_large_delta(struct timehands *th)
1356 * Initialize the next struct timehands in the ring and make
1357 * it the active timehands. Along the way we might switch to a different
1365 struct timehands *th, *tho;
1371 * Make the next timehands a copy of the current one, but do
1379 tho = timehands;
1384 memcpy(th, tho, offsetof(struct timehands, th_generation));
1469 * Now that the struct timehands is again consistent, set the new
1476 /* Go live with the new struct timehands. */
1492 timehands = th;
1530 * The vdso timehands update is deferred until the next
1763 struct timehands *th;
1767 th = timehands;
1780 struct timehands *capth;
1972 /* Set up the requested number of timehands. */
1976 struct timehands *thp;
1994 SYSINIT(timehands, SI_SUB_TUNABLES, SI_ORDER_ANY, inittimehands, NULL);
2054 tc = timehands->th_counter;
2190 struct timehands *th;
2193 th = timehands;
2213 struct timehands *th;
2216 th = timehands;
2241 struct timehands *th;
2245 th = timehands;
2256 db_printf("timehands adj %#jx scale %#jx ldelta %d off_cnt %d gen %d\n",