Lines Matching refs:tx
40 int clock_adjtime(clockid_t id, struct timex *tx) in clock_adjtime() argument
42 return syscall(__NR_clock_adjtime, id, tx); in clock_adjtime()
49 struct timex tx; in clear_time_state() local
52 tx.modes = ADJ_STATUS; in clear_time_state()
53 tx.status = 0; in clear_time_state()
54 ret = adjtimex(&tx); in clear_time_state()
115 struct timex tx; in validate_freq() local
121 memset(&tx, 0, sizeof(struct timex)); in validate_freq()
127 tx.modes = ADJ_FREQUENCY; in validate_freq()
128 tx.freq = valid_freq[i]; in validate_freq()
130 ret = adjtimex(&tx); in validate_freq()
138 tx.modes = 0; in validate_freq()
139 ret = adjtimex(&tx); in validate_freq()
140 if (tx.freq != valid_freq[i]) { in validate_freq()
142 tx.freq, valid_freq[i]); in validate_freq()
146 tx.modes = ADJ_FREQUENCY; in validate_freq()
147 tx.freq = outofrange_freq[i]; in validate_freq()
149 ret = adjtimex(&tx); in validate_freq()
157 tx.modes = 0; in validate_freq()
158 ret = adjtimex(&tx); in validate_freq()
159 if (tx.freq == outofrange_freq[i]) { in validate_freq()
162 tx.freq); in validate_freq()
171 tx.modes = ADJ_FREQUENCY; in validate_freq()
172 tx.freq = invalid_freq[i]; in validate_freq()
173 ret = adjtimex(&tx); in validate_freq()
187 tx.modes = ADJ_FREQUENCY; in validate_freq()
188 tx.freq = 0; in validate_freq()
189 ret = adjtimex(&tx); in validate_freq()