Lines Matching refs:peer

170 static	int	true_start	(int, struct peer *);
171 static void true_shutdown (int, struct peer *);
173 static void true_poll (int, struct peer *);
174 static void true_send (struct peer *, const char *);
175 static void true_doevent (struct peer *, enum true_event);
199 true_debug(struct peer *peer, const char *fmt, ...)
207 pp = peer->procptr;
248 struct peer *peer
272 pp = peer->procptr;
274 pp->io.srcclock = (caddr_t)peer;
287 peer->precision = PRECISION;
293 true_doevent(peer, e_Init);
303 struct peer *peer
309 pp = peer->procptr;
326 struct peer *peer;
339 peer = (struct peer *)rbufp->recv_srcclock;
340 pp = peer->procptr;
357 true_debug(peer, "receive(%s) [%d]\n", pp->a_lastcode, pp->lencode);
360 record_clock_stats(&peer->srcadr, pp->a_lastcode);
375 true_doevent(peer, e_Huh);
414 /*refclock_report(peer, CEVNT_BADREPLY);*/
417 true_debug(peer, "GOES: station %s\n", label);
418 true_doevent(peer, e_Satellite);
429 true_doevent(peer, e_F50);
432 true_doevent(peer, e_F51);
435 true_debug(peer, "got F%02d - ignoring\n", i);
447 true_doevent(peer, e_F18);
463 true_doevent(peer, e_Location);
489 true_doevent(peer, e_TS);
504 refclock_report(peer, CEVNT_BADTIME);
528 pps_sample(peer, &off);
530 true_debug(peer, "true_sample720: %luus\n", pp->usec);
541 true_doevent(peer, e_Poll);
543 refclock_report(peer, CEVNT_BADTIME);
551 refclock_receive(peer);
552 refclock_report(peer, CEVNT_NOMINAL);
566 refclock_report(peer, CEVNT_BADREPLY);
576 struct peer *peer,
582 pp = peer->procptr;
586 true_debug(peer, "Send '%s'\n", cmd);
588 refclock_report(peer, CEVNT_FAULT);
600 struct peer *peer,
607 pp = peer->procptr;
617 true_debug(peer, "clock %s, state %s, event %s\n",
627 true_send(peer, "C");
634 true_send(peer, "P");
644 true_send(peer, "C");
649 true_send(peer, "\03\r");
661 true_send(peer, "F18\r");
665 true_send(peer, "F50\r");
669 true_send(peer, "F51\r");
673 true_send(peer, "F08\r");
678 true_send(peer, "\03\r");
690 true_send(peer, "MD3\r"); /* GPS Synch'd Gen. */
691 true_send(peer, "TSU\r"); /* UTC, not GPS. */
692 true_send(peer, "AU\r"); /* Auto Timestamps. */
697 true_send(peer, "\03\r");
711 true_send(peer, "P\r");
718 true_doevent(peer, e_Init);
724 true_send(peer, "C\r");
739 true_send(peer, "F18\r");
749 true_doevent(peer, e_Init);
753 true_send(peer, "PO\r");
764 true_doevent(peer, e_Init);
817 struct peer *peer
828 pp = peer->procptr;
833 true_doevent(peer, e_Init);
834 refclock_report(peer, CEVNT_TIMEOUT);