Lines Matching full:txc
2471 static int timekeeping_validate_timex(const struct __kernel_timex *txc) in timekeeping_validate_timex() argument
2473 if (txc->modes & ADJ_ADJTIME) { in timekeeping_validate_timex()
2475 if (!(txc->modes & ADJ_OFFSET_SINGLESHOT)) in timekeeping_validate_timex()
2477 if (!(txc->modes & ADJ_OFFSET_READONLY) && in timekeeping_validate_timex()
2482 if (txc->modes && !capable(CAP_SYS_TIME)) in timekeeping_validate_timex()
2488 if (txc->modes & ADJ_TICK && in timekeeping_validate_timex()
2489 (txc->tick < 900000/USER_HZ || in timekeeping_validate_timex()
2490 txc->tick > 1100000/USER_HZ)) in timekeeping_validate_timex()
2494 if (txc->modes & ADJ_SETOFFSET) { in timekeeping_validate_timex()
2507 if (txc->time.tv_usec < 0) in timekeeping_validate_timex()
2510 if (txc->modes & ADJ_NANO) { in timekeeping_validate_timex()
2511 if (txc->time.tv_usec >= NSEC_PER_SEC) in timekeeping_validate_timex()
2514 if (txc->time.tv_usec >= USEC_PER_SEC) in timekeeping_validate_timex()
2523 if ((txc->modes & ADJ_FREQUENCY) && (BITS_PER_LONG == 64)) { in timekeeping_validate_timex()
2524 if (LLONG_MIN / PPM_SCALE > txc->freq) in timekeeping_validate_timex()
2526 if (LLONG_MAX / PPM_SCALE < txc->freq) in timekeeping_validate_timex()
2550 * @txc: Pointer to kernel_timex structure containing NTP parameters
2552 int do_adjtimex(struct __kernel_timex *txc) in do_adjtimex() argument
2564 ret = timekeeping_validate_timex(txc); in do_adjtimex()
2567 add_device_randomness(txc, sizeof(*txc)); in do_adjtimex()
2569 if (txc->modes & ADJ_SETOFFSET) { in do_adjtimex()
2571 delta.tv_sec = txc->time.tv_sec; in do_adjtimex()
2572 delta.tv_nsec = txc->time.tv_usec; in do_adjtimex()
2573 if (!(txc->modes & ADJ_NANO)) in do_adjtimex()
2592 ret = __do_adjtimex(txc, &ts, &tai, &ad); in do_adjtimex()
2607 if (txc->modes & (ADJ_FREQUENCY | ADJ_TICK)) in do_adjtimex()