Lines Matching defs:txc

2832 static int timekeeping_validate_timex(const struct __kernel_timex *txc, bool aux_clock)
2834 if (txc->modes & ADJ_ADJTIME) {
2836 if (!(txc->modes & ADJ_OFFSET_SINGLESHOT))
2838 if (!(txc->modes & ADJ_OFFSET_READONLY) &&
2843 if (txc->modes && !capable(CAP_SYS_TIME))
2849 if (txc->modes & ADJ_TICK &&
2850 (txc->tick < 900000/USER_HZ ||
2851 txc->tick > 1100000/USER_HZ))
2855 if (txc->modes & ADJ_SETOFFSET) {
2868 if (txc->time.tv_usec < 0)
2871 if (txc->modes & ADJ_NANO) {
2872 if (txc->time.tv_usec >= NSEC_PER_SEC)
2875 if (txc->time.tv_usec >= USEC_PER_SEC)
2884 if ((txc->modes & ADJ_FREQUENCY) && (BITS_PER_LONG == 64)) {
2885 if (LLONG_MIN / PPM_SCALE > txc->freq)
2887 if (LLONG_MAX / PPM_SCALE < txc->freq)
2893 if (txc->modes & ADJ_STATUS &&
2894 txc->status & (STA_INS | STA_DEL))
2898 if (txc->modes & ADJ_TAI)
2902 if (txc->modes & ADJ_STATUS &&
2903 txc->status & (STA_PPSFREQ | STA_PPSTIME))
2931 static int __do_adjtimex(struct tk_data *tkd, struct __kernel_timex *txc,
2941 ret = timekeeping_validate_timex(txc, aux_clock);
2944 add_device_randomness(txc, sizeof(*txc));
2958 if (txc->modes & ADJ_SETOFFSET) {
2959 result->delta.tv_sec = txc->time.tv_sec;
2960 result->delta.tv_nsec = txc->time.tv_usec;
2961 if (!(txc->modes & ADJ_NANO))
2970 ret = ntp_adjtimex(tks->id, txc, &ts, &tai, &result->ad);
2981 if (txc->modes & (ADJ_FREQUENCY | ADJ_TICK))
2989 * @txc: Pointer to kernel_timex structure containing NTP parameters
2991 int do_adjtimex(struct __kernel_timex *txc)
2996 ret = __do_adjtimex(&tk_core, txc, &result);
3000 if (txc->modes & ADJ_SETOFFSET)
3205 static int aux_clock_adj(const clockid_t id, struct __kernel_timex *txc)
3217 return __do_adjtimex(aux_tkd, txc, &result);