Lines Matching full:up
199 true_start, /* start up driver */
219 struct true_unit *up; in true_debug() local
223 up = pp->unitptr; in true_debug()
226 now_debugging = (up->debug != NULL); in true_debug()
234 "/tmp/true%d.debug", up->unit); in true_debug()
237 if (fd >= 0 && (up->debug = fdopen(fd, "w"))) { in true_debug()
241 setvbuf(up->debug, buf, _IOLBF, BUFSIZ); in true_debug()
243 setlinebuf(up->debug); in true_debug()
247 fclose(up->debug); in true_debug()
248 up->debug = NULL; in true_debug()
252 if (up->debug) { in true_debug()
253 fprintf(up->debug, "true%d: ", up->unit); in true_debug()
254 vfprintf(up->debug, fmt, ap); in true_debug()
269 register struct true_unit *up; in true_start() local
285 up = emalloc_zero(sizeof(*up)); in true_start()
294 free(up); in true_start()
297 pp->unitptr = up; in true_start()
305 up->pollcnt = 2; in true_start()
306 up->type = t_unknown; in true_start()
307 up->state = s_Base; in true_start()
331 register struct true_unit *up; in true_shutdown() local
335 up = pp->unitptr; in true_shutdown()
338 if (up != NULL) in true_shutdown()
339 free(up); in true_shutdown()
351 register struct true_unit *up; in true_receive() local
368 up = pp->unitptr; in true_receive()
387 up->pollcnt = 2; in true_receive()
432 if (new_station != up->station) { in true_receive()
438 up->station = new_station; in true_receive()
452 * (from TM/TMD clock when it wants to tell us what it's up to.) in true_receive()
537 if ((pp->sloppyclockflag & CLK_FLAG4) && up->pcl720init) { in true_receive()
582 if (!up->polled) in true_receive()
589 if (up->type == t_goes || up->type == t_unknown) in true_receive()
608 up->polled = 0; in true_receive()
622 * true_send - time to send the clock a signal to cough up a time sample
654 struct true_unit *up; in true_doevent() local
658 up = pp->unitptr; in true_doevent()
662 typeStr(up->type), in true_doevent()
663 stateStr(up->state), in true_doevent()
668 typeStr(up->type), stateStr(up->state), eventStr(event)); in true_doevent()
669 switch (up->type) { in true_doevent()
678 up->state = s_Start; in true_doevent()
695 up->state = s_Start; in true_doevent()
698 if (up->state != s_Start && up->state != s_Auto) { in true_doevent()
702 up->state = s_Auto; in true_doevent()
712 up->state = s_Init; in true_doevent()
729 up->state = s_F18; in true_doevent()
733 up->state = s_F50; in true_doevent()
737 up->state = s_Start; in true_doevent()
740 if (up->state != s_Start && up->state != s_Auto) { in true_doevent()
744 up->state = s_Auto; in true_doevent()
756 up->state = s_Start; in true_doevent()
759 if (up->state != s_Start && up->state != s_Auto) { in true_doevent()
763 up->state = s_Auto; in true_doevent()
775 up->state = s_Auto; in true_doevent()
784 switch (up->state) { in true_doevent()
789 up->state = s_InqGOES; in true_doevent()
794 up->type = t_goes; in true_doevent()
802 up->state = s_InqTL3; in true_doevent()
812 up->type = t_tl3; in true_doevent()
813 up->state = s_Auto; /* Inq side-effect. */ in true_doevent()
818 up->state = s_InqOmega; in true_doevent()
822 up->type = t_tl3; /* Already sending data */ in true_doevent()
823 up->state = s_Auto; in true_doevent()
834 up->type = t_omega; in true_doevent()
835 up->state = s_Auto; /* Inq side-effect. */ in true_doevent()
839 up->state = s_InqTM; in true_doevent()
849 up->type = t_tm; in true_doevent()
855 up->state = s_InqTCU; in true_doevent()
866 up->type = t_tcu; in true_doevent()
871 up->state = s_Base; in true_doevent()
891 stateStr(up->state)); in true_doevent()
901 if ((pp->sloppyclockflag & CLK_FLAG4) && !up->pcl720init) { in true_doevent()
911 up->pcl720init++; in true_doevent()
927 struct true_unit *up; in true_poll() local
936 up = pp->unitptr; in true_poll()
937 if (up->pollcnt > 0) { in true_poll()
938 up->pollcnt--; in true_poll()
948 up->polled = 1; in true_poll()