Lines Matching refs:scb

231 static int dos_open (struct serial *scb, const char *name);
232 static void dos_raw (struct serial *scb);
233 static int dos_readchar (struct serial *scb, int timeout);
234 static int dos_setbaudrate (struct serial *scb, int rate);
235 static int dos_write (struct serial *scb, const char *str, int len);
236 static void dos_close (struct serial *scb);
237 static serial_ttystate dos_get_tty_state (struct serial *scb);
238 static int dos_set_tty_state (struct serial *scb, serial_ttystate state);
459 dos_open (struct serial *scb, const char *name)
490 scb->fd = fd;
537 scb->fd = fd;
564 dos_close (struct serial *scb)
569 if (!scb)
572 port = &ports[scb->fd];
607 dos_noop (struct serial *scb)
613 dos_raw (struct serial *scb)
619 dos_readchar (struct serial *scb, int timeout)
621 struct dos_ttystate *port = &ports[scb->fd];
637 dos_get_tty_state (struct serial *scb)
639 struct dos_ttystate *port = &ports[scb->fd];
651 if (scb->fd >= 3 || !isatty (scb->fd))
661 dos_set_tty_state (struct serial *scb, serial_ttystate ttystate)
666 dos_setbaudrate (scb, state->baudrate);
671 dos_noflush_set_tty_state (struct serial *scb, serial_ttystate new_ttystate,
677 dos_setbaudrate (scb, state->baudrate);
682 dos_flush_input (struct serial *scb)
684 struct dos_ttystate *port = &ports[scb->fd];
694 dos_print_tty_state (struct serial *scb, serial_ttystate ttystate,
725 dos_setbaudrate (struct serial *scb, int rate)
727 struct dos_ttystate *port = &ports[scb->fd];
757 dos_setstopbits (struct serial *scb, int num)
759 struct dos_ttystate *port = &ports[scb->fd];
784 dos_write (struct serial *scb, const char *str, int len)
786 volatile struct dos_ttystate *port = &ports[scb->fd];
825 dos_sendbreak (struct serial *scb)
827 volatile struct dos_ttystate *port = &ports[scb->fd];