Lines Matching defs:peer
149 static int wwvb_start (int, struct peer *);
150 static void wwvb_shutdown (int, struct peer *);
152 static void wwvb_poll (int, struct peer *);
153 static void wwvb_timer (int, struct peer *);
156 struct refclockstat *, struct peer *);
183 struct peer *peer
195 fd = refclock_open(&peer->srcadr, device, SPEED232, LDISC_CLK);
203 pp = peer->procptr;
205 pp->io.srcclock = peer;
219 peer->precision = PRECISION;
232 struct peer *peer
238 pp = peer->procptr;
257 struct peer *peer;
272 peer = rbufp->recv_peer;
273 pp = peer->procptr;
384 record_clock_stats(&peer->srcadr,
387 refclock_report(peer, CEVNT_BADREPLY);
424 refclock_report(peer, CEVNT_BADREPLY);
440 if (peer->flags & FLAG_PPS)
445 refclock_report(peer, CEVNT_BADTIME);
455 struct peer *peer
472 pp = peer->procptr;
479 refclock_report(peer, CEVNT_FAULT);
487 refclock_pps(peer, &up->atom, pp->sloppyclockflag) > 0) {
489 peer->flags |= FLAG_PPS;
490 peer->precision = PPS_PRECISION;
502 struct peer *peer
512 pp = peer->procptr;
531 peer->flags &= ~FLAG_PPS;
532 peer->precision = PRECISION;
536 refclock_report(peer, CEVNT_TIMEOUT);
542 refclock_report(peer, CEVNT_TIMEOUT);
546 refclock_receive(peer);
547 record_clock_stats(&peer->srcadr, pp->a_lastcode);
565 struct peer *peer
571 pp = peer->procptr;
580 peer->flags &= ~FLAG_PPS;
581 peer->precision = PRECISION;
600 refnumtoa(&peer->srcadr));