Lines Matching refs:txc
2342 static int timekeeping_validate_timex(const struct __kernel_timex *txc) in timekeeping_validate_timex() argument
2344 if (txc->modes & ADJ_ADJTIME) { in timekeeping_validate_timex()
2346 if (!(txc->modes & ADJ_OFFSET_SINGLESHOT)) in timekeeping_validate_timex()
2348 if (!(txc->modes & ADJ_OFFSET_READONLY) && in timekeeping_validate_timex()
2353 if (txc->modes && !capable(CAP_SYS_TIME)) in timekeeping_validate_timex()
2359 if (txc->modes & ADJ_TICK && in timekeeping_validate_timex()
2360 (txc->tick < 900000/USER_HZ || in timekeeping_validate_timex()
2361 txc->tick > 1100000/USER_HZ)) in timekeeping_validate_timex()
2365 if (txc->modes & ADJ_SETOFFSET) { in timekeeping_validate_timex()
2378 if (txc->time.tv_usec < 0) in timekeeping_validate_timex()
2381 if (txc->modes & ADJ_NANO) { in timekeeping_validate_timex()
2382 if (txc->time.tv_usec >= NSEC_PER_SEC) in timekeeping_validate_timex()
2385 if (txc->time.tv_usec >= USEC_PER_SEC) in timekeeping_validate_timex()
2394 if ((txc->modes & ADJ_FREQUENCY) && (BITS_PER_LONG == 64)) { in timekeeping_validate_timex()
2395 if (LLONG_MIN / PPM_SCALE > txc->freq) in timekeeping_validate_timex()
2397 if (LLONG_MAX / PPM_SCALE < txc->freq) in timekeeping_validate_timex()
2422 int do_adjtimex(struct __kernel_timex *txc) in do_adjtimex() argument
2433 ret = timekeeping_validate_timex(txc); in do_adjtimex()
2436 add_device_randomness(txc, sizeof(*txc)); in do_adjtimex()
2438 if (txc->modes & ADJ_SETOFFSET) { in do_adjtimex()
2440 delta.tv_sec = txc->time.tv_sec; in do_adjtimex()
2441 delta.tv_nsec = txc->time.tv_usec; in do_adjtimex()
2442 if (!(txc->modes & ADJ_NANO)) in do_adjtimex()
2460 ret = __do_adjtimex(txc, &ts, &tai, &ad); in do_adjtimex()
2475 if (txc->modes & (ADJ_FREQUENCY | ADJ_TICK)) in do_adjtimex()