Lines Matching refs:tx
43 int clock_adjtime(clockid_t id, struct timex *tx) in clock_adjtime() argument
45 return syscall(__NR_clock_adjtime, id, tx); in clock_adjtime()
52 struct timex tx; in clear_time_state() local
55 tx.modes = ADJ_STATUS; in clear_time_state()
56 tx.status = 0; in clear_time_state()
57 ret = adjtimex(&tx); in clear_time_state()
116 struct timex tx; in validate_freq() local
122 memset(&tx, 0, sizeof(struct timex)); in validate_freq()
128 tx.modes = ADJ_FREQUENCY; in validate_freq()
129 tx.freq = valid_freq[i]; in validate_freq()
131 ret = adjtimex(&tx); in validate_freq()
139 tx.modes = 0; in validate_freq()
140 ret = adjtimex(&tx); in validate_freq()
141 if (tx.freq != valid_freq[i]) { in validate_freq()
143 tx.freq, valid_freq[i]); in validate_freq()
147 tx.modes = ADJ_FREQUENCY; in validate_freq()
148 tx.freq = outofrange_freq[i]; in validate_freq()
150 ret = adjtimex(&tx); in validate_freq()
158 tx.modes = 0; in validate_freq()
159 ret = adjtimex(&tx); in validate_freq()
160 if (tx.freq == outofrange_freq[i]) { in validate_freq()
163 tx.freq); in validate_freq()
172 tx.modes = ADJ_FREQUENCY; in validate_freq()
173 tx.freq = invalid_freq[i]; in validate_freq()
174 ret = adjtimex(&tx); in validate_freq()
188 tx.modes = ADJ_FREQUENCY; in validate_freq()
189 tx.freq = 0; in validate_freq()
190 ret = adjtimex(&tx); in validate_freq()