Lines Matching full:up

124  * call it up and retrieve the time in one of two formats. As this
168 * &D2 hang up and return to command mode on DTR transition
229 acts_start, /* start up driver */
247 struct actsunit *up; in acts_start() local
254 up = emalloc_zero(sizeof(struct actsunit)); in acts_start()
255 up->unit = unit; in acts_start()
257 pp->unitptr = up; in acts_start()
270 up->bufptr = up->buf; in acts_start()
290 struct actsunit *up; in acts_shutdown() local
297 up = pp->unitptr; in acts_shutdown()
299 free(up); in acts_shutdown()
311 struct actsunit *up; in acts_receive() local
314 char tbuf[sizeof(up->buf)]; in acts_receive()
321 * interface kicks up; so, we have to reassemble messages from in acts_receive()
327 up = pp->unitptr; in acts_receive()
328 octets = sizeof(up->buf) - (up->bufptr - up->buf); in acts_receive()
332 if (up->bufptr == up->buf) { in acts_receive()
333 up->tstamp = pp->lastrec; in acts_receive()
336 *up->bufptr = '\0'; in acts_receive()
337 up->bufptr = up->buf; in acts_receive()
338 acts_message(peer, up->buf); in acts_receive()
341 *up->bufptr++ = *tptr; in acts_receive()
343 up->tstamp = pp->lastrec; in acts_receive()
360 struct actsunit *up; in acts_message() local
372 up = pp->unitptr; in acts_message()
379 switch (up->state) { in acts_message()
401 up->retry, sys_phone[up->retry]); in acts_message()
404 refclock_write(peer, sys_phone[up->retry], in acts_message()
405 strlen(sys_phone[up->retry]), in acts_message()
408 up->retry++; in acts_message()
409 up->state = S_CONNECT; in acts_message()
410 up->timer = ANSWER; in acts_message()
424 up->state = S_MSG; in acts_message()
425 up->timer = TIMECODE; in acts_message()
436 if (up->msgcnt < MAXCODE) in acts_message()
460 struct actsunit *up; in acts_timeout() local
471 up = pp->unitptr; in acts_timeout()
489 up->unit); in acts_timeout()
507 up->unit); in acts_timeout()
521 up->msgcnt = 0; in acts_timeout()
522 up->bufptr = up->buf; in acts_timeout()
528 if (sys_phone[up->retry] == NULL) { in acts_timeout()
530 up->state = S_MSG; in acts_timeout()
531 up->timer = TIMECODE; in acts_timeout()
544 up->state = S_SETUP; in acts_timeout()
545 up->timer = SETUP; in acts_timeout()
568 if (up->msgcnt == 0) { in acts_timeout()
593 struct actsunit *up; in acts_close() local
599 up = pp->unitptr; in acts_close()
610 LOCKFILE, up->unit); in acts_close()
613 if (up->msgcnt == 0 && up->retry > 0) { in acts_close()
614 if (sys_phone[up->retry] != NULL) { in acts_close()
615 up->state = S_IDLE; in acts_close()
616 up->timer = REDIAL; in acts_close()
620 up->state = S_IDLE; in acts_close()
621 up->timer = 0; in acts_close()
634 struct actsunit *up; in acts_poll() local
643 up = pp->unitptr; in acts_poll()
672 if (S_IDLE == up->state) { in acts_poll()
673 up->retry = 0; in acts_poll()
688 struct actsunit *up; in acts_timer() local
698 up = pp->unitptr; in acts_timer()
699 if (up->timer == 0) { in acts_timer()
705 up->timer--; in acts_timer()
706 if (up->timer == 0) in acts_timer()
707 acts_timeout(peer, up->state); in acts_timer()
720 struct actsunit *up; in acts_timecode() local
748 up = pp->unitptr; in acts_timecode()
757 if (*str == '*' && up->msgcnt > 0) in acts_timecode()
782 up->msgcnt++; in acts_timecode()
783 if (flag != '#' && up->msgcnt < 10) in acts_timecode()
806 up->msgcnt++; in acts_timecode()
830 up->msgcnt++; in acts_timecode()
848 up->msgcnt++; in acts_timecode()
869 up->msgcnt++; in acts_timecode()
887 pp->lastrec = up->tstamp; in acts_timecode()
888 if (up->msgcnt == 0) in acts_timecode()