Lines Matching defs:peer
130 static int hpgps_start (int, struct peer *);
131 static void hpgps_shutdown (int, struct peer *);
133 static void hpgps_poll (int, struct peer *);
155 struct peer *peer
172 if (1 == peer->ttl) {
176 fd = refclock_open(&peer->srcadr, device, speed, ldisc);
183 pp = peer->procptr;
185 pp->io.srcclock = peer;
199 peer->precision = PRECISION;
214 if (refclock_write(peer, "*IDN?\r:PTIME:TZONE?\r", 20, NULL) != 20)
215 refclock_report(peer, CEVNT_FAULT);
227 struct peer *peer
233 pp = peer->procptr;
252 struct peer *peer;
271 peer = rbufp->recv_peer;
272 pp = peer->procptr;
310 record_clock_stats(&peer->srcadr, up->statscrn);
315 record_clock_stats(&peer->srcadr, pp->a_lastcode);
356 if (refclock_write(peer, "*CLS\r\r", 6, NULL) != 6)
357 refclock_report(peer, CEVNT_FAULT);
371 refclock_report(peer, CEVNT_BADREPLY);
385 refclock_report(peer, CEVNT_BADREPLY);
395 refclock_report(peer, CEVNT_BADREPLY);
409 refclock_report(peer, CEVNT_BADREPLY);
428 refclock_report(peer, CEVNT_BADREPLY);
439 refclock_report(peer, CEVNT_BADREPLY);
458 refclock_report(peer, CEVNT_BADREPLY);
466 refclock_report(peer, CEVNT_BADTIME);
473 refclock_report(peer, CEVNT_BADTIME);
481 refclock_report(peer, CEVNT_BADTIME);
564 refclock_report(peer, CEVNT_BADTIME);
578 refclock_report(peer, CEVNT_BADTIME);
582 refclock_receive(peer);
589 if (refclock_write(peer, ":SYSTEM:PRINT?\r", 15, NULL) != 15)
590 refclock_report(peer, CEVNT_FAULT);
601 struct peer *peer
613 pp = peer->procptr;
616 refclock_report(peer, CEVNT_TIMEOUT);
619 if (refclock_write(peer, ":PTIME:TCODE?\r", 14, NULL) != 14) {
620 refclock_report(peer, CEVNT_FAULT);