Lines Matching refs:txc

2575 static int timekeeping_validate_timex(const struct __kernel_timex *txc, bool aux_clock)
2577 if (txc->modes & ADJ_ADJTIME) {
2579 if (!(txc->modes & ADJ_OFFSET_SINGLESHOT))
2581 if (!(txc->modes & ADJ_OFFSET_READONLY) &&
2586 if (txc->modes && !capable(CAP_SYS_TIME))
2592 if (txc->modes & ADJ_TICK &&
2593 (txc->tick < 900000/USER_HZ ||
2594 txc->tick > 1100000/USER_HZ))
2598 if (txc->modes & ADJ_SETOFFSET) {
2611 if (txc->time.tv_usec < 0)
2614 if (txc->modes & ADJ_NANO) {
2615 if (txc->time.tv_usec >= NSEC_PER_SEC)
2618 if (txc->time.tv_usec >= USEC_PER_SEC)
2627 if ((txc->modes & ADJ_FREQUENCY) && (BITS_PER_LONG == 64)) {
2628 if (LLONG_MIN / PPM_SCALE > txc->freq)
2630 if (LLONG_MAX / PPM_SCALE < txc->freq)
2636 if (txc->status & (STA_INS | STA_DEL))
2640 if (txc->modes & ADJ_TAI)
2644 if (txc->status & (STA_PPSFREQ | STA_PPSTIME))
2672 static int __do_adjtimex(struct tk_data *tkd, struct __kernel_timex *txc,
2682 ret = timekeeping_validate_timex(txc, aux_clock);
2685 add_device_randomness(txc, sizeof(*txc));
2699 if (txc->modes & ADJ_SETOFFSET) {
2700 result->delta.tv_sec = txc->time.tv_sec;
2701 result->delta.tv_nsec = txc->time.tv_usec;
2702 if (!(txc->modes & ADJ_NANO))
2711 ret = ntp_adjtimex(tks->id, txc, &ts, &tai, &result->ad);
2722 if (txc->modes & (ADJ_FREQUENCY | ADJ_TICK))
2730 * @txc: Pointer to kernel_timex structure containing NTP parameters
2732 int do_adjtimex(struct __kernel_timex *txc)
2737 ret = __do_adjtimex(&tk_core, txc, &result);
2741 if (txc->modes & ADJ_SETOFFSET)
2946 static int aux_clock_adj(const clockid_t id, struct __kernel_timex *txc)
2958 return __do_adjtimex(aux_tkd, txc, &result);