Lines Matching refs:pp

218 	struct refclockproc *pp;  in true_debug()  local
222 pp = peer->procptr; in true_debug()
223 up = pp->unitptr; in true_debug()
225 want_debugging = (pp->sloppyclockflag & CLK_FLAG2) != 0; in true_debug()
270 struct refclockproc *pp; in true_start() local
286 pp = peer->procptr; in true_start()
287 pp->io.clock_recv = true_receive; in true_start()
288 pp->io.srcclock = peer; in true_start()
289 pp->io.datalen = 0; in true_start()
290 pp->io.fd = fd; in true_start()
291 if (!io_addclock(&pp->io)) { in true_start()
293 pp->io.fd = -1; in true_start()
297 pp->unitptr = up; in true_start()
303 pp->clockdesc = DESCRIPTION; in true_start()
304 memcpy(&pp->refid, REFID, 4); in true_start()
332 struct refclockproc *pp; in true_shutdown() local
334 pp = peer->procptr; in true_shutdown()
335 up = pp->unitptr; in true_shutdown()
336 if (pp->io.fd != -1) in true_shutdown()
337 io_closeclock(&pp->io); in true_shutdown()
352 struct refclockproc *pp; in true_receive() local
367 pp = peer->procptr; in true_receive()
368 up = pp->unitptr; in true_receive()
381 pp->lencode = rd_lencode; in true_receive()
382 strlcpy(pp->a_lastcode, rd_lastcode, sizeof(pp->a_lastcode)); in true_receive()
383 pp->lastrec = rd_tmp; in true_receive()
384 true_debug(peer, "receive(%s) [%d]\n", pp->a_lastcode, in true_receive()
385 pp->lencode); in true_receive()
388 record_clock_stats(&peer->srcadr, pp->a_lastcode); in true_receive()
401 if (pp->a_lastcode[0] == '?' || in true_receive()
402 strcmp(pp->a_lastcode, "ERROR 05 NO SUCH FUNCTION") == 0) { in true_receive()
411 if ((pp->a_lastcode[5] == '+' || pp->a_lastcode[5] == '-') && in true_receive()
412 (pp->a_lastcode[9] == '+' || pp->a_lastcode[9] == '-') && in true_receive()
413 sscanf(pp->a_lastcode, "%5d%*c%3d%*c%3d", &lon, &lat, &off) == 3 in true_receive()
435 dtemp = pp->fudgetime1; in true_receive()
436 pp->fudgetime1 = pp->fudgetime2; in true_receive()
437 pp->fudgetime2 = dtemp; in true_receive()
454 if (sscanf(pp->a_lastcode, "F%2d", &i) == 1 && i > 0 && i < 80) { in true_receive()
473 if (pp->a_lastcode[0] == 'V' && pp->a_lastcode[1] == 'E' && in true_receive()
474 pp->a_lastcode[2] == 'R' && pp->a_lastcode[6] == '.') { in true_receive()
477 msyslog(LOG_INFO, "TL3: %s", pp->a_lastcode); in true_receive()
486 if (strncmp(pp->a_lastcode, " TRUETIME Mk III ", 17) == 0 || in true_receive()
487 strncmp(pp->a_lastcode, " TRUETIME XL", 12) == 0) { in true_receive()
490 msyslog(LOG_INFO, "TM/TMD/XL: %s", pp->a_lastcode); in true_receive()
501 if ((pp->a_lastcode[0] == 'N' || pp->a_lastcode[0] == 'S') && in true_receive()
502 (pp->a_lastcode[9] == 'W' || pp->a_lastcode[9] == 'E') && in true_receive()
503 pp->a_lastcode[18] == '+') { in true_receive()
506 msyslog(LOG_INFO, "TCU-800: %s", pp->a_lastcode); in true_receive()
516 if (pp->a_lastcode[3] == ':' && in true_receive()
517 pp->a_lastcode[6] == ':' && in true_receive()
518 pp->a_lastcode[9] == ':' && in true_receive()
519 sscanf(pp->a_lastcode, "%3d:%2d:%2d:%2d%c", in true_receive()
520 &pp->day, &pp->hour, &pp->minute, in true_receive()
521 &pp->second, &synced) == 5) { in true_receive()
529 pp->leap = LEAP_NOTINSYNC; in true_receive()
531 pp->leap = LEAP_NOWARNING; in true_receive()
537 if ((pp->sloppyclockflag & CLK_FLAG4) && up->pcl720init) { in true_receive()
545 if (!clocktime(pp->day, pp->hour, pp->minute, in true_receive()
546 pp->second, GMT, pp->lastrec.l_ui, in true_receive()
547 &pp->yearstart, &off.l_ui)) { in true_receive()
554 pp->usec = true_sample720(); in true_receive()
556 TVUTOTSF(pp->usec, off.l_uf); in true_receive()
565 get_systime(&pp->lastrec); in true_receive()
570 L_SUB(&off, &pp->lastrec); in true_receive()
574 true_debug(peer, "true_sample720: %luus\n", pp->usec); in true_receive()
592 if (!refclock_process(pp)) { in true_receive()
600 pp->lastref = pp->lastrec; in true_receive()
630 struct refclockproc *pp; in true_send() local
632 pp = peer->procptr; in true_send()
633 if (!(pp->sloppyclockflag & CLK_FLAG1)) { in true_send()
640 pp->polls++; in true_send()
655 struct refclockproc *pp; in true_doevent() local
657 pp = peer->procptr; in true_doevent()
658 up = pp->unitptr; in true_doevent()
720 if ( strcmp(pp->a_lastcode, " TRUETIME Mk III") == 0 || in true_doevent()
721 strncmp(pp->a_lastcode, " TRUETIME XL", 12) == 0) { in true_doevent()
725 pp->a_lastcode); in true_doevent()
901 if ((pp->sloppyclockflag & CLK_FLAG4) && !up->pcl720init) { in true_doevent()
928 struct refclockproc *pp; in true_poll() local
935 pp = peer->procptr; in true_poll()
936 up = pp->unitptr; in true_poll()
949 pp->polls++; in true_poll()