Lines Matching refs:up

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