Lines Matching +full:tx1 +full:- +full:2

7  *	$ gcc adjtick.c -o adjtick -lrt
11 * the Free Software Foundation, either version 2 of the License, or
40 val = -val; in llabs()
66 return end_ns - start_ns; in diff_timespec()
90 tmp = (ts_to_nsec(start) + ts_to_nsec(end))/2; in get_monotonic_and_raw()
110 eppm = (delta1*MILLION)/delta2 - MILLION; in get_ppm_drift()
118 struct timex tx1; in check_tick_adj() local
120 tx1.modes = ADJ_TICK; in check_tick_adj()
121 tx1.modes |= ADJ_OFFSET; in check_tick_adj()
122 tx1.modes |= ADJ_FREQUENCY; in check_tick_adj()
123 tx1.modes |= ADJ_STATUS; in check_tick_adj()
125 tx1.status = STA_PLL; in check_tick_adj()
126 tx1.offset = 0; in check_tick_adj()
127 tx1.freq = 0; in check_tick_adj()
128 tx1.tick = tickval; in check_tick_adj()
130 adjtimex(&tx1); in check_tick_adj()
134 ppm = ((long long)tickval * MILLION)/systick - MILLION; in check_tick_adj()
141 tx1.modes = 0; in check_tick_adj()
142 adjtimex(&tx1); in check_tick_adj()
144 if (tx1.offset || tx1.freq || tx1.tick != tickval) { in check_tick_adj()
147 return -1; in check_tick_adj()
159 if (llabs(eppm - ppm) > 100) { in check_tick_adj()
161 return -1; in check_tick_adj()
172 struct timex tx1; in main() local
179 return -1; in main()
186 max = systick/10; /* +/- 10% */ in main()
189 for (tick = (systick - max); tick < (systick + max); tick += interval) { in main()
197 tx1.modes = ADJ_TICK; in main()
198 tx1.modes |= ADJ_OFFSET; in main()
199 tx1.modes |= ADJ_FREQUENCY; in main()
201 tx1.offset = 0; in main()
202 tx1.freq = 0; in main()
203 tx1.tick = systick; in main()
205 adjtimex(&tx1); in main()