Lines Matching refs:tty
285 kwboot_bootmsg(int tty, void *msg) in kwboot_bootmsg() argument
296 rc = tcflush(tty, TCIOFLUSH); in kwboot_bootmsg()
300 rc = kwboot_tty_send(tty, msg, 8); in kwboot_bootmsg()
306 rc = kwboot_tty_recv(tty, &c, 1, msg_rsp_timeo); in kwboot_bootmsg()
318 kwboot_debugmsg(int tty, void *msg) in kwboot_debugmsg() argument
327 rc = tcflush(tty, TCIOFLUSH); in kwboot_debugmsg()
331 rc = kwboot_tty_send(tty, msg, 8); in kwboot_debugmsg()
337 rc = kwboot_tty_recv(tty, buf, 16, msg_rsp_timeo); in kwboot_debugmsg()
419 kwboot_xmodem(int tty, const void *_data, size_t size) in kwboot_xmodem() argument
442 rc = kwboot_xm_sendblock(tty, &block); in kwboot_xmodem()
450 rc = kwboot_tty_send_char(tty, EOT); in kwboot_xmodem()
457 kwboot_tty_send_char(tty, CAN); in kwboot_xmodem()
503 kwboot_terminal(int tty) in kwboot_terminal() argument
536 FD_SET(tty, &rfds); in kwboot_terminal()
537 nfds = nfds < tty ? tty : nfds; in kwboot_terminal()
548 if (FD_ISSET(tty, &rfds)) { in kwboot_terminal()
549 rc = kwboot_term_pipe(tty, STDOUT_FILENO, NULL, NULL); in kwboot_terminal()
555 rc = kwboot_term_pipe(in, tty, quit, &s); in kwboot_terminal()
705 int rv, rc, tty, term, prot, patch; in main() local
713 tty = -1; in main()
794 tty = kwboot_open_tty(ttypath, speed); in main()
795 if (tty < 0) { in main()
819 rc = kwboot_debugmsg(tty, debugmsg); in main()
825 rc = kwboot_bootmsg(tty, bootmsg); in main()
833 rc = kwboot_xmodem(tty, img, size); in main()
841 rc = kwboot_terminal(tty); in main()
850 if (tty >= 0) in main()
851 close(tty); in main()