Lines Matching refs:up

205 	true_start,		/* start up driver */
225 struct true_unit *up;
229 up = pp->unitptr;
232 now_debugging = (up->debug != NULL);
240 "/tmp/true%d.debug", up->unit);
243 if (fd >= 0 && (up->debug = fdopen(fd, "w"))) {
247 setvbuf(up->debug, buf, _IOLBF, BUFSIZ);
249 setlinebuf(up->debug);
253 fclose(up->debug);
254 up->debug = NULL;
258 if (up->debug) {
259 fprintf(up->debug, "true%d: ", up->unit);
260 vfprintf(up->debug, fmt, ap);
275 register struct true_unit *up;
291 up = emalloc_zero(sizeof(*up));
300 free(up);
303 pp->unitptr = up;
311 up->pollcnt = 2;
312 up->type = t_unknown;
313 up->state = s_Base;
337 register struct true_unit *up;
341 up = pp->unitptr;
344 if (up != NULL)
345 free(up);
357 register struct true_unit *up;
374 up = pp->unitptr;
393 up->pollcnt = 2;
438 if (new_station != up->station) {
444 up->station = new_station;
458 * (from TM/TMD clock when it wants to tell us what it's up to.)
543 if ((pp->sloppyclockflag & CLK_FLAG4) && up->pcl720init) {
588 if (!up->polled)
595 if (up->type == t_goes || up->type == t_unknown)
614 up->polled = 0;
628 * true_send - time to send the clock a signal to cough up a time sample
660 struct true_unit *up;
664 up = pp->unitptr;
668 typeStr(up->type),
669 stateStr(up->state),
674 typeStr(up->type), stateStr(up->state), eventStr(event));
675 switch (up->type) {
684 up->state = s_Start;
701 up->state = s_Start;
704 if (up->state != s_Start && up->state != s_Auto) {
708 up->state = s_Auto;
718 up->state = s_Init;
735 up->state = s_F18;
739 up->state = s_F50;
743 up->state = s_Start;
746 if (up->state != s_Start && up->state != s_Auto) {
750 up->state = s_Auto;
762 up->state = s_Start;
765 if (up->state != s_Start && up->state != s_Auto) {
769 up->state = s_Auto;
781 up->state = s_Auto;
790 switch (up->state) {
795 up->state = s_InqGOES;
800 up->type = t_goes;
808 up->state = s_InqTL3;
818 up->type = t_tl3;
819 up->state = s_Auto; /* Inq side-effect. */
824 up->state = s_InqOmega;
828 up->type = t_tl3; /* Already sending data */
829 up->state = s_Auto;
840 up->type = t_omega;
841 up->state = s_Auto; /* Inq side-effect. */
845 up->state = s_InqTM;
855 up->type = t_tm;
861 up->state = s_InqTCU;
872 up->type = t_tcu;
877 up->state = s_Base;
897 stateStr(up->state));
907 if ((pp->sloppyclockflag & CLK_FLAG4) && !up->pcl720init) {
917 up->pcl720init++;
933 struct true_unit *up;
942 up = pp->unitptr;
943 if (up->pollcnt > 0) {
944 up->pollcnt--;
954 up->polled = 1;