Lines Matching refs:user_ntv
269 struct user64_ntptimeval user_ntv = {}; in ntp_gettime() local
270 user_ntv.time.tv_sec = ntv.time.tv_sec; in ntp_gettime()
271 user_ntv.time.tv_nsec = ntv.time.tv_nsec; in ntp_gettime()
272 user_ntv.maxerror = ntv.maxerror; in ntp_gettime()
273 user_ntv.esterror = ntv.esterror; in ntp_gettime()
274 user_ntv.tai = ntv.tai; in ntp_gettime()
275 user_ntv.time_state = ntv.time_state; in ntp_gettime()
276 error = copyout(&user_ntv, uap->ntvp, sizeof(user_ntv)); in ntp_gettime()
278 struct user32_ntptimeval user_ntv = {}; in ntp_gettime() local
279 user_ntv.time.tv_sec = (user32_long_t)ntv.time.tv_sec; in ntp_gettime()
280 user_ntv.time.tv_nsec = (user32_long_t)ntv.time.tv_nsec; in ntp_gettime()
281 user_ntv.maxerror = (user32_long_t)ntv.maxerror; in ntp_gettime()
282 user_ntv.esterror = (user32_long_t)ntv.esterror; in ntp_gettime()
283 user_ntv.tai = (user32_long_t)ntv.tai; in ntp_gettime()
284 user_ntv.time_state = ntv.time_state; in ntp_gettime()
285 error = copyout(&user_ntv, uap->ntvp, sizeof(user_ntv)); in ntp_gettime()
307 struct user64_timex user_ntv; in ntp_adjtime() local
308 error = copyin(uap->tp, &user_ntv, sizeof(user_ntv)); in ntp_adjtime()
309 ntv.modes = user_ntv.modes; in ntp_adjtime()
310 ntv.offset = (long)user_ntv.offset; in ntp_adjtime()
311 ntv.freq = (long)user_ntv.freq; in ntp_adjtime()
312 ntv.maxerror = (long)user_ntv.maxerror; in ntp_adjtime()
313 ntv.esterror = (long)user_ntv.esterror; in ntp_adjtime()
314 ntv.status = user_ntv.status; in ntp_adjtime()
315 ntv.constant = (long)user_ntv.constant; in ntp_adjtime()
316 ntv.precision = (long)user_ntv.precision; in ntp_adjtime()
317 ntv.tolerance = (long)user_ntv.tolerance; in ntp_adjtime()
319 struct user32_timex user_ntv; in ntp_adjtime() local
320 error = copyin(uap->tp, &user_ntv, sizeof(user_ntv)); in ntp_adjtime()
321 ntv.modes = user_ntv.modes; in ntp_adjtime()
322 ntv.offset = user_ntv.offset; in ntp_adjtime()
323 ntv.freq = user_ntv.freq; in ntp_adjtime()
324 ntv.maxerror = user_ntv.maxerror; in ntp_adjtime()
325 ntv.esterror = user_ntv.esterror; in ntp_adjtime()
326 ntv.status = user_ntv.status; in ntp_adjtime()
327 ntv.constant = user_ntv.constant; in ntp_adjtime()
328 ntv.precision = user_ntv.precision; in ntp_adjtime()
329 ntv.tolerance = user_ntv.tolerance; in ntp_adjtime()
451 struct user64_timex user_ntv = {}; in ntp_adjtime() local
453 user_ntv.modes = modes; in ntp_adjtime()
455 user_ntv.offset = L_GINT(time_offset); in ntp_adjtime()
457 user_ntv.offset = L_GINT(time_offset) / 1000; in ntp_adjtime()
460 user_ntv.freq = L_GINT(((int64_t)(time_freq / 1000LL)) << 16); in ntp_adjtime()
462 user_ntv.freq = -L_GINT(((int64_t)(-(time_freq) / 1000LL)) << 16); in ntp_adjtime()
464 user_ntv.maxerror = time_maxerror; in ntp_adjtime()
465 user_ntv.esterror = time_esterror; in ntp_adjtime()
466 user_ntv.status = time_status; in ntp_adjtime()
467 user_ntv.constant = time_constant; in ntp_adjtime()
469 user_ntv.precision = time_precision; in ntp_adjtime()
471 user_ntv.precision = time_precision / 1000; in ntp_adjtime()
473 user_ntv.tolerance = MAXFREQ * SCALE_PPM; in ntp_adjtime()
478 error = copyout(&user_ntv, uap->tp, sizeof(user_ntv)); in ntp_adjtime()
480 struct user32_timex user_ntv = {}; in ntp_adjtime() local
482 user_ntv.modes = modes; in ntp_adjtime()
484 user_ntv.offset = L_GINT(time_offset); in ntp_adjtime()
486 user_ntv.offset = L_GINT(time_offset) / 1000; in ntp_adjtime()
489 user_ntv.freq = L_GINT((time_freq / 1000LL) << 16); in ntp_adjtime()
491 user_ntv.freq = -L_GINT((-(time_freq) / 1000LL) << 16); in ntp_adjtime()
493 user_ntv.maxerror = (user32_long_t)time_maxerror; in ntp_adjtime()
494 user_ntv.esterror = (user32_long_t)time_esterror; in ntp_adjtime()
495 user_ntv.status = time_status; in ntp_adjtime()
496 user_ntv.constant = (user32_long_t)time_constant; in ntp_adjtime()
498 user_ntv.precision = (user32_long_t)time_precision; in ntp_adjtime()
500 user_ntv.precision = (user32_long_t)(time_precision / 1000); in ntp_adjtime()
502 user_ntv.tolerance = MAXFREQ * SCALE_PPM; in ntp_adjtime()
507 error = copyout(&user_ntv, uap->tp, sizeof(user_ntv)); in ntp_adjtime()