Lines Matching refs:pp

248 	struct refclockproc *pp;  in acts_start()  local
256 pp = peer->procptr; in acts_start()
257 pp->unitptr = up; in acts_start()
258 pp->io.clock_recv = acts_receive; in acts_start()
259 pp->io.srcclock = peer; in acts_start()
260 pp->io.datalen = 0; in acts_start()
261 pp->io.fd = -1; in acts_start()
267 pp->clockdesc = DESCRIPTION; in acts_start()
268 memcpy(&pp->refid, REFID, 4); in acts_start()
291 struct refclockproc *pp; in acts_shutdown() local
296 pp = peer->procptr; in acts_shutdown()
297 up = pp->unitptr; in acts_shutdown()
312 struct refclockproc *pp; in acts_receive() local
326 pp = peer->procptr; in acts_receive()
327 up = pp->unitptr; in acts_receive()
329 refclock_gtraw(rbufp, tbuf, octets, &pp->lastrec); in acts_receive()
333 up->tstamp = pp->lastrec; in acts_receive()
343 up->tstamp = pp->lastrec; in acts_receive()
361 struct refclockproc *pp; in acts_message() local
371 pp = peer->procptr; in acts_message()
372 up = pp->unitptr; in acts_message()
402 if (ioctl(pp->io.fd, TIOCMBIS, &dtr) < 0) in acts_message()
461 struct refclockproc *pp; in acts_timeout() local
470 pp = peer->procptr; in acts_timeout()
471 up = pp->unitptr; in acts_timeout()
479 if (-1 != pp->io.fd) in acts_timeout()
487 if (pp->sloppyclockflag & CLK_FLAG2) { in acts_timeout()
514 pp->io.fd = fd; in acts_timeout()
515 if (!io_addclock(&pp->io)) { in acts_timeout()
518 pp->io.fd = -1; in acts_timeout()
571 pp->lastref = pp->lastrec; in acts_timeout()
572 record_clock_stats(&peer->srcadr, pp->a_lastcode); in acts_timeout()
594 struct refclockproc *pp; in acts_close() local
598 pp = peer->procptr; in acts_close()
599 up = pp->unitptr; in acts_close()
600 if (pp->io.fd != -1) { in acts_close()
603 if (ioctl(pp->io.fd, TIOCMBIC, &dtr) < 0) in acts_close()
605 io_closeclock(&pp->io); in acts_close()
606 pp->io.fd = -1; in acts_close()
608 if (pp->sloppyclockflag & CLK_FLAG2) { in acts_close()
635 struct refclockproc *pp; in acts_poll() local
642 pp = peer->procptr; in acts_poll()
643 up = pp->unitptr; in acts_poll()
671 pp->polls++; in acts_poll()
689 struct refclockproc *pp; in acts_timer() local
697 pp = peer->procptr; in acts_timer()
698 up = pp->unitptr; in acts_timer()
700 if (pp->sloppyclockflag & CLK_FLAG1) { in acts_timer()
701 pp->sloppyclockflag &= ~CLK_FLAG1; in acts_timer()
721 struct refclockproc *pp; in acts_timecode() local
747 pp = peer->procptr; in acts_timecode()
748 up = pp->unitptr; in acts_timecode()
749 pp->nsec = 0; in acts_timecode()
769 &mjd, &pp->year, &month, &day, &pp->hour, in acts_timecode()
770 &pp->minute, &pp->second, &dst, &leap, &dut1, in acts_timecode()
775 pp->day = ymd2yd(pp->year, month, day); in acts_timecode()
776 pp->leap = LEAP_NOWARNING; in acts_timecode()
778 pp->leap = LEAP_ADDSECOND; in acts_timecode()
780 pp->leap = LEAP_DELSECOND; in acts_timecode()
781 memcpy(&pp->refid, REFACTS, 4); in acts_timecode()
793 &mjd, &pp->day, &pp->hour, &pp->minute, in acts_timecode()
794 &pp->second, utc) != 6) { in acts_timecode()
804 pp->leap = LEAP_NOWARNING; in acts_timecode()
805 memcpy(&pp->refid, REFUSNO, 4); in acts_timecode()
815 &pp->second, &pp->year, &month, &day, &pp->hour, in acts_timecode()
816 &pp->minute, &mjd, &dut1, &leapdir, &leapmonth, in acts_timecode()
821 pp->leap = LEAP_NOWARNING; in acts_timecode()
824 pp->leap = LEAP_ADDSECOND; in acts_timecode()
826 pp->leap = LEAP_DELSECOND; in acts_timecode()
828 pp->day = ymd2yd(pp->year, month, day); in acts_timecode()
829 memcpy(&pp->refid, REFPTB, 4); in acts_timecode()
839 &synchar, &pp->day, &pp->hour, &pp->minute, in acts_timecode()
840 &pp->second, &dstchar, &tz) != 7) { in acts_timecode()
844 pp->leap = LEAP_NOWARNING; in acts_timecode()
846 pp->leap = LEAP_NOTINSYNC; in acts_timecode()
847 memcpy(&pp->refid, REFWWVB, 4); in acts_timecode()
856 &synchar, &qualchar, &pp->year, &pp->day, in acts_timecode()
857 &pp->hour, &pp->minute, &pp->second, &pp->nsec, in acts_timecode()
862 pp->nsec *= 1000000; in acts_timecode()
863 pp->leap = LEAP_NOWARNING; in acts_timecode()
865 pp->leap = LEAP_NOTINSYNC; in acts_timecode()
867 pp->leap = LEAP_ADDSECOND; in acts_timecode()
868 memcpy(&pp->refid, REFWWVB, 4); in acts_timecode()
886 peer->refid = pp->refid; in acts_timecode()
887 pp->lastrec = up->tstamp; in acts_timecode()
891 strlcpy(pp->a_lastcode, str, sizeof(pp->a_lastcode)); in acts_timecode()
892 pp->lencode = strlen(pp->a_lastcode); in acts_timecode()
893 if (!refclock_process(pp)) { in acts_timecode()
897 pp->lastref = pp->lastrec; in acts_timecode()