Home
last modified time | relevance | path

Searched refs:txc (Results 1 – 4 of 4) sorted by relevance

/kernel/time/
Dntp.c185 static inline void pps_fill_timex(struct timex *txc) in pps_fill_timex() argument
187 txc->ppsfreq = shift_right((pps_freq >> PPM_SCALE_INV_SHIFT) * in pps_fill_timex()
189 txc->jitter = pps_jitter; in pps_fill_timex()
191 txc->jitter /= NSEC_PER_USEC; in pps_fill_timex()
192 txc->shift = pps_shift; in pps_fill_timex()
193 txc->stabil = pps_stabil; in pps_fill_timex()
194 txc->jitcnt = pps_jitcnt; in pps_fill_timex()
195 txc->calcnt = pps_calcnt; in pps_fill_timex()
196 txc->errcnt = pps_errcnt; in pps_fill_timex()
197 txc->stbcnt = pps_stbcnt; in pps_fill_timex()
[all …]
Dtime.c216 struct timex txc; /* Local copy of parameter */ in SYSCALL_DEFINE1() local
223 if(copy_from_user(&txc, txc_p, sizeof(struct timex))) in SYSCALL_DEFINE1()
225 ret = do_adjtimex(&txc); in SYSCALL_DEFINE1()
226 return copy_to_user(txc_p, &txc, sizeof(struct timex)) ? -EFAULT : ret; in SYSCALL_DEFINE1()
Dtimekeeping.c1751 int do_adjtimex(struct timex *txc) in do_adjtimex() argument
1760 ret = ntp_validate_timex(txc); in do_adjtimex()
1764 if (txc->modes & ADJ_SETOFFSET) { in do_adjtimex()
1766 delta.tv_sec = txc->time.tv_sec; in do_adjtimex()
1767 delta.tv_nsec = txc->time.tv_usec; in do_adjtimex()
1768 if (!(txc->modes & ADJ_NANO)) in do_adjtimex()
1781 ret = __do_adjtimex(txc, &ts, &tai); in do_adjtimex()
/kernel/
Dcompat.c33 static int compat_get_timex(struct timex *txc, struct compat_timex __user *utp) in compat_get_timex() argument
35 memset(txc, 0, sizeof(struct timex)); in compat_get_timex()
38 __get_user(txc->modes, &utp->modes) || in compat_get_timex()
39 __get_user(txc->offset, &utp->offset) || in compat_get_timex()
40 __get_user(txc->freq, &utp->freq) || in compat_get_timex()
41 __get_user(txc->maxerror, &utp->maxerror) || in compat_get_timex()
42 __get_user(txc->esterror, &utp->esterror) || in compat_get_timex()
43 __get_user(txc->status, &utp->status) || in compat_get_timex()
44 __get_user(txc->constant, &utp->constant) || in compat_get_timex()
45 __get_user(txc->precision, &utp->precision) || in compat_get_timex()
[all …]