Lines Matching defs:timecounter

51  * Implement a dummy timecounter which we can use until we get a real one
57 dummy_get_timecount(struct timecounter *tc)
64 static struct timecounter dummy_timecounter = {
70 struct timecounter *th_counter;
96 struct timecounter *timecounter = &dummy_timecounter;
97 static struct timecounter *timecounters = &dummy_timecounter;
99 /* Mutex to protect the timecounter list. */
119 SYSCTL_NODE(_kern, OID_AUTO, timecounter, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
185 struct timecounter *tc = arg1;
195 struct timecounter *tc = arg1;
208 struct timecounter *tc;
505 * have some connection to avoid accessing the timecounter hardware more than
551 * kick started and uses the timecounter nominal frequency as a first period
559 struct timecounter *tc;
765 * Adjust the fftimehands when the timecounter is changed. Stating the obvious,
779 struct timecounter *tc;
1177 * Initialize a new timecounter and possibly use it.
1180 tc_init(struct timecounter *tc)
1208 "timecounter description", "timecounter");
1215 "current timecounter value");
1219 "timecounter frequency");
1230 * chosen. Never automatically use a timecounter with negative quality.
1232 * worse since this timecounter may not be monotonic.
1243 if (tc->tc_quality < timecounter->tc_quality)
1245 if (tc->tc_quality == timecounter->tc_quality &&
1246 tc->tc_frequency < timecounter->tc_frequency)
1250 timecounter = tc;
1255 /* Report the frequency of the current timecounter. */
1358 * timecounter and/or do seconds processing in NTP. Slightly magic.
1364 struct timecounter *tc;
1389 * Capture a timecounter delta on the current timecounter and if
1390 * changing timecounters, a counter value from the new timecounter.
1393 tc = atomic_load_ptr(&timecounter);
1496 /* Report or change the active timecounter hardware. */
1501 struct timecounter *newtc, *tc;
1505 tc = timecounter;
1524 /* Warm up new timecounter. */
1527 timecounter = newtc;
1547 /* Report the available timecounter hardware. */
1552 struct timecounter *tc;
1764 struct timecounter *tc;
1781 struct timecounter *captc;
1809 /* If the timecounter was wound up underneath us, bail out. */
1848 * If the timecounter changed, we cannot compare the count values, so
1979 TUNABLE_INT_FETCH("kern.timecounter.timehands_count",
1989 TUNABLE_STR_FETCH("kern.timecounter.hardware", tc_from_tunable,
2027 /* warm up new timecounter (again) and get rolling. */
2028 (void)timecounter->tc_get_timecount(timecounter);
2034 SYSINIT(timecounter, SI_SUB_CLOCKS, SI_ORDER_SECOND, inittimecounter, NULL);
2047 struct timecounter *tc;
2239 DB_SHOW_COMMAND(timecounter, db_show_timecounter)
2242 struct timecounter *tc;
2251 db_printf("timecounter %p %s\n", tc, tc->tc_name);