Lines Matching full:tty
285 kwboot_bootmsg(int tty, void *msg) in kwboot_bootmsg() argument
297 rc = tcflush(tty, TCIOFLUSH); in kwboot_bootmsg()
302 rc = kwboot_tty_send(tty, msg, 8); in kwboot_bootmsg()
309 rc = kwboot_tty_recv(tty, &c, 1, msg_rsp_timeo); in kwboot_bootmsg()
321 kwboot_debugmsg(int tty, void *msg) in kwboot_debugmsg() argument
330 rc = tcflush(tty, TCIOFLUSH); in kwboot_debugmsg()
334 rc = kwboot_tty_send(tty, msg, 8); in kwboot_debugmsg()
340 rc = kwboot_tty_recv(tty, buf, 16, msg_rsp_timeo); in kwboot_debugmsg()
422 kwboot_xmodem(int tty, const void *_data, size_t size) in kwboot_xmodem() argument
433 tcflush(tty, TCIOFLUSH); in kwboot_xmodem()
448 rc = kwboot_xm_sendblock(tty, &block); in kwboot_xmodem()
456 rc = kwboot_tty_send_char(tty, EOT); in kwboot_xmodem()
463 kwboot_tty_send_char(tty, CAN); in kwboot_xmodem()
509 kwboot_terminal(int tty) in kwboot_terminal() argument
542 FD_SET(tty, &rfds); in kwboot_terminal()
543 nfds = nfds < tty ? tty : nfds; in kwboot_terminal()
554 if (FD_ISSET(tty, &rfds)) { in kwboot_terminal()
555 rc = kwboot_term_pipe(tty, STDOUT_FILENO, NULL, NULL); in kwboot_terminal()
561 rc = kwboot_term_pipe(in, tty, quit, &s); in kwboot_terminal()
686 "Usage: %s [OPTIONS] [-b <image> | -D <image> ] [-B <baud> ] <TTY>\n", in kwboot_usage()
711 int rv, rc, tty, term, prot, patch; in main() local
719 tty = -1; in main()
800 tty = kwboot_open_tty(ttypath, speed); in main()
801 if (tty < 0) { in main()
825 rc = kwboot_debugmsg(tty, debugmsg); in main()
831 rc = kwboot_bootmsg(tty, bootmsg); in main()
839 rc = kwboot_xmodem(tty, img, size); in main()
847 rc = kwboot_terminal(tty); in main()
856 if (tty >= 0) in main()
857 close(tty); in main()