Lines Matching refs:up

221           struct true_unit *up;  in true_debug()  local
225 up = pp->unitptr; in true_debug()
228 now_debugging = (up->debug != NULL); in true_debug()
236 "/tmp/true%d.debug", up->unit); in true_debug()
239 if (fd >= 0 && (up->debug = fdopen(fd, "w"))) { in true_debug()
243 setvbuf(up->debug, buf, _IOLBF, BUFSIZ); in true_debug()
245 setlinebuf(up->debug); in true_debug()
249 fclose(up->debug); in true_debug()
250 up->debug = NULL; in true_debug()
254 if (up->debug) { in true_debug()
255 fprintf(up->debug, "true%d: ", up->unit); in true_debug()
256 vfprintf(up->debug, fmt, ap); in true_debug()
271 register struct true_unit *up; in true_start() local
287 up = emalloc_zero(sizeof(*up)); in true_start()
296 free(up); in true_start()
299 pp->unitptr = up; in true_start()
307 up->pollcnt = 2; in true_start()
308 up->type = t_unknown; in true_start()
309 up->state = s_Base; in true_start()
333 register struct true_unit *up; in true_shutdown() local
337 up = pp->unitptr; in true_shutdown()
340 if (up != NULL) in true_shutdown()
341 free(up); in true_shutdown()
353 register struct true_unit *up; in true_receive() local
370 up = pp->unitptr; in true_receive()
389 up->pollcnt = 2; in true_receive()
434 if (new_station != up->station) { in true_receive()
440 up->station = new_station; in true_receive()
539 if ((pp->sloppyclockflag & CLK_FLAG4) && up->pcl720init) { in true_receive()
584 if (!up->polled) in true_receive()
591 if (up->type == t_goes || up->type == t_unknown) in true_receive()
610 up->polled = 0; in true_receive()
656 struct true_unit *up; in true_doevent() local
660 up = pp->unitptr; in true_doevent()
664 typeStr(up->type), in true_doevent()
665 stateStr(up->state), in true_doevent()
670 typeStr(up->type), stateStr(up->state), eventStr(event)); in true_doevent()
671 switch (up->type) { in true_doevent()
680 up->state = s_Start; in true_doevent()
697 up->state = s_Start; in true_doevent()
700 if (up->state != s_Start && up->state != s_Auto) { in true_doevent()
704 up->state = s_Auto; in true_doevent()
714 up->state = s_Init; in true_doevent()
731 up->state = s_F18; in true_doevent()
735 up->state = s_F50; in true_doevent()
739 up->state = s_Start; in true_doevent()
742 if (up->state != s_Start && up->state != s_Auto) { in true_doevent()
746 up->state = s_Auto; in true_doevent()
758 up->state = s_Start; in true_doevent()
761 if (up->state != s_Start && up->state != s_Auto) { in true_doevent()
765 up->state = s_Auto; in true_doevent()
777 up->state = s_Auto; in true_doevent()
786 switch (up->state) { in true_doevent()
791 up->state = s_InqGOES; in true_doevent()
796 up->type = t_goes; in true_doevent()
804 up->state = s_InqTL3; in true_doevent()
814 up->type = t_tl3; in true_doevent()
815 up->state = s_Auto; /* Inq side-effect. */ in true_doevent()
820 up->state = s_InqOmega; in true_doevent()
824 up->type = t_tl3; /* Already sending data */ in true_doevent()
825 up->state = s_Auto; in true_doevent()
836 up->type = t_omega; in true_doevent()
837 up->state = s_Auto; /* Inq side-effect. */ in true_doevent()
841 up->state = s_InqTM; in true_doevent()
851 up->type = t_tm; in true_doevent()
857 up->state = s_InqTCU; in true_doevent()
868 up->type = t_tcu; in true_doevent()
873 up->state = s_Base; in true_doevent()
893 stateStr(up->state)); in true_doevent()
903 if ((pp->sloppyclockflag & CLK_FLAG4) && !up->pcl720init) { in true_doevent()
913 up->pcl720init++; in true_doevent()
929 struct true_unit *up; in true_poll() local
938 up = pp->unitptr; in true_poll()
939 if (up->pollcnt > 0) { in true_poll()
940 up->pollcnt--; in true_poll()
950 up->polled = 1; in true_poll()