Home
last modified time | relevance | path

Searched refs:dtemp (Results 1 – 19 of 19) sorted by relevance

/freebsd/contrib/ntp/util/
H A Djitter.c36 double dtemp, gtod[NBUF]; in main() local
68 dtemp = gtod[j]; in main()
70 gtod[i] = dtemp; in main()
94 double dtemp; in get_systime() local
108 dtemp = ts.tv_nsec / 1e9; in get_systime()
118 dtemp = tv.tv_usec / 1e6; in get_systime()
125 dtemp += sys_residual; in get_systime()
126 if (dtemp >= 1) { in get_systime()
127 dtemp -= 1; in get_systime()
129 } else if (dtemp < -1) { in get_systime()
[all …]
/freebsd/contrib/ntp/ntpd/
H A Drefclock_wwv.c973 double dtemp; in wwv_rf() local
1034 dtemp = sintab[i] * data / (MS / 2. * DATCYC); in wwv_rf()
1036 ibuf[iptr] = dtemp; in wwv_rf()
1037 up->irig += dtemp; in wwv_rf()
1040 dtemp = sintab[i] * data / (MS / 2. * DATCYC); in wwv_rf()
1042 qbuf[iptr] = dtemp; in wwv_rf()
1043 up->qrig += dtemp; in wwv_rf()
1103 dtemp = sintab[i] * syncx / (MS / 2.); in wwv_rf()
1105 cibuf[jptr] = dtemp; in wwv_rf()
1106 ciamp += dtemp; in wwv_rf()
1404 double dtemp; wwv_endpoc() local
2402 double rank, dtemp; wwv_newchan() local
2546 double dtemp; wwv_metric() local
[all...]
H A Dntpsim.c555 double dtemp; local
565 dtemp = now + sys_residual;
566 if (dtemp < 0) {
568 dtemp = -dtemp;
570 adjtv.tv_sec = (long)dtemp;
571 dtemp -= adjtv.tv_sec;
572 ticks = (long)(dtemp / sys_tick + .5);
574 dtemp -= adjtv.tv_usec / 1e6;
575 sys_residual = dtemp;
H A Drefclock_chu.c911 double dtemp; in chu_uart() local
943 dtemp = sp->shift[i]; in chu_uart()
944 if (dtemp > slice) in chu_uart()
947 dist += dtemp - es_min; in chu_uart()
949 dist += es_max - dtemp; in chu_uart()
951 if (dtemp > slice) in chu_uart()
952 dist += dtemp - es_min; in chu_uart()
954 dist += es_max - dtemp; in chu_uart()
995 double dtemp; in chu_decode() local
1011 LFPTOD(&tstmp, dtemp); in chu_decode()
[all …]
H A Dntp_loopfilter.c463 double dtemp, etemp; /* double temps */ in local_clock() local
543 dtemp = -(peer->delay - sys_mindly) / 2; in local_clock()
545 dtemp = (peer->delay - sys_mindly) / 2; in local_clock()
546 fp_offset += dtemp; in local_clock()
548 sys_hufflen, sys_mindly, dtemp)); in local_clock()
662 dtemp = SQUARE(max(fabs(fp_offset - last_offset), in local_clock()
664 clock_jitter = SQRT(etemp + (dtemp - etemp) / in local_clock()
721 dtemp = 4 * CLOCK_PLL * ULOGTOD(sys_poll); in local_clock()
723 fp_offset * etemp / (dtemp * dtemp); in local_clock()
[all...]
H A Drefclock_irig.c598 double dtemp; in irig_base() local
656 dtemp = up->zxing * up->decim / BAUD; in irig_base()
657 up->yxing = dtemp; in irig_base()
659 up->phase += dtemp / up->tc; in irig_base()
660 up->freq += dtemp / (4. * up->tc * up->tc); in irig_base()
751 double dtemp; in irig_baud() local
787 dtemp = up->decim * (up->exing / SECOND) + up->fdelay; in irig_baud()
788 DTOLFP(dtemp, &ltemp); in irig_baud()
H A Dntp_timer.c620 double dtemp = now; in check_leapsec()
622 if (dtemp >= leap_smear.intv_start && dtemp <= leap_smear.intv_end) { in check_leapsec()
623 double leap_smear_time = dtemp - leap_smear.intv_start; in check_leapsec()
607 double dtemp = now; check_leapsec() local
H A Drefclock_true.c433 double dtemp; in true_receive() local
435 dtemp = pp->fudgetime1; in true_receive()
437 pp->fudgetime2 = dtemp; in true_receive()
H A Dntp_proto.c2899 double dtemp; in clock_update()
2940 dtemp = peer->rootdisp in clock_update()
2948 if (dtemp > sys_mindisp) in clock_update()
2949 sys_rootdisp = dtemp; in clock_update()
3346 double dtemp, etemp; in clock_filter()
3376 dtemp = clock_phi * (current_time - peer->update); in clock_filter()
3380 peer->filter_disp[j] += dtemp; in clock_filter()
4106 double dtemp; in peer_xmit()
4126 dtemp = (peer->delay + peer->rootdelay) / 2 in peer_xmit()
4138 if (dtemp < sys_mindis in peer_xmit()
2847 double dtemp; clock_update() local
3301 double dtemp, etemp; clock_filter() local
4060 double dtemp; root_distance() local
[all...]
H A Dntp_refclock.c1519 double dtemp, dcorr, trash; in refclock_pps()
1577 dtemp = ap->ts.tv_nsec / 1e9; in refclock_pps()
1578 dcorr = modf((pp->fudgetime1 - dtemp), &trash); in refclock_pps()
1598 pp->lastrec.l_uf = (u_int32)(dtemp * FRAC); in refclock_pps()
1521 double dtemp, dcorr, trash; refclock_pps() local
H A Drefclock_parse.c2238 double dtemp; in local_input() local
2252 dtemp = (double) pts.tv_nsec / 1e9; in local_input()
2253 if (dtemp < 0.) { in local_input()
2254 dtemp += 1; in local_input()
2257 if (dtemp > 1.) { in local_input()
2258 dtemp -= 1; in local_input()
2261 parse->parseio.parse_dtime.parse_ptime.fp.l_uf = (uint32_t)(dtemp * FRAC); in local_input()
H A Dntp_request.c423 double dtemp; in process_private() local
631 LFPTOD(&ftmp, dtemp); in process_private()
632 if (fabs(dtemp) > INFO_TS_MAXSKEW) { in process_private()
637 dtemp, INFO_TS_MAXSKEW)); in process_private()
H A Drefclock_ripencc.c714 double dtemp; in ripencc_get_pps_ts() local
751 dtemp = ts.tv_nsec * FRAC / 1e9; in ripencc_get_pps_ts()
752 tstmp.l_uf = (u_int32)dtemp; in ripencc_get_pps_ts()
H A Dntp_control.c1910 double dtemp; in ctl_putsys()
2249 LFPTOD(&sys_authdelay, dtemp); in ctl_putsys()
2250 ctl_putdbl(sys_var[varid].text, dtemp * 1e3); in ctl_putsys()
1911 double dtemp; ctl_putsys() local
/freebsd/contrib/ntp/libntp/
H A Dsystime.c293 double dtemp; in adj_systime()
320 dtemp = now + sys_residual; in adj_systime()
321 if (dtemp < 0) { in adj_systime()
323 dtemp = -dtemp; in adj_systime()
325 adjtv.tv_sec = (long)dtemp; in adj_systime()
326 dtemp -= adjtv.tv_sec; in adj_systime()
331 ticks = (long)(dtemp / quant + .5); in adj_systime()
340 dtemp -= 1.; in adj_systime()
343 sys_residual = dtemp in adj_systime()
294 double dtemp; adj_systime() local
[all...]
/freebsd/contrib/ntp/ntpdate/
H A Dntpdate.c2087 double dtemp; in l_step_systime() local
2110 LFPTOD(ts, dtemp); in l_step_systime()
2111 n = step_systime(dtemp); in l_step_systime()
2128 LFPTOD(ts, dtemp); in l_step_systime()
2129 return step_systime(dtemp); in l_step_systime()
2137 LFPTOD(ts, dtemp); in l_step_systime()
2138 return step_systime(dtemp); in l_step_systime()
/freebsd/contrib/one-true-awk/
H A Dtran.c427 double dtemp; in get_str_val() local
467 else if (modf(vp->fval, &dtemp) == 0) /* it's integral */ \ in get_str_val()
/freebsd/sys/dev/usb/
H A Dusb_generic.c2240 struct usb_device_descriptor *dtemp; in ugen_ioctl_post() local
2295 dtemp = usbd_get_device_descriptor(f->udev); in ugen_ioctl_post()
2296 if (!dtemp) { in ugen_ioctl_post()
2300 *u.ddesc = *dtemp; in ugen_ioctl_post()
/freebsd/contrib/ntp/
H A DCommitLog-4.1.01132 Typo grabbing the dtemp value and in the sdisp calculation.
1147 SQUARE(). peer->jitter uses dtemp instead of SQUARE().