taglinefilesource code
tty926drivers/char/console.cstatic void respond_string(const char * p, struct tty_struct * tty)
tty929drivers/char/console.ctty_insert_flip_char(tty, *p, 0);
tty932drivers/char/console.ctty_schedule_flip(tty);
tty935drivers/char/console.cstatic void cursor_report(int currcons, struct tty_struct * tty)
tty940drivers/char/console.crespond_string(buf, tty);
tty943drivers/char/console.cstatic inline void status_report(struct tty_struct * tty)
tty945drivers/char/console.crespond_string("\033[0n", tty);  /* Terminal ok */
tty948drivers/char/console.cstatic inline void respond_ID(struct tty_struct * tty)
tty950drivers/char/console.crespond_string(VT102ID, tty);
tty953drivers/char/console.cvoid mouse_report(struct tty_struct * tty, int butt, int mrx, int mry)
tty959drivers/char/console.crespond_string(buf, tty);
tty1336drivers/char/console.cstatic void con_stop(struct tty_struct *tty)
tty1339drivers/char/console.cif (!tty)
tty1341drivers/char/console.cconsole_num = MINOR(tty->device) - (tty->driver.minor_start);
tty1351drivers/char/console.cstatic void con_start(struct tty_struct *tty)
tty1354drivers/char/console.cif (!tty)
tty1356drivers/char/console.cconsole_num = MINOR(tty->device) - (tty->driver.minor_start);
tty1363drivers/char/console.cstatic int con_write(struct tty_struct * tty, int from_user,
tty1368drivers/char/console.cstruct vt_struct *vt = (struct vt_struct *)tty->driver_data;
tty1385drivers/char/console.cwhile (!tty->stopped &&  count) {
tty1555drivers/char/console.crespond_ID(tty);
tty1646drivers/char/console.cstatus_report(tty);
tty1648drivers/char/console.ccursor_report(currcons,tty);
tty1710drivers/char/console.crespond_ID(tty);
tty1824drivers/char/console.cstatic int con_write_room(struct tty_struct *tty)
tty1826drivers/char/console.cif (tty->stopped)
tty1831drivers/char/console.cstatic int con_chars_in_buffer(struct tty_struct *tty)
tty1904drivers/char/console.cstatic void con_throttle(struct tty_struct *tty)
tty1908drivers/char/console.cstatic void con_unthrottle(struct tty_struct *tty)
tty1910drivers/char/console.cstruct vt_struct *vt = (struct vt_struct *) tty->driver_data;
tty2244drivers/char/console.cint con_open(struct tty_struct *tty, struct file * filp)
tty2249drivers/char/console.cidx = MINOR(tty->device) - tty->driver.minor_start;
tty2256drivers/char/console.ctty->driver_data = vt_cons[idx];
tty2258drivers/char/console.cif (!tty->winsize.ws_row && !tty->winsize.ws_col) {
tty2259drivers/char/console.ctty->winsize.ws_row = video_num_lines;
tty2260drivers/char/console.ctty->winsize.ws_col = video_num_columns;
tty527drivers/char/cyclades.ccy_stop(struct tty_struct *tty)
tty530drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty539drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_stop"))
tty559drivers/char/cyclades.ccy_start(struct tty_struct *tty)
tty562drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty571drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_start"))
tty648drivers/char/cyclades.cstruct tty_struct *tty;
tty703drivers/char/cyclades.cif(info->tty == 0){
tty714drivers/char/cyclades.ctty = info->tty;
tty721drivers/char/cyclades.cif (tty->flip.count < TTY_FLIPBUF_SIZE){
tty722drivers/char/cyclades.ctty->flip.count++;
tty725drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ =
tty727drivers/char/cyclades.c*tty->flip.char_buf_ptr++ =
tty730drivers/char/cyclades.cdo_SAK(tty);
tty733drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ =
tty735drivers/char/cyclades.c*tty->flip.char_buf_ptr++ =
tty738drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ =
tty740drivers/char/cyclades.c*tty->flip.char_buf_ptr++ =
tty743drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ =
tty745drivers/char/cyclades.c*tty->flip.char_buf_ptr++ = 0;
tty750drivers/char/cyclades.cif(tty->flip.count < TTY_FLIPBUF_SIZE){
tty751drivers/char/cyclades.ctty->flip.count++;
tty752drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ =
tty754drivers/char/cyclades.c*tty->flip.char_buf_ptr++ =
tty762drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ = 0;
tty763drivers/char/cyclades.c*tty->flip.char_buf_ptr++ = 0;
tty766drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ = 0;
tty767drivers/char/cyclades.c*tty->flip.char_buf_ptr++ = 0;
tty785drivers/char/cyclades.cif (tty->flip.count >= TTY_FLIPBUF_SIZE){
tty788drivers/char/cyclades.ctty->flip.count++;
tty790drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ = TTY_NORMAL;
tty791drivers/char/cyclades.c*tty->flip.char_buf_ptr++ = data;
tty797drivers/char/cyclades.cqueue_task_irq_off(&tty->flip.tqueue, &tq_timer);
tty823drivers/char/cyclades.cif(info->tty == 0){
tty868drivers/char/cyclades.cif (info->tty->stopped || info->tty->hw_stopped){
tty926drivers/char/cyclades.cif(info->tty == 0){ /* nowhere to put the data, ignore it */
tty942drivers/char/cyclades.cif(info->tty->stopped){
tty945drivers/char/cyclades.cinfo->tty->stopped = 0;
tty952drivers/char/cyclades.cinfo->tty->stopped = 1;
tty1007drivers/char/cyclades.cstruct tty_struct    *tty;
tty1009drivers/char/cyclades.ctty = info->tty;
tty1010drivers/char/cyclades.cif (!tty)
tty1014drivers/char/cyclades.ctty_hangup(info->tty);
tty1023drivers/char/cyclades.cif((tty->flags & (1<< TTY_DO_WRITE_WAKEUP))
tty1024drivers/char/cyclades.c&& tty->ldisc.write_wakeup){
tty1025drivers/char/cyclades.c(tty->ldisc.write_wakeup)(tty);
tty1027drivers/char/cyclades.cwake_up_interruptible(&tty->write_wait);
tty1199drivers/char/cyclades.cif (info->tty){
tty1200drivers/char/cyclades.cset_bit(TTY_IO_ERROR, &info->tty->flags);
tty1248drivers/char/cyclades.cif (info->tty){
tty1249drivers/char/cyclades.cclear_bit(TTY_IO_ERROR, &info->tty->flags);
tty1326drivers/char/cyclades.cif (!info->tty || (info->tty->termios->c_cflag & HUPCL)) {
tty1338drivers/char/cyclades.cif (info->tty){
tty1339drivers/char/cyclades.cset_bit(TTY_IO_ERROR, &info->tty->flags);
tty1362drivers/char/cyclades.cif (!info->tty || !info->tty->termios){
tty1368drivers/char/cyclades.ccflag = info->tty->termios->c_cflag;
tty1391drivers/char/cyclades.cinfo->tty->termios->c_cflag &= ~CBAUDEX;
tty1494drivers/char/cyclades.cbase_addr[CySCHR1<<index] = START_CHAR(info->tty);
tty1495drivers/char/cyclades.cbase_addr[CySCHR2<<index] = STOP_CHAR(info->tty);
tty1510drivers/char/cyclades.cif (C_CLOCAL(info->tty)) {
tty1538drivers/char/cyclades.cif (info->tty){
tty1539drivers/char/cyclades.cclear_bit(TTY_IO_ERROR, &info->tty->flags);
tty1548drivers/char/cyclades.ccy_put_char(struct tty_struct *tty, unsigned char ch)
tty1550drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1557drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_put_char"))
tty1560drivers/char/cyclades.cif (!tty || !info->xmit_buf)
tty1577drivers/char/cyclades.ccy_flush_chars(struct tty_struct *tty)
tty1579drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1588drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_flush_chars"))
tty1591drivers/char/cyclades.cif (info->xmit_cnt <= 0 || tty->stopped
tty1592drivers/char/cyclades.c|| tty->hw_stopped || !info->xmit_buf)
tty1617drivers/char/cyclades.ccy_write(struct tty_struct * tty, int from_user,
tty1620drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1628drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_write")){
tty1632drivers/char/cyclades.cif (!tty || !info->xmit_buf || !tmp_buf){
tty1664drivers/char/cyclades.c&& !tty->stopped
tty1665drivers/char/cyclades.c&& !tty->hw_stopped ) {
tty1673drivers/char/cyclades.ccy_write_room(struct tty_struct *tty)
tty1675drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1682drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_write_room"))
tty1692drivers/char/cyclades.ccy_chars_in_buffer(struct tty_struct *tty)
tty1694drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1700drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_chars_in_buffer"))
tty1708drivers/char/cyclades.ccy_flush_buffer(struct tty_struct *tty)
tty1710drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1717drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_flush_buffer"))
tty1722drivers/char/cyclades.cwake_up_interruptible(&tty->write_wait);
tty1723drivers/char/cyclades.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP))
tty1724drivers/char/cyclades.c&& tty->ldisc.write_wakeup)
tty1725drivers/char/cyclades.c(tty->ldisc.write_wakeup)(tty);
tty1734drivers/char/cyclades.ccy_throttle(struct tty_struct * tty)
tty1736drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1744drivers/char/cyclades.cprintk("throttle %s: %d....\n", _tty_name(tty, buf),
tty1745drivers/char/cyclades.ctty->ldisc.chars_in_buffer(tty));
tty1749drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_nthrottle")){
tty1753drivers/char/cyclades.cif (I_IXOFF(tty)) {
tty1754drivers/char/cyclades.cinfo->x_char = STOP_CHAR(tty);
tty1776drivers/char/cyclades.ccy_unthrottle(struct tty_struct * tty)
tty1778drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1786drivers/char/cyclades.cprintk("throttle %s: %d....\n", _tty_name(tty, buf),
tty1787drivers/char/cyclades.ctty->ldisc.chars_in_buffer(tty));
tty1791drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_nthrottle")){
tty1795drivers/char/cyclades.cif (I_IXOFF(tty)) {
tty1796drivers/char/cyclades.cinfo->x_char = START_CHAR(tty);
tty2143drivers/char/cyclades.ccy_ioctl(struct tty_struct *tty, struct file * file,
tty2147drivers/char/cyclades.cstruct cyclades_port * info = (struct cyclades_port *)tty->driver_data;
tty2213drivers/char/cyclades.cret_val = tty_check_change(tty);
tty2216drivers/char/cyclades.ctty_wait_until_sent(tty,0);
tty2221drivers/char/cyclades.cret_val = tty_check_change(tty);
tty2224drivers/char/cyclades.ctty_wait_until_sent(tty,0);
tty2241drivers/char/cyclades.cput_fs_long(C_CLOCAL(tty) ? 1 : 0,
tty2246drivers/char/cyclades.ctty->termios->c_cflag =
tty2247drivers/char/cyclades.c((tty->termios->c_cflag & ~CLOCAL) |
tty2288drivers/char/cyclades.ccy_set_termios(struct tty_struct *tty, struct termios * old_termios)
tty2290drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty2296drivers/char/cyclades.cif (tty->termios->c_cflag == old_termios->c_cflag)
tty2301drivers/char/cyclades.c!(tty->termios->c_cflag & CRTSCTS)) {
tty2302drivers/char/cyclades.ctty->stopped = 0;
tty2303drivers/char/cyclades.ccy_start(tty);
tty2307drivers/char/cyclades.c(tty->termios->c_cflag & CLOCAL))
tty2316drivers/char/cyclades.ccy_close(struct tty_struct * tty, struct file * filp)
tty2318drivers/char/cyclades.cstruct cyclades_port * info = (struct cyclades_port *)tty->driver_data;
tty2327drivers/char/cyclades.c|| serial_paranoia_check(info, tty->device, "cy_close")){
tty2342drivers/char/cyclades.cif ((tty->count == 1) && (info->count != 1)) {
tty2375drivers/char/cyclades.cinfo->normal_termios = *tty->termios;
tty2377drivers/char/cyclades.cinfo->callout_termios = *tty->termios;
tty2379drivers/char/cyclades.ctty_wait_until_sent(tty, 30*HZ); /* 30 seconds timeout */
tty2381drivers/char/cyclades.cif (tty->driver.flush_buffer)
tty2382drivers/char/cyclades.ctty->driver.flush_buffer(tty);
tty2383drivers/char/cyclades.cif (tty->ldisc.flush_buffer)
tty2384drivers/char/cyclades.ctty->ldisc.flush_buffer(tty);
tty2386drivers/char/cyclades.cinfo->tty = 0;
tty2412drivers/char/cyclades.ccy_hangup(struct tty_struct *tty)
tty2414drivers/char/cyclades.cstruct cyclades_port * info = (struct cyclades_port *)tty->driver_data;
tty2420drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_hangup"))
tty2429drivers/char/cyclades.cinfo->tty = 0;
tty2443drivers/char/cyclades.cblock_til_ready(struct tty_struct *tty, struct file * filp,
tty2470drivers/char/cyclades.cif (tty->driver.subtype == SERIAL_TYPE_CALLOUT) {
tty2554drivers/char/cyclades.c&& (C_CLOCAL(tty)
tty2594drivers/char/cyclades.ccy_open(struct tty_struct *tty, struct file * filp)
tty2600drivers/char/cyclades.cline = MINOR(tty->device) - tty->driver.minor_start;
tty2611drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_open")){
tty2621drivers/char/cyclades.ctty->driver_data = info;
tty2622drivers/char/cyclades.cinfo->tty = tty;
tty2632drivers/char/cyclades.cif (tty->driver.subtype == SERIAL_TYPE_NORMAL)
tty2633drivers/char/cyclades.c*tty->termios = info->normal_termios;
tty2635drivers/char/cyclades.c*tty->termios = info->callout_termios;
tty2645drivers/char/cyclades.cretval = block_til_ready(tty, filp, info);
tty2876drivers/char/cyclades.cinfo->tty = 0;
tty3148drivers/char/cyclades.c(long)info->tty, info->read_status_mask,
tty274drivers/char/istallion.cstruct tty_struct  *tty;
tty629drivers/char/istallion.cstatic int  stli_open(struct tty_struct *tty, struct file *filp);
tty630drivers/char/istallion.cstatic void  stli_close(struct tty_struct *tty, struct file *filp);
tty631drivers/char/istallion.cstatic int  stli_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count);
tty632drivers/char/istallion.cstatic void  stli_putchar(struct tty_struct *tty, unsigned char ch);
tty633drivers/char/istallion.cstatic void  stli_flushchars(struct tty_struct *tty);
tty634drivers/char/istallion.cstatic int  stli_writeroom(struct tty_struct *tty);
tty635drivers/char/istallion.cstatic int  stli_charsinbuffer(struct tty_struct *tty);
tty636drivers/char/istallion.cstatic int  stli_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg);
tty637drivers/char/istallion.cstatic void  stli_settermios(struct tty_struct *tty, struct termios *old);
tty638drivers/char/istallion.cstatic void  stli_throttle(struct tty_struct *tty);
tty639drivers/char/istallion.cstatic void  stli_unthrottle(struct tty_struct *tty);
tty640drivers/char/istallion.cstatic void  stli_stop(struct tty_struct *tty);
tty641drivers/char/istallion.cstatic void  stli_start(struct tty_struct *tty);
tty642drivers/char/istallion.cstatic void  stli_flushbuffer(struct tty_struct *tty);
tty643drivers/char/istallion.cstatic void  stli_hangup(struct tty_struct *tty);
tty831drivers/char/istallion.cif (portp->tty != (struct tty_struct *) NULL)
tty832drivers/char/istallion.ctty_hangup(portp->tty);
tty867drivers/char/istallion.cstatic int stli_open(struct tty_struct *tty, struct file *filp)
tty875drivers/char/istallion.cprintk("stli_open(tty=%x,filp=%x): device=%x\n", (int) tty, (int) filp, tty->device);
tty878drivers/char/istallion.cminordev = MINOR(tty->device);
tty916drivers/char/istallion.cportp->tty = tty;
tty917drivers/char/istallion.ctty->driver_data = portp;
tty930drivers/char/istallion.cclear_bit(TTY_IO_ERROR, &tty->flags);
tty956drivers/char/istallion.cif (tty->driver.subtype == STL_DRVTYPCALLOUT) {
tty980drivers/char/istallion.cif (tty->driver.subtype == STL_DRVTYPSERIAL)
tty981drivers/char/istallion.c*tty->termios = portp->normaltermios;
tty983drivers/char/istallion.c*tty->termios = portp->callouttermios;
tty994drivers/char/istallion.cstatic void stli_close(struct tty_struct *tty, struct file *filp)
tty1001drivers/char/istallion.cprintk("stli_close(tty=%x,filp=%x)\n", (int) tty, (int) filp);
tty1004drivers/char/istallion.cportp = tty->driver_data;
tty1022drivers/char/istallion.cportp->normaltermios = *tty->termios;
tty1024drivers/char/istallion.cportp->callouttermios = *tty->termios;
tty1032drivers/char/istallion.cif (tty == stli_txcooktty)
tty1033drivers/char/istallion.cstli_flushchars(tty);
tty1034drivers/char/istallion.ctty->closing = 1;
tty1037drivers/char/istallion.ctty_wait_until_sent(tty, portp->closing_wait);
tty1043drivers/char/istallion.cif (tty->termios->c_cflag & HUPCL) {
tty1052drivers/char/istallion.cset_bit(TTY_IO_ERROR, &tty->flags);
tty1053drivers/char/istallion.cif (tty->ldisc.flush_buffer)
tty1054drivers/char/istallion.c(tty->ldisc.flush_buffer)(tty);
tty1056drivers/char/istallion.cstli_flushbuffer(tty);
tty1058drivers/char/istallion.ctty->closing = 0;
tty1059drivers/char/istallion.ctty->driver_data = (void *) NULL;
tty1060drivers/char/istallion.cportp->tty = (struct tty_struct *) NULL;
tty1085drivers/char/istallion.cstruct tty_struct  *tty;
tty1103drivers/char/istallion.ctty = portp->tty;
tty1104drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1106drivers/char/istallion.cstli_mkasyport(portp, &aport, tty->termios);
tty1339drivers/char/istallion.cif (portp->tty == (struct tty_struct *) NULL)
tty1347drivers/char/istallion.cstli_mkasyport(portp, &aport, portp->tty->termios);
tty1410drivers/char/istallion.c((portp->tty->termios->c_cflag & CLOCAL) ||
tty1437drivers/char/istallion.cstatic int stli_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count)
tty1449drivers/char/istallion.cprintk("stli_write(tty=%x,from_user=%d,buf=%x,count=%d)\n", (int) tty, from_user, (int) buf, count);
tty1452drivers/char/istallion.cif ((tty == (struct tty_struct *) NULL) || (stli_tmpwritebuf == (char *) NULL))
tty1454drivers/char/istallion.cif (tty == stli_txcooktty)
tty1455drivers/char/istallion.cstli_flushchars(tty);
tty1456drivers/char/istallion.cportp = tty->driver_data;
tty1562drivers/char/istallion.cstatic void stli_putchar(struct tty_struct *tty, unsigned char ch)
tty1565drivers/char/istallion.cprintk("stli_putchar(tty=%x,ch=%x)\n", (int) tty, (int) ch);
tty1568drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1570drivers/char/istallion.cif (tty != stli_txcooktty) {
tty1573drivers/char/istallion.cstli_txcooktty = tty;
tty1589drivers/char/istallion.cstatic void stli_flushchars(struct tty_struct *tty)
tty1602drivers/char/istallion.cprintk("stli_flushchars(tty=%x)\n", (int) tty);
tty1611drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1615drivers/char/istallion.cif (tty != cooktty)
tty1616drivers/char/istallion.ctty = cooktty;
tty1620drivers/char/istallion.cportp = tty->driver_data;
tty1684drivers/char/istallion.cstatic int stli_writeroom(struct tty_struct *tty)
tty1693drivers/char/istallion.cprintk("stli_writeroom(tty=%x)\n", (int) tty);
tty1696drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1698drivers/char/istallion.cif (tty == stli_txcooktty) {
tty1705drivers/char/istallion.cportp = tty->driver_data;
tty1727drivers/char/istallion.cif (tty == stli_txcooktty) {
tty1744drivers/char/istallion.cstatic int stli_charsinbuffer(struct tty_struct *tty)
tty1753drivers/char/istallion.cprintk("stli_charsinbuffer(tty=%x)\n", (int) tty);
tty1756drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1758drivers/char/istallion.cif (tty == stli_txcooktty)
tty1759drivers/char/istallion.cstli_flushchars(tty);
tty1760drivers/char/istallion.cportp = tty->driver_data;
tty1858drivers/char/istallion.cstatic int stli_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg)
tty1866drivers/char/istallion.cprintk("stli_ioctl(tty=%x,file=%x,cmd=%x,arg=%x)\n", (int) tty, (int) file, cmd, (int) arg);
tty1869drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1871drivers/char/istallion.cportp = tty->driver_data;
tty1884drivers/char/istallion.cif ((rc = tty_check_change(tty)) == 0) {
tty1885drivers/char/istallion.ctty_wait_until_sent(tty, 0);
tty1893drivers/char/istallion.cif ((rc = tty_check_change(tty)) == 0) {
tty1894drivers/char/istallion.ctty_wait_until_sent(tty, 0);
tty1901drivers/char/istallion.cput_fs_long(((tty->termios->c_cflag & CLOCAL) ? 1 : 0), (unsigned long *) arg);
tty1906drivers/char/istallion.ctty->termios->c_cflag = (tty->termios->c_cflag & ~CLOCAL) | (arg ? CLOCAL : 0);
tty1986drivers/char/istallion.cstatic void stli_settermios(struct tty_struct *tty, struct termios *old)
tty1994drivers/char/istallion.cprintk("stli_settermios(tty=%x,old=%x)\n", (int) tty, (int) old);
tty1997drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1999drivers/char/istallion.cportp = tty->driver_data;
tty2008drivers/char/istallion.ctiosp = tty->termios;
tty2017drivers/char/istallion.ctty->hw_stopped = 0;
tty2034drivers/char/istallion.cstatic void stli_throttle(struct tty_struct *tty)
tty2039drivers/char/istallion.cprintk("stli_throttle(tty=%x)\n", (int) tty);
tty2042drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty2044drivers/char/istallion.cportp = tty->driver_data;
tty2059drivers/char/istallion.cstatic void stli_unthrottle(struct tty_struct *tty)
tty2064drivers/char/istallion.cprintk("stli_unthrottle(tty=%x)\n", (int) tty);
tty2067drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty2069drivers/char/istallion.cportp = tty->driver_data;
tty2083drivers/char/istallion.cstatic void stli_stop(struct tty_struct *tty)
tty2090drivers/char/istallion.cprintk("stli_stop(tty=%x)\n", (int) tty);
tty2093drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty2095drivers/char/istallion.cportp = tty->driver_data;
tty2117drivers/char/istallion.cstatic void stli_start(struct tty_struct *tty)
tty2124drivers/char/istallion.cprintk("stli_start(tty=%x)\n", (int) tty);
tty2127drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty2129drivers/char/istallion.cportp = tty->driver_data;
tty2167drivers/char/istallion.cif (portp->tty == (struct tty_struct *) NULL)
tty2169drivers/char/istallion.ctty_hangup(portp->tty);
tty2181drivers/char/istallion.cstatic void stli_hangup(struct tty_struct *tty)
tty2188drivers/char/istallion.cprintk("stli_hangup(tty=%x)\n", (int) tty);
tty2191drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty2193drivers/char/istallion.cportp = tty->driver_data;
tty2208drivers/char/istallion.cif (tty->termios->c_cflag & HUPCL) {
tty2222drivers/char/istallion.cset_bit(TTY_IO_ERROR, &tty->flags);
tty2223drivers/char/istallion.ctty->driver_data = (void *) NULL;
tty2224drivers/char/istallion.cportp->tty = (struct tty_struct *) NULL;
tty2239drivers/char/istallion.cstatic void stli_flushbuffer(struct tty_struct *tty)
tty2246drivers/char/istallion.cprintk("stli_flushbuffer(tty=%x)\n", (int) tty);
tty2249drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty2251drivers/char/istallion.cportp = tty->driver_data;
tty2262drivers/char/istallion.cif (tty == stli_txcooktty) {
tty2279drivers/char/istallion.cwake_up_interruptible(&tty->write_wait);
tty2280drivers/char/istallion.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && tty->ldisc.write_wakeup)
tty2281drivers/char/istallion.c(tty->ldisc.write_wakeup)(tty);
tty2350drivers/char/istallion.cstruct tty_struct  *tty;
tty2360drivers/char/istallion.ctty = portp->tty;
tty2361drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty2378drivers/char/istallion.clen = MIN(len, (TTY_FLIPBUF_SIZE - tty->flip.count));
tty2383drivers/char/istallion.cmemcpy(tty->flip.char_buf_ptr, (char *) (shbuf + tail), stlen);
tty2384drivers/char/istallion.cmemset(tty->flip.flag_buf_ptr, 0, stlen);
tty2385drivers/char/istallion.ctty->flip.char_buf_ptr += stlen;
tty2386drivers/char/istallion.ctty->flip.flag_buf_ptr += stlen;
tty2387drivers/char/istallion.ctty->flip.count += stlen;
tty2402drivers/char/istallion.ctty_schedule_flip(tty);
tty2459drivers/char/istallion.cstruct tty_struct  *tty;
tty2534drivers/char/istallion.ctty = portp->tty;
tty2545drivers/char/istallion.cif (tty != (struct tty_struct *) NULL)
tty2554drivers/char/istallion.cif (tty != (struct tty_struct *) NULL) {
tty2555drivers/char/istallion.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && tty->ldisc.write_wakeup)
tty2556drivers/char/istallion.c(tty->ldisc.write_wakeup)(tty);
tty2557drivers/char/istallion.cwake_up_interruptible(&tty->write_wait);
tty2562drivers/char/istallion.cif (tty != (struct tty_struct *) NULL) {
tty2563drivers/char/istallion.cif (tty->flip.count < TTY_FLIPBUF_SIZE) {
tty2564drivers/char/istallion.ctty->flip.count++;
tty2565drivers/char/istallion.c*tty->flip.flag_buf_ptr++ = TTY_BREAK;
tty2566drivers/char/istallion.c*tty->flip.char_buf_ptr++ = 0;
tty2569drivers/char/istallion.cdo_SAK(tty);
tty2571drivers/char/istallion.ctty_schedule_flip(tty);
tty4358drivers/char/istallion.cif (portp->tty != (struct tty_struct *) NULL) {
tty4359drivers/char/istallion.cstli_comstats.ttystate = portp->tty->flags;
tty4360drivers/char/istallion.cstli_comstats.cflags = portp->tty->termios->c_cflag;
tty4361drivers/char/istallion.cstli_comstats.iflags = portp->tty->termios->c_iflag;
tty4362drivers/char/istallion.cstli_comstats.oflags = portp->tty->termios->c_oflag;
tty4363drivers/char/istallion.cstli_comstats.lflags = portp->tty->termios->c_lflag;
tty4364drivers/char/istallion.cstli_comstats.rxbuffered = portp->tty->flip.count;
tty116drivers/char/keyboard.cstatic struct tty_struct * tty = NULL;
tty382drivers/char/keyboard.ctty = ttytab[fg_console];
tty531drivers/char/keyboard.c(vc_kbd_mode(kbd,VC_REPEAT) && tty &&
tty532drivers/char/keyboard.c(L_ECHO(tty) || (tty->driver.chars_in_buffer(tty) == 0)))) {
tty583drivers/char/keyboard.cif (tty) {
tty584drivers/char/keyboard.ctty_insert_flip_char(tty, ch, 0);
tty585drivers/char/keyboard.ctty_schedule_flip(tty);
tty592drivers/char/keyboard.cif (!tty)
tty596drivers/char/keyboard.ctty_insert_flip_char(tty, *cp, 0);
tty599drivers/char/keyboard.ctty_schedule_flip(tty);
tty640drivers/char/keyboard.cif (rep || !tty)
tty648drivers/char/keyboard.cif (tty->stopped)
tty649drivers/char/keyboard.cstart_tty(tty);
tty651drivers/char/keyboard.cstop_tty(tty);
tty708drivers/char/keyboard.cif (!tty)
tty710drivers/char/keyboard.ctty_insert_flip_char(tty, 0, TTY_BREAK);
tty711drivers/char/keyboard.ctty_schedule_flip(tty);
tty745drivers/char/keyboard.cdo_SAK(tty);
tty58drivers/char/n_tty.cstatic inline void put_tty_queue(unsigned char c, struct tty_struct *tty)
tty60drivers/char/n_tty.cif (tty->read_cnt < N_TTY_BUF_SIZE) {
tty61drivers/char/n_tty.ctty->read_buf[tty->read_head] = c;
tty62drivers/char/n_tty.ctty->read_head = (tty->read_head + 1) & (N_TTY_BUF_SIZE-1);
tty63drivers/char/n_tty.ctty->read_cnt++;
tty70drivers/char/n_tty.cvoid n_tty_flush_buffer(struct tty_struct * tty)
tty72drivers/char/n_tty.ctty->read_head = tty->read_tail = tty->read_cnt = 0;
tty73drivers/char/n_tty.ctty->canon_head = tty->canon_data = tty->erasing = 0;
tty74drivers/char/n_tty.cmemset(&tty->read_flags, 0, sizeof tty->read_flags);
tty76drivers/char/n_tty.cif (!tty->link)
tty79drivers/char/n_tty.cif (tty->driver.unthrottle)
tty80drivers/char/n_tty.c(tty->driver.unthrottle)(tty);
tty81drivers/char/n_tty.cif (tty->link->packet) {
tty82drivers/char/n_tty.ctty->ctrl_status |= TIOCPKT_FLUSHREAD;
tty83drivers/char/n_tty.cwake_up_interruptible(&tty->link->read_wait);
tty90drivers/char/n_tty.cint n_tty_chars_in_buffer(struct tty_struct *tty)
tty92drivers/char/n_tty.creturn tty->read_cnt;
tty99drivers/char/n_tty.cstatic int opost(unsigned char c, struct tty_struct *tty)
tty103drivers/char/n_tty.cspace = tty->driver.write_room(tty);
tty107drivers/char/n_tty.cif (O_OPOST(tty)) {
tty110drivers/char/n_tty.cif (O_ONLRET(tty))
tty111drivers/char/n_tty.ctty->column = 0;
tty112drivers/char/n_tty.cif (O_ONLCR(tty)) {
tty115drivers/char/n_tty.ctty->driver.put_char(tty, '\r');
tty116drivers/char/n_tty.ctty->column = 0;
tty118drivers/char/n_tty.ctty->canon_column = tty->column;
tty121drivers/char/n_tty.cif (O_ONOCR(tty) && tty->column == 0)
tty123drivers/char/n_tty.cif (O_OCRNL(tty)) {
tty125drivers/char/n_tty.cif (O_ONLRET(tty))
tty126drivers/char/n_tty.ctty->canon_column = tty->column = 0;
tty129drivers/char/n_tty.ctty->canon_column = tty->column = 0;
tty132drivers/char/n_tty.cspaces = 8 - (tty->column & 7);
tty133drivers/char/n_tty.cif (O_TABDLY(tty) == XTABS) {
tty136drivers/char/n_tty.ctty->column += spaces;
tty137drivers/char/n_tty.ctty->driver.write(tty, 0, "        ", spaces);
tty140drivers/char/n_tty.ctty->column += spaces;
tty143drivers/char/n_tty.cif (tty->column > 0)
tty144drivers/char/n_tty.ctty->column--;
tty147drivers/char/n_tty.cif (O_OLCUC(tty))
tty150drivers/char/n_tty.ctty->column++;
tty154drivers/char/n_tty.ctty->driver.put_char(tty, c);
tty158drivers/char/n_tty.cstatic inline void put_char(unsigned char c, struct tty_struct *tty)
tty160drivers/char/n_tty.ctty->driver.put_char(tty, c);
tty165drivers/char/n_tty.cstatic void echo_char(unsigned char c, struct tty_struct *tty)
tty167drivers/char/n_tty.cif (L_ECHOCTL(tty) && iscntrl(c) && c != '\t') {
tty168drivers/char/n_tty.cput_char('^', tty);
tty169drivers/char/n_tty.cput_char(c ^ 0100, tty);
tty170drivers/char/n_tty.ctty->column += 2;
tty172drivers/char/n_tty.copost(c, tty);
tty175drivers/char/n_tty.cstatic inline void finish_erasing(struct tty_struct *tty)
tty177drivers/char/n_tty.cif (tty->erasing) {
tty178drivers/char/n_tty.cput_char('/', tty);
tty179drivers/char/n_tty.ctty->column += 2;
tty180drivers/char/n_tty.ctty->erasing = 0;
tty184drivers/char/n_tty.cstatic void eraser(unsigned char c, struct tty_struct *tty)
tty189drivers/char/n_tty.cif (tty->read_head == tty->canon_head) {
tty193drivers/char/n_tty.cif (c == ERASE_CHAR(tty))
tty195drivers/char/n_tty.celse if (c == WERASE_CHAR(tty))
tty198drivers/char/n_tty.cif (!L_ECHO(tty)) {
tty199drivers/char/n_tty.ctty->read_cnt -= ((tty->read_head - tty->canon_head) &
tty201drivers/char/n_tty.ctty->read_head = tty->canon_head;
tty204drivers/char/n_tty.cif (!L_ECHOK(tty) || !L_ECHOKE(tty)) {
tty205drivers/char/n_tty.ctty->read_cnt -= ((tty->read_head - tty->canon_head) &
tty207drivers/char/n_tty.ctty->read_head = tty->canon_head;
tty208drivers/char/n_tty.cfinish_erasing(tty);
tty209drivers/char/n_tty.cecho_char(KILL_CHAR(tty), tty);
tty211drivers/char/n_tty.cif (L_ECHOK(tty))
tty212drivers/char/n_tty.copost('\n', tty);
tty219drivers/char/n_tty.cwhile (tty->read_head != tty->canon_head) {
tty220drivers/char/n_tty.chead = (tty->read_head - 1) & (N_TTY_BUF_SIZE-1);
tty221drivers/char/n_tty.cc = tty->read_buf[head];
tty229drivers/char/n_tty.ctty->read_head = head;
tty230drivers/char/n_tty.ctty->read_cnt--;
tty231drivers/char/n_tty.cif (L_ECHO(tty)) {
tty232drivers/char/n_tty.cif (L_ECHOPRT(tty)) {
tty233drivers/char/n_tty.cif (!tty->erasing) {
tty234drivers/char/n_tty.cput_char('\\', tty);
tty235drivers/char/n_tty.ctty->column++;
tty236drivers/char/n_tty.ctty->erasing = 1;
tty238drivers/char/n_tty.cecho_char(c, tty);
tty239drivers/char/n_tty.c} else if (!L_ECHOE(tty)) {
tty240drivers/char/n_tty.cecho_char(ERASE_CHAR(tty), tty);
tty242drivers/char/n_tty.cunsigned int col = tty->canon_column;
tty243drivers/char/n_tty.cunsigned long tail = tty->canon_head;
tty246drivers/char/n_tty.cwhile (tail != tty->read_head) {
tty247drivers/char/n_tty.cc = tty->read_buf[tail];
tty251drivers/char/n_tty.cif (L_ECHOCTL(tty))
tty259drivers/char/n_tty.cif (tty->column > 0x80000000)
tty260drivers/char/n_tty.ctty->column = 0; 
tty263drivers/char/n_tty.cwhile (tty->column > col) {
tty265drivers/char/n_tty.cput_char('\b', tty);
tty266drivers/char/n_tty.cif (tty->column > 0)
tty267drivers/char/n_tty.ctty->column--;
tty270drivers/char/n_tty.cif (iscntrl(c) && L_ECHOCTL(tty)) {
tty271drivers/char/n_tty.cput_char('\b', tty);
tty272drivers/char/n_tty.cput_char(' ', tty);
tty273drivers/char/n_tty.cput_char('\b', tty);
tty274drivers/char/n_tty.cif (tty->column > 0)
tty275drivers/char/n_tty.ctty->column--;
tty277drivers/char/n_tty.cif (!iscntrl(c) || L_ECHOCTL(tty)) {
tty278drivers/char/n_tty.cput_char('\b', tty);
tty279drivers/char/n_tty.cput_char(' ', tty);
tty280drivers/char/n_tty.cput_char('\b', tty);
tty281drivers/char/n_tty.cif (tty->column > 0)
tty282drivers/char/n_tty.ctty->column--;
tty289drivers/char/n_tty.cif (tty->read_head == tty->canon_head)
tty290drivers/char/n_tty.cfinish_erasing(tty);
tty293drivers/char/n_tty.cstatic void isig(int sig, struct tty_struct *tty)
tty295drivers/char/n_tty.cif (tty->pgrp > 0)
tty296drivers/char/n_tty.ckill_pg(tty->pgrp, sig, 1);
tty297drivers/char/n_tty.cif (!L_NOFLSH(tty)) {
tty298drivers/char/n_tty.cn_tty_flush_buffer(tty);
tty299drivers/char/n_tty.cif (tty->driver.flush_buffer)
tty300drivers/char/n_tty.ctty->driver.flush_buffer(tty);
tty304drivers/char/n_tty.cstatic inline void n_tty_receive_break(struct tty_struct *tty)
tty306drivers/char/n_tty.cif (I_IGNBRK(tty))
tty308drivers/char/n_tty.cif (I_BRKINT(tty)) {
tty309drivers/char/n_tty.cisig(SIGINT, tty);
tty312drivers/char/n_tty.cif (I_PARMRK(tty)) {
tty313drivers/char/n_tty.cput_tty_queue('\377', tty);
tty314drivers/char/n_tty.cput_tty_queue('\0', tty);
tty316drivers/char/n_tty.cput_tty_queue('\0', tty);
tty317drivers/char/n_tty.cwake_up_interruptible(&tty->read_wait);
tty320drivers/char/n_tty.cstatic inline void n_tty_receive_overrun(struct tty_struct *tty)
tty324drivers/char/n_tty.ctty->num_overrun++;
tty325drivers/char/n_tty.cif (tty->overrun_time < (jiffies - HZ)) {
tty326drivers/char/n_tty.cprintk("%s: %d input overrun(s)\n", _tty_name(tty, buf),
tty327drivers/char/n_tty.ctty->num_overrun);
tty328drivers/char/n_tty.ctty->overrun_time = jiffies;
tty329drivers/char/n_tty.ctty->num_overrun = 0;
tty333drivers/char/n_tty.cstatic inline void n_tty_receive_parity_error(struct tty_struct *tty,
tty336drivers/char/n_tty.cif (I_IGNPAR(tty)) {
tty339drivers/char/n_tty.cif (I_PARMRK(tty)) {
tty340drivers/char/n_tty.cput_tty_queue('\377', tty);
tty341drivers/char/n_tty.cput_tty_queue('\0', tty);
tty342drivers/char/n_tty.cput_tty_queue(c, tty);
tty344drivers/char/n_tty.cput_tty_queue('\0', tty);
tty345drivers/char/n_tty.cwake_up_interruptible(&tty->read_wait);
tty348drivers/char/n_tty.cstatic inline void n_tty_receive_char(struct tty_struct *tty, unsigned char c)
tty350drivers/char/n_tty.cif (tty->raw) {
tty351drivers/char/n_tty.cput_tty_queue(c, tty);
tty355drivers/char/n_tty.cif (tty->stopped && I_IXON(tty) && I_IXANY(tty)) {
tty356drivers/char/n_tty.cstart_tty(tty);
tty360drivers/char/n_tty.cif (I_ISTRIP(tty))
tty362drivers/char/n_tty.cif (I_IUCLC(tty) && L_IEXTEN(tty))
tty365drivers/char/n_tty.cif (tty->closing) {
tty366drivers/char/n_tty.cif (I_IXON(tty)) {
tty367drivers/char/n_tty.cif (c == START_CHAR(tty))
tty368drivers/char/n_tty.cstart_tty(tty);
tty369drivers/char/n_tty.celse if (c == STOP_CHAR(tty))
tty370drivers/char/n_tty.cstop_tty(tty);
tty381drivers/char/n_tty.cif (!test_bit(c, &tty->process_char_map) || tty->lnext) {
tty382drivers/char/n_tty.cfinish_erasing(tty);
tty383drivers/char/n_tty.ctty->lnext = 0;
tty384drivers/char/n_tty.cif (L_ECHO(tty)) {
tty385drivers/char/n_tty.cif (tty->read_cnt >= N_TTY_BUF_SIZE-1) {
tty386drivers/char/n_tty.cput_char('\a', tty); /* beep if no space */
tty390drivers/char/n_tty.cif (tty->canon_head == tty->read_head)
tty391drivers/char/n_tty.ctty->canon_column = tty->column;
tty392drivers/char/n_tty.cecho_char(c, tty);
tty394drivers/char/n_tty.cif (I_PARMRK(tty) && c == (unsigned char) '\377')
tty395drivers/char/n_tty.cput_tty_queue(c, tty);
tty396drivers/char/n_tty.cput_tty_queue(c, tty);
tty401drivers/char/n_tty.cif (I_IGNCR(tty))
tty403drivers/char/n_tty.cif (I_ICRNL(tty))
tty405drivers/char/n_tty.c} else if (c == '\n' && I_INLCR(tty))
tty407drivers/char/n_tty.cif (I_IXON(tty)) {
tty408drivers/char/n_tty.cif (c == START_CHAR(tty)) {
tty409drivers/char/n_tty.cstart_tty(tty);
tty412drivers/char/n_tty.cif (c == STOP_CHAR(tty)) {
tty413drivers/char/n_tty.cstop_tty(tty);
tty417drivers/char/n_tty.cif (L_ISIG(tty)) {
tty418drivers/char/n_tty.cif (c == INTR_CHAR(tty)) {
tty419drivers/char/n_tty.cisig(SIGINT, tty);
tty422drivers/char/n_tty.cif (c == QUIT_CHAR(tty)) {
tty423drivers/char/n_tty.cisig(SIGQUIT, tty);
tty426drivers/char/n_tty.cif (c == SUSP_CHAR(tty)) {
tty427drivers/char/n_tty.cif (!is_orphaned_pgrp(tty->pgrp))
tty428drivers/char/n_tty.cisig(SIGTSTP, tty);
tty432drivers/char/n_tty.cif (L_ICANON(tty)) {
tty433drivers/char/n_tty.cif (c == ERASE_CHAR(tty) || c == KILL_CHAR(tty) ||
tty434drivers/char/n_tty.c(c == WERASE_CHAR(tty) && L_IEXTEN(tty))) {
tty435drivers/char/n_tty.ceraser(c, tty);
tty438drivers/char/n_tty.cif (c == LNEXT_CHAR(tty) && L_IEXTEN(tty)) {
tty439drivers/char/n_tty.ctty->lnext = 1;
tty440drivers/char/n_tty.cif (L_ECHO(tty)) {
tty441drivers/char/n_tty.cfinish_erasing(tty);
tty442drivers/char/n_tty.cif (L_ECHOCTL(tty)) {
tty443drivers/char/n_tty.cput_char('^', tty);
tty444drivers/char/n_tty.cput_char('\b', tty);
tty449drivers/char/n_tty.cif (c == REPRINT_CHAR(tty) && L_ECHO(tty) &&
tty450drivers/char/n_tty.cL_IEXTEN(tty)) {
tty451drivers/char/n_tty.cunsigned long tail = tty->canon_head;
tty453drivers/char/n_tty.cfinish_erasing(tty);
tty454drivers/char/n_tty.cecho_char(c, tty);
tty455drivers/char/n_tty.copost('\n', tty);
tty456drivers/char/n_tty.cwhile (tail != tty->read_head) {
tty457drivers/char/n_tty.cecho_char(tty->read_buf[tail], tty);
tty463drivers/char/n_tty.cif (L_ECHO(tty) || L_ECHONL(tty)) {
tty464drivers/char/n_tty.cif (tty->read_cnt >= N_TTY_BUF_SIZE-1) {
tty465drivers/char/n_tty.cput_char('\a', tty);
tty468drivers/char/n_tty.copost('\n', tty);
tty472drivers/char/n_tty.cif (c == EOF_CHAR(tty)) {
tty473drivers/char/n_tty.cif (tty->canon_head != tty->read_head)
tty474drivers/char/n_tty.cset_bit(TTY_PUSH, &tty->flags);
tty478drivers/char/n_tty.cif ((c == EOL_CHAR(tty)) ||
tty479drivers/char/n_tty.c(c == EOL2_CHAR(tty) && L_IEXTEN(tty))) {
tty483drivers/char/n_tty.cif (L_ECHO(tty)) {
tty484drivers/char/n_tty.cif (tty->read_cnt >= N_TTY_BUF_SIZE-1) {
tty485drivers/char/n_tty.cput_char('\a', tty);
tty489drivers/char/n_tty.cif (tty->canon_head == tty->read_head)
tty490drivers/char/n_tty.ctty->canon_column = tty->column;
tty491drivers/char/n_tty.cecho_char(c, tty);
tty497drivers/char/n_tty.cif (I_PARMRK(tty) && c == (unsigned char) '\377')
tty498drivers/char/n_tty.cput_tty_queue(c, tty);
tty501drivers/char/n_tty.cset_bit(tty->read_head, &tty->read_flags);
tty502drivers/char/n_tty.cput_tty_queue(c, tty);
tty503drivers/char/n_tty.ctty->canon_head = tty->read_head;
tty504drivers/char/n_tty.ctty->canon_data++;
tty505drivers/char/n_tty.cif (tty->fasync)
tty506drivers/char/n_tty.ckill_fasync(tty->fasync, SIGIO);
tty507drivers/char/n_tty.cif (tty->read_wait)
tty508drivers/char/n_tty.cwake_up_interruptible(&tty->read_wait);
tty513drivers/char/n_tty.cfinish_erasing(tty);
tty514drivers/char/n_tty.cif (L_ECHO(tty)) {
tty515drivers/char/n_tty.cif (tty->read_cnt >= N_TTY_BUF_SIZE-1) {
tty516drivers/char/n_tty.cput_char('\a', tty); /* beep if no space */
tty520drivers/char/n_tty.copost('\n', tty);
tty523drivers/char/n_tty.cif (tty->canon_head == tty->read_head)
tty524drivers/char/n_tty.ctty->canon_column = tty->column;
tty525drivers/char/n_tty.cecho_char(c, tty);
tty529drivers/char/n_tty.cif (I_PARMRK(tty) && c == (unsigned char) '\377')
tty530drivers/char/n_tty.cput_tty_queue(c, tty);
tty532drivers/char/n_tty.cput_tty_queue(c, tty);
tty535drivers/char/n_tty.cstatic void n_tty_receive_buf(struct tty_struct *tty, const unsigned char *cp,
tty542drivers/char/n_tty.cif (!tty->read_buf)
tty545drivers/char/n_tty.cif (tty->real_raw) {
tty546drivers/char/n_tty.ci = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt,
tty547drivers/char/n_tty.cN_TTY_BUF_SIZE - tty->read_head));
tty548drivers/char/n_tty.cmemcpy(tty->read_buf + tty->read_head, cp, i);
tty549drivers/char/n_tty.ctty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1);
tty550drivers/char/n_tty.ctty->read_cnt += i;
tty554drivers/char/n_tty.ci = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt,
tty555drivers/char/n_tty.cN_TTY_BUF_SIZE - tty->read_head));
tty556drivers/char/n_tty.cmemcpy(tty->read_buf + tty->read_head, cp, i);
tty557drivers/char/n_tty.ctty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1);
tty558drivers/char/n_tty.ctty->read_cnt += i;
tty565drivers/char/n_tty.cn_tty_receive_char(tty, *p);
tty568drivers/char/n_tty.cn_tty_receive_break(tty);
tty572drivers/char/n_tty.cn_tty_receive_parity_error(tty, *p);
tty575drivers/char/n_tty.cn_tty_receive_overrun(tty);
tty578drivers/char/n_tty.cprintk("%s: unknown flag %d\n", tty_name(tty),
tty583drivers/char/n_tty.cif (tty->driver.flush_chars)
tty584drivers/char/n_tty.ctty->driver.flush_chars(tty);
tty587drivers/char/n_tty.cif (!tty->icanon && (tty->read_cnt >= tty->minimum_to_wake)) {
tty588drivers/char/n_tty.cif (tty->fasync)
tty589drivers/char/n_tty.ckill_fasync(tty->fasync, SIGIO);
tty590drivers/char/n_tty.cif (tty->read_wait)
tty591drivers/char/n_tty.cwake_up_interruptible(&tty->read_wait);
tty594drivers/char/n_tty.cif ((tty->read_cnt >= TTY_THRESHOLD_THROTTLE) &&
tty595drivers/char/n_tty.ctty->driver.throttle &&
tty596drivers/char/n_tty.c!set_bit(TTY_THROTTLED, &tty->flags))
tty597drivers/char/n_tty.ctty->driver.throttle(tty);
tty600drivers/char/n_tty.cstatic int n_tty_receive_room(struct tty_struct *tty)
tty602drivers/char/n_tty.cint  left = N_TTY_BUF_SIZE - tty->read_cnt - 1;
tty610drivers/char/n_tty.cif (tty->icanon && !tty->canon_data)
tty624drivers/char/n_tty.cstatic void n_tty_set_termios(struct tty_struct *tty, struct termios * old)
tty626drivers/char/n_tty.cif (!tty)
tty629drivers/char/n_tty.ctty->icanon = (L_ICANON(tty) != 0);
tty630drivers/char/n_tty.cif (I_ISTRIP(tty) || I_IUCLC(tty) || I_IGNCR(tty) ||
tty631drivers/char/n_tty.cI_ICRNL(tty) || I_INLCR(tty) || L_ICANON(tty) ||
tty632drivers/char/n_tty.cI_IXON(tty) || L_ISIG(tty) || L_ECHO(tty) ||
tty633drivers/char/n_tty.cI_PARMRK(tty)) {
tty635drivers/char/n_tty.cmemset(tty->process_char_map, 0, 256/8);
tty637drivers/char/n_tty.cif (I_IGNCR(tty) || I_ICRNL(tty))
tty638drivers/char/n_tty.cset_bit('\r', &tty->process_char_map);
tty639drivers/char/n_tty.cif (I_INLCR(tty))
tty640drivers/char/n_tty.cset_bit('\n', &tty->process_char_map);
tty642drivers/char/n_tty.cif (L_ICANON(tty)) {
tty643drivers/char/n_tty.cset_bit(ERASE_CHAR(tty), &tty->process_char_map);
tty644drivers/char/n_tty.cset_bit(KILL_CHAR(tty), &tty->process_char_map);
tty645drivers/char/n_tty.cset_bit(EOF_CHAR(tty), &tty->process_char_map);
tty646drivers/char/n_tty.cset_bit('\n', &tty->process_char_map);
tty647drivers/char/n_tty.cset_bit(EOL_CHAR(tty), &tty->process_char_map);
tty648drivers/char/n_tty.cif (L_IEXTEN(tty)) {
tty649drivers/char/n_tty.cset_bit(WERASE_CHAR(tty),
tty650drivers/char/n_tty.c&tty->process_char_map);
tty651drivers/char/n_tty.cset_bit(LNEXT_CHAR(tty),
tty652drivers/char/n_tty.c&tty->process_char_map);
tty653drivers/char/n_tty.cset_bit(EOL2_CHAR(tty),
tty654drivers/char/n_tty.c&tty->process_char_map);
tty655drivers/char/n_tty.cif (L_ECHO(tty))
tty656drivers/char/n_tty.cset_bit(REPRINT_CHAR(tty),
tty657drivers/char/n_tty.c&tty->process_char_map);
tty660drivers/char/n_tty.cif (I_IXON(tty)) {
tty661drivers/char/n_tty.cset_bit(START_CHAR(tty), &tty->process_char_map);
tty662drivers/char/n_tty.cset_bit(STOP_CHAR(tty), &tty->process_char_map);
tty664drivers/char/n_tty.cif (L_ISIG(tty)) {
tty665drivers/char/n_tty.cset_bit(INTR_CHAR(tty), &tty->process_char_map);
tty666drivers/char/n_tty.cset_bit(QUIT_CHAR(tty), &tty->process_char_map);
tty667drivers/char/n_tty.cset_bit(SUSP_CHAR(tty), &tty->process_char_map);
tty669drivers/char/n_tty.cclear_bit(__DISABLED_CHAR, &tty->process_char_map);
tty671drivers/char/n_tty.ctty->raw = 0;
tty672drivers/char/n_tty.ctty->real_raw = 0;
tty674drivers/char/n_tty.ctty->raw = 1;
tty675drivers/char/n_tty.cif ((I_IGNBRK(tty) || (!I_BRKINT(tty) && !I_PARMRK(tty))) &&
tty676drivers/char/n_tty.c(I_IGNPAR(tty) || !I_INPCK(tty)) &&
tty677drivers/char/n_tty.c(tty->driver.flags & TTY_DRIVER_REAL_RAW))
tty678drivers/char/n_tty.ctty->real_raw = 1;
tty680drivers/char/n_tty.ctty->real_raw = 0;
tty684drivers/char/n_tty.cstatic void n_tty_close(struct tty_struct *tty)
tty686drivers/char/n_tty.cn_tty_flush_buffer(tty);
tty687drivers/char/n_tty.cif (tty->read_buf) {
tty688drivers/char/n_tty.cfree_page((unsigned long) tty->read_buf);
tty689drivers/char/n_tty.ctty->read_buf = 0;
tty693drivers/char/n_tty.cstatic int n_tty_open(struct tty_struct *tty)
tty695drivers/char/n_tty.cif (!tty)
tty698drivers/char/n_tty.cif (!tty->read_buf) {
tty699drivers/char/n_tty.ctty->read_buf = (unsigned char *)
tty701drivers/char/n_tty.cif (!tty->read_buf)
tty704drivers/char/n_tty.cmemset(tty->read_buf, 0, N_TTY_BUF_SIZE);
tty705drivers/char/n_tty.ctty->read_head = tty->read_tail = tty->read_cnt = 0;
tty706drivers/char/n_tty.ctty->canon_head = tty->canon_data = tty->erasing = 0;
tty707drivers/char/n_tty.ctty->column = 0;
tty708drivers/char/n_tty.cmemset(tty->read_flags, 0, sizeof(tty->read_flags));
tty709drivers/char/n_tty.cn_tty_set_termios(tty, 0);
tty710drivers/char/n_tty.ctty->minimum_to_wake = 1;
tty711drivers/char/n_tty.ctty->closing = 0;
tty715drivers/char/n_tty.cstatic inline int input_available_p(struct tty_struct *tty, int amt)
tty717drivers/char/n_tty.cif (L_ICANON(tty)) {
tty718drivers/char/n_tty.cif (tty->canon_data)
tty720drivers/char/n_tty.c} else if (tty->read_cnt >= (amt ? amt : 1))
tty734drivers/char/n_tty.cstatic inline void copy_from_read_buf(struct tty_struct *tty,
tty741drivers/char/n_tty.cn = MIN(*nr, MIN(tty->read_cnt, N_TTY_BUF_SIZE - tty->read_tail));
tty744drivers/char/n_tty.cmemcpy_tofs(*b, &tty->read_buf[tty->read_tail], n);
tty745drivers/char/n_tty.ctty->read_tail = (tty->read_tail + n) & (N_TTY_BUF_SIZE-1);
tty746drivers/char/n_tty.ctty->read_cnt -= n;
tty751drivers/char/n_tty.cstatic int read_chan(struct tty_struct *tty, struct file *file,
tty763drivers/char/n_tty.cif (!tty->read_buf) {
tty774drivers/char/n_tty.ccurrent->tty == tty) {
tty775drivers/char/n_tty.cif (tty->pgrp <= 0)
tty777drivers/char/n_tty.celse if (current->pgrp != tty->pgrp) {
tty786drivers/char/n_tty.cif (L_ICANON(tty)) {
tty790drivers/char/n_tty.ctime = (HZ / 10) * TIME_CHAR(tty);
tty791drivers/char/n_tty.cminimum = MIN_CHAR(tty);
tty795drivers/char/n_tty.ctty->minimum_to_wake = 1;
tty796drivers/char/n_tty.celse if (!tty->read_wait ||
tty797drivers/char/n_tty.c(tty->minimum_to_wake > minimum))
tty798drivers/char/n_tty.ctty->minimum_to_wake = minimum;
tty805drivers/char/n_tty.ctty->minimum_to_wake = minimum = 1;
tty809drivers/char/n_tty.cadd_wait_queue(&tty->read_wait, &wait);
tty812drivers/char/n_tty.cif (tty->packet && tty->link->ctrl_status) {
tty815drivers/char/n_tty.cput_user(tty->link->ctrl_status, b++);
tty816drivers/char/n_tty.ctty->link->ctrl_status = 0;
tty824drivers/char/n_tty.cif (((minimum - (b - buf)) < tty->minimum_to_wake) &&
tty826drivers/char/n_tty.ctty->minimum_to_wake = (minimum - (b - buf));
tty828drivers/char/n_tty.cif (!input_available_p(tty, 0)) {
tty829drivers/char/n_tty.cif (tty->flags & (1 << TTY_SLAVE_CLOSED)) {
tty851drivers/char/n_tty.cif (tty->packet && b == buf) {
tty856drivers/char/n_tty.cif (L_ICANON(tty)) {
tty861drivers/char/n_tty.cif (!tty->read_cnt) {
tty865drivers/char/n_tty.ceol = clear_bit(tty->read_tail,
tty866drivers/char/n_tty.c&tty->read_flags);
tty867drivers/char/n_tty.cc = tty->read_buf[tty->read_tail];
tty868drivers/char/n_tty.ctty->read_tail = ((tty->read_tail+1) &
tty870drivers/char/n_tty.ctty->read_cnt--;
tty878drivers/char/n_tty.cif (--tty->canon_data < 0) {
tty879drivers/char/n_tty.ctty->canon_data = 0;
tty889drivers/char/n_tty.ccopy_from_read_buf(tty, &b, &nr);
tty890drivers/char/n_tty.ccopy_from_read_buf(tty, &b, &nr);
tty896drivers/char/n_tty.cif (tty->driver.unthrottle &&
tty897drivers/char/n_tty.c(tty->read_cnt <= TTY_THRESHOLD_UNTHROTTLE)
tty898drivers/char/n_tty.c&& clear_bit(TTY_THROTTLED, &tty->flags))
tty899drivers/char/n_tty.ctty->driver.unthrottle(tty);
tty906drivers/char/n_tty.cremove_wait_queue(&tty->read_wait, &wait);
tty908drivers/char/n_tty.cif (!tty->read_wait)
tty909drivers/char/n_tty.ctty->minimum_to_wake = minimum;
tty915drivers/char/n_tty.cclear_bit(TTY_PUSH, &tty->flags);
tty916drivers/char/n_tty.cif (!size && clear_bit(TTY_PUSH, &tty->flags))
tty919drivers/char/n_tty.cclear_bit(TTY_PUSH, &tty->flags);
tty923drivers/char/n_tty.cstatic int write_chan(struct tty_struct * tty, struct file * file,
tty932drivers/char/n_tty.cif (L_TOSTOP(tty) && file->f_inode->i_rdev != CONSOLE_DEV) {
tty933drivers/char/n_tty.cretval = tty_check_change(tty);
tty938drivers/char/n_tty.cadd_wait_queue(&tty->write_wait, &wait);
tty945drivers/char/n_tty.cif (tty_hung_up_p(file) || (tty->link && !tty->link->count)) {
tty949drivers/char/n_tty.cif (O_OPOST(tty)) {
tty952drivers/char/n_tty.cif (opost(c, tty) < 0)
tty956drivers/char/n_tty.cif (tty->driver.flush_chars)
tty957drivers/char/n_tty.ctty->driver.flush_chars(tty);
tty959drivers/char/n_tty.cc = tty->driver.write(tty, 1, b, nr);
tty972drivers/char/n_tty.cremove_wait_queue(&tty->write_wait, &wait);
tty976drivers/char/n_tty.cstatic int normal_select(struct tty_struct * tty, struct inode * inode,
tty981drivers/char/n_tty.cif (input_available_p(tty, TIME_CHAR(tty) ? 0 :
tty982drivers/char/n_tty.cMIN_CHAR(tty)))
tty986drivers/char/n_tty.cif (tty->packet && tty->link->ctrl_status)
tty988drivers/char/n_tty.cif (tty->flags & (1 << TTY_SLAVE_CLOSED))
tty992drivers/char/n_tty.cif (!tty->read_wait) {
tty993drivers/char/n_tty.cif (MIN_CHAR(tty) && !TIME_CHAR(tty))
tty994drivers/char/n_tty.ctty->minimum_to_wake = MIN_CHAR(tty);
tty996drivers/char/n_tty.ctty->minimum_to_wake = 1;
tty998drivers/char/n_tty.cselect_wait(&tty->read_wait, wait);
tty1001drivers/char/n_tty.cif (tty->driver.chars_in_buffer(tty) < WAKEUP_CHARS)
tty1003drivers/char/n_tty.cselect_wait(&tty->write_wait, wait);
tty64drivers/char/pty.cstatic void pty_close(struct tty_struct * tty, struct file * filp)
tty66drivers/char/pty.cif (!tty)
tty68drivers/char/pty.cif (tty->driver.subtype == PTY_TYPE_MASTER) {
tty69drivers/char/pty.cif (tty->count > 1)
tty70drivers/char/pty.cprintk("master pty_close: count = %d!!\n", tty->count);
tty72drivers/char/pty.cif (tty->count > 2)
tty75drivers/char/pty.cwake_up_interruptible(&tty->read_wait);
tty76drivers/char/pty.cwake_up_interruptible(&tty->write_wait);
tty77drivers/char/pty.cif (!tty->link)
tty79drivers/char/pty.cwake_up_interruptible(&tty->link->read_wait);
tty80drivers/char/pty.cwake_up_interruptible(&tty->link->write_wait);
tty81drivers/char/pty.cif (tty->driver.subtype == PTY_TYPE_MASTER) {
tty82drivers/char/pty.ctty_hangup(tty->link);
tty83drivers/char/pty.cset_bit(TTY_SLAVE_CLOSED, &tty->flags);
tty85drivers/char/pty.cstart_tty(tty);
tty86drivers/char/pty.cset_bit(TTY_SLAVE_CLOSED, &tty->link->flags);
tty100drivers/char/pty.cstatic void pty_unthrottle(struct tty_struct * tty)
tty102drivers/char/pty.cstruct tty_struct *o_tty = tty->link;
tty111drivers/char/pty.cset_bit(TTY_THROTTLED, &tty->flags);
tty114drivers/char/pty.cstatic int pty_write(struct tty_struct * tty, int from_user,
tty117drivers/char/pty.cstruct tty_struct *to = tty->link;
tty121drivers/char/pty.cif (!to || tty->stopped)
tty127drivers/char/pty.c((tty->driver.subtype-1) * PTY_BUF_SIZE);
tty148drivers/char/pty.cstatic int pty_write_room(struct tty_struct *tty)
tty150drivers/char/pty.cstruct tty_struct *to = tty->link;
tty152drivers/char/pty.cif (!to || tty->stopped)
tty158drivers/char/pty.cstatic int pty_chars_in_buffer(struct tty_struct *tty)
tty160drivers/char/pty.cstruct tty_struct *to = tty->link;
tty168drivers/char/pty.cstatic void pty_flush_buffer(struct tty_struct *tty)
tty170drivers/char/pty.cstruct tty_struct *to = tty->link;
tty179drivers/char/pty.ctty->ctrl_status |= TIOCPKT_FLUSHWRITE;
tty184drivers/char/pty.cint pty_open(struct tty_struct *tty, struct file * filp)
tty189drivers/char/pty.cif (!tty || !tty->link)
tty191drivers/char/pty.cline = MINOR(tty->device) - tty->driver.minor_start;
tty195drivers/char/pty.ctty->driver_data = pty;
tty207drivers/char/pty.cif (tty->driver.subtype == PTY_TYPE_SLAVE)
tty208drivers/char/pty.cclear_bit(TTY_SLAVE_CLOSED, &tty->link->flags);
tty210drivers/char/pty.cset_bit(TTY_THROTTLED, &tty->flags);
tty213drivers/char/pty.cwhile (test_bit(TTY_SLAVE_CLOSED, &tty->link->flags) &&
tty216drivers/char/pty.cif (!tty->link->count)
tty214drivers/char/scc.cint scc_open(struct tty_struct *tty, struct file *filp);
tty215drivers/char/scc.cstatic void scc_close(struct tty_struct *tty, struct file *filp);
tty216drivers/char/scc.cint scc_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count);
tty217drivers/char/scc.cstatic void scc_put_char(struct tty_struct *tty, unsigned char ch);
tty218drivers/char/scc.cstatic void scc_flush_chars(struct tty_struct *tty);
tty219drivers/char/scc.cstatic int scc_write_room(struct tty_struct *tty);
tty220drivers/char/scc.cstatic int scc_chars_in_buffer(struct tty_struct *tty);
tty221drivers/char/scc.cstatic void scc_flush_buffer(struct tty_struct *tty);
tty222drivers/char/scc.cstatic int scc_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg);
tty223drivers/char/scc.cstatic void scc_set_termios(struct tty_struct *tty, struct termios *old_termios);
tty224drivers/char/scc.cstatic void scc_set_ldisc(struct tty_struct *tty);
tty225drivers/char/scc.cstatic void scc_throttle(struct tty_struct *tty);
tty226drivers/char/scc.cstatic void scc_unthrottle(struct tty_struct *tty);
tty227drivers/char/scc.cstatic void scc_start(struct tty_struct *tty);
tty228drivers/char/scc.cstatic void scc_stop(struct tty_struct *tty);
tty505drivers/char/scc.cprintk("z8530drv: %s: can't allocate memory for rx buffer pool", kdevname(scc->tty->device));
tty530drivers/char/scc.cprintk("z8530drv: %s: can't allocate memory for tx buffer pool", kdevname(scc->tty->device));
tty669drivers/char/scc.cprintk("z8530drv: scc_get_buffer(%s): tx buffer pool empty\n", kdevname(scc->tty->device));
tty685drivers/char/scc.cprintk("z8530drv: scc_get_buffer(%s): rx buffer pool empty\n", kdevname(scc->tty->device));
tty764drivers/char/scc.cif (!scc->tty) break;
tty805drivers/char/scc.cif (!scc->tty) break;
tty1365drivers/char/scc.cif (scc2 == scc || !(scc2->tty && grp2)) 
tty1499drivers/char/scc.cif (scc->tty && scc->init)
tty1544drivers/char/scc.ckdevname(scc->tty->device));
tty1785drivers/char/scc.cstruct tty_struct * tty = scc->tty;
tty1792drivers/char/scc.cwhile(tty->flip.count < TTY_FLIPBUF_SIZE-4)
tty1814drivers/char/scc.ctty_insert_flip_char(tty, FEND, 0);  /* send FEND for old frame */
tty1827drivers/char/scc.ctty_insert_flip_char(tty, FEND, 0);
tty1830drivers/char/scc.ctty_insert_flip_char(tty, 0, 0);
tty1838drivers/char/scc.ctty_insert_flip_char(tty, FESC, 0);
tty1839drivers/char/scc.ctty_insert_flip_char(tty, TFEND, 0);
tty1842drivers/char/scc.ctty_insert_flip_char(tty, FESC, 0);
tty1843drivers/char/scc.ctty_insert_flip_char(tty, TFESC, 0);
tty1846drivers/char/scc.ctty_insert_flip_char(tty, ch, 0);
tty1853drivers/char/scc.cqueue_task(&tty->flip.tqueue, &tq_timer); /* kick it... */
tty1955drivers/char/scc.cint scc_open(struct tty_struct *tty, struct file * filp)
tty1960drivers/char/scc.cchan = MINOR(tty->device) - tty->driver.minor_start;
tty1967drivers/char/scc.ctty->driver_data = &SCC_Info[0];
tty1974drivers/char/scc.ctty->driver_data = scc;
tty1975drivers/char/scc.ctty->termios->c_cflag &= ~CBAUD;
tty1980drivers/char/scc.ckdevname(tty->device));
tty1986drivers/char/scc.cif(scc->tty != NULL)
tty1992drivers/char/scc.cscc->tty = tty;
tty2010drivers/char/scc.cscc_close(struct tty_struct *tty, struct file * filp)
tty2012drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2026drivers/char/scc.ctty->driver_data = NULLBUF;
tty2037drivers/char/scc.cscc->tty = NULL;
tty2047drivers/char/scc.ctty->stopped = 0;
tty2060drivers/char/scc.cif (scc->tty == NULL)
tty2064drivers/char/scc.cspeed = baud_table[scc->tty->termios->c_cflag & CBAUD];
tty2092drivers/char/scc.cscc_ioctl(struct tty_struct *tty, struct file * file, unsigned int cmd, unsigned long arg)
tty2094drivers/char/scc.cstruct scc_channel * scc = tty->driver_data;
tty2106drivers/char/scc.ckdevname(tty->device));
tty2213drivers/char/scc.cscc->tty=tty;
tty2333drivers/char/scc.cmemcpy_tofs((void *) arg, scc->tty->termios, sizeof(struct termios));
tty2342drivers/char/scc.cmemcpy_fromfs(scc->tty->termios, (void *) arg, sizeof(struct termios));
tty2464drivers/char/scc.cint scc_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count)
tty2466drivers/char/scc.cstruct scc_channel * scc = tty->driver_data;
tty2471drivers/char/scc.cif (!tty) return count;
tty2473drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_write"))
tty2501drivers/char/scc.cwake_up_interruptible(&tty->write_wait);
tty2503drivers/char/scc.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
tty2504drivers/char/scc.ctty->ldisc.write_wakeup)
tty2505drivers/char/scc.c(tty->ldisc.write_wakeup)(tty);
tty2528drivers/char/scc.cstatic void scc_put_char(struct tty_struct * tty, unsigned char ch)
tty2530drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2533drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_put_char"))
tty2537drivers/char/scc.cscc_write(tty, 0, &ch2, 1);  /* that's all */
tty2540drivers/char/scc.cstatic void scc_flush_chars(struct tty_struct * tty)
tty2542drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2544drivers/char/scc.cscc_paranoia_check(scc, tty->device, "scc_flush_chars"); /* just to annoy the user... */
tty2550drivers/char/scc.cstatic int scc_write_room(struct tty_struct *tty)
tty2552drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2554drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_write_room"))
tty2560drivers/char/scc.cstatic int scc_chars_in_buffer(struct tty_struct *tty)
tty2562drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2570drivers/char/scc.cstatic void scc_flush_buffer(struct tty_struct *tty)
tty2572drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2574drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_flush_buffer"))
tty2576drivers/char/scc.cwake_up_interruptible(&tty->write_wait);
tty2577drivers/char/scc.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
tty2578drivers/char/scc.ctty->ldisc.write_wakeup)
tty2579drivers/char/scc.c(tty->ldisc.write_wakeup)(tty);
tty2582drivers/char/scc.cstatic void scc_throttle(struct tty_struct *tty)
tty2584drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2586drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_throttle"))
tty2590drivers/char/scc.cprintk("scc: scc_throttle() called for device %d\n", MINOR(tty->device));
tty2599drivers/char/scc.cstatic void scc_unthrottle(struct tty_struct *tty)
tty2601drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2603drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_unthrottle"))
tty2607drivers/char/scc.cprintk("scc: scc_unthrottle() called for device %d\n", MINOR(tty->device));
tty2616drivers/char/scc.cstatic void scc_start(struct tty_struct *tty)
tty2618drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2620drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_start"))
tty2623drivers/char/scc.cscc_unthrottle(tty);
tty2626drivers/char/scc.cstatic void scc_stop(struct tty_struct *tty)
tty2628drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2630drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_stop"))
tty2633drivers/char/scc.cscc_throttle(tty);
tty2637drivers/char/scc.cscc_set_termios(struct tty_struct * tty, struct termios * old_termios)
tty2639drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2641drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_set_termios"))
tty2644drivers/char/scc.cif (old_termios && (tty->termios->c_cflag == old_termios->c_cflag)) 
tty2651drivers/char/scc.cscc_set_ldisc(struct tty_struct * tty)
tty2653drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2655drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_set_ldisc"))
tty114drivers/char/selection.cint set_selection(const unsigned long arg, struct tty_struct *tty)
tty145drivers/char/selection.cmouse_report(tty, sel_mode & 15, xs, ys);
tty270drivers/char/selection.cint paste_selection(struct tty_struct *tty)
tty276drivers/char/selection.cstruct vt_struct *vt = (struct vt_struct *) tty->driver_data;
tty284drivers/char/selection.cif (test_bit(TTY_THROTTLED, &tty->flags)) {
tty288drivers/char/selection.cl = MIN(c, tty->ldisc.receive_room(tty));
tty289drivers/char/selection.ctty->ldisc.receive_buf(tty, bp, 0, l);
tty9drivers/char/selection.hextern int set_selection(const unsigned long arg, struct tty_struct *tty);
tty10drivers/char/selection.hextern int paste_selection(struct tty_struct *tty);
tty13drivers/char/selection.hextern void mouse_report(struct tty_struct * tty, int butt, int mrx, int mry);
tty299drivers/char/serial.cstatic void rs_stop(struct tty_struct *tty)
tty301drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty304drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_stop"))
tty315drivers/char/serial.cstatic void rs_start(struct tty_struct *tty)
tty317drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty320drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_start"))
tty378drivers/char/serial.cstruct tty_struct *tty = info->tty;
tty389drivers/char/serial.cif (tty->flip.count >= TTY_FLIPBUF_SIZE)
tty391drivers/char/serial.ctty->flip.count++;
tty394drivers/char/serial.c*tty->flip.flag_buf_ptr++ = TTY_BREAK;
tty396drivers/char/serial.cdo_SAK(tty);
tty398drivers/char/serial.c*tty->flip.flag_buf_ptr++ = TTY_PARITY;
tty400drivers/char/serial.c*tty->flip.flag_buf_ptr++ = TTY_FRAME;
tty402drivers/char/serial.c*tty->flip.flag_buf_ptr++ = TTY_OVERRUN;
tty404drivers/char/serial.c*tty->flip.flag_buf_ptr++ = 0;
tty405drivers/char/serial.c*tty->flip.char_buf_ptr++ = ch;
tty409drivers/char/serial.cqueue_task_irq_off(&tty->flip.tqueue, &tq_timer);
tty426drivers/char/serial.cif ((info->xmit_cnt <= 0) || info->tty->stopped ||
tty427drivers/char/serial.cinfo->tty->hw_stopped) {
tty492drivers/char/serial.cif (info->tty->hw_stopped) {
tty497drivers/char/serial.cinfo->tty->hw_stopped = 0;
tty508drivers/char/serial.cinfo->tty->hw_stopped = 1;
tty541drivers/char/serial.cif (!info->tty ||
tty598drivers/char/serial.cif (!info || !info->tty)
tty659drivers/char/serial.cif (!info->tty ||
tty736drivers/char/serial.cstruct tty_struct  *tty;
tty738drivers/char/serial.ctty = info->tty;
tty739drivers/char/serial.cif (!tty)
tty743drivers/char/serial.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
tty744drivers/char/serial.ctty->ldisc.write_wakeup)
tty745drivers/char/serial.c(tty->ldisc.write_wakeup)(tty);
tty746drivers/char/serial.cwake_up_interruptible(&tty->write_wait);
tty762drivers/char/serial.cstruct tty_struct  *tty;
tty764drivers/char/serial.ctty = info->tty;
tty765drivers/char/serial.cif (!tty)
tty768drivers/char/serial.ctty_hangup(tty);
tty908drivers/char/serial.cif (info->tty)
tty909drivers/char/serial.cset_bit(TTY_IO_ERROR, &info->tty->flags);
tty946drivers/char/serial.cif (info->tty)
tty947drivers/char/serial.cset_bit(TTY_IO_ERROR, &info->tty->flags);
tty972drivers/char/serial.cif (info->tty)
tty974drivers/char/serial.c&info->tty->flags);
tty1029drivers/char/serial.cif (info->tty)
tty1030drivers/char/serial.cclear_bit(TTY_IO_ERROR, &info->tty->flags);
tty1118drivers/char/serial.cif (!info->tty || (info->tty->termios->c_cflag & HUPCL)) {
tty1129drivers/char/serial.cif (info->tty)
tty1130drivers/char/serial.cset_bit(TTY_IO_ERROR, &info->tty->flags);
tty1147drivers/char/serial.cif (!info->tty || !info->tty->termios)
tty1149drivers/char/serial.ccflag = info->tty->termios->c_cflag;
tty1156drivers/char/serial.cinfo->tty->termios->c_cflag &= ~CBAUDEX;
tty1249drivers/char/serial.cif (I_INPCK(info->tty))
tty1251drivers/char/serial.cif (I_BRKINT(info->tty) || I_PARMRK(info->tty))
tty1255drivers/char/serial.cif (I_IGNPAR(info->tty)) {
tty1259drivers/char/serial.cif (I_IGNBRK(info->tty)) {
tty1266drivers/char/serial.cif (I_IGNPAR(info->tty)) {
tty1281drivers/char/serial.cstatic void rs_put_char(struct tty_struct *tty, unsigned char ch)
tty1283drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1286drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_put_char"))
tty1289drivers/char/serial.cif (!tty || !info->xmit_buf)
tty1304drivers/char/serial.cstatic void rs_flush_chars(struct tty_struct *tty)
tty1306drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1309drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_flush_chars"))
tty1312drivers/char/serial.cif (info->xmit_cnt <= 0 || tty->stopped || tty->hw_stopped ||
tty1322drivers/char/serial.cstatic int rs_write(struct tty_struct * tty, int from_user,
tty1326drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1329drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_write"))
tty1332drivers/char/serial.cif (!tty || !info->xmit_buf || !tmp_buf)
tty1361drivers/char/serial.cif (info->xmit_cnt && !tty->stopped && !tty->hw_stopped &&
tty1370drivers/char/serial.cstatic int rs_write_room(struct tty_struct *tty)
tty1372drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1375drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_write_room"))
tty1383drivers/char/serial.cstatic int rs_chars_in_buffer(struct tty_struct *tty)
tty1385drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1387drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_chars_in_buffer"))
tty1392drivers/char/serial.cstatic void rs_flush_buffer(struct tty_struct *tty)
tty1394drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1396drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_flush_buffer"))
tty1401drivers/char/serial.cwake_up_interruptible(&tty->write_wait);
tty1402drivers/char/serial.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
tty1403drivers/char/serial.ctty->ldisc.write_wakeup)
tty1404drivers/char/serial.c(tty->ldisc.write_wakeup)(tty);
tty1415drivers/char/serial.cstatic void rs_throttle(struct tty_struct * tty)
tty1417drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1421drivers/char/serial.cprintk("throttle %s: %d....\n", _tty_name(tty, buf),
tty1422drivers/char/serial.ctty->ldisc.chars_in_buffer(tty));
tty1425drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_throttle"))
tty1428drivers/char/serial.cif (I_IXOFF(tty))
tty1429drivers/char/serial.cinfo->x_char = STOP_CHAR(tty);
tty1438drivers/char/serial.cstatic void rs_unthrottle(struct tty_struct * tty)
tty1440drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1444drivers/char/serial.cprintk("unthrottle %s: %d....\n", _tty_name(tty, buf),
tty1445drivers/char/serial.ctty->ldisc.chars_in_buffer(tty));
tty1448drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_unthrottle"))
tty1451drivers/char/serial.cif (I_IXOFF(tty)) {
tty1455drivers/char/serial.cinfo->x_char = START_CHAR(tty);
tty1870drivers/char/serial.cstatic int rs_ioctl(struct tty_struct *tty, struct file * file,
tty1874drivers/char/serial.cstruct async_struct * info = (struct async_struct *)tty->driver_data;
tty1879drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_ioctl"))
tty1886drivers/char/serial.cif (tty->flags & (1 << TTY_IO_ERROR))
tty1892drivers/char/serial.cretval = tty_check_change(tty);
tty1895drivers/char/serial.ctty_wait_until_sent(tty, 0);
tty1900drivers/char/serial.cretval = tty_check_change(tty);
tty1903drivers/char/serial.ctty_wait_until_sent(tty, 0);
tty1910drivers/char/serial.cput_fs_long(C_CLOCAL(tty) ? 1 : 0,
tty1915drivers/char/serial.ctty->termios->c_cflag =
tty1916drivers/char/serial.c((tty->termios->c_cflag & ~CLOCAL) |
tty2040drivers/char/serial.cstatic void rs_set_termios(struct tty_struct *tty, struct termios *old_termios)
tty2042drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty2044drivers/char/serial.cif (tty->termios->c_cflag == old_termios->c_cflag)
tty2050drivers/char/serial.c!(tty->termios->c_cflag & CRTSCTS)) {
tty2051drivers/char/serial.ctty->hw_stopped = 0;
tty2052drivers/char/serial.crs_start(tty);
tty2063drivers/char/serial.c(tty->termios->c_cflag & CLOCAL))
tty2078drivers/char/serial.cstatic void rs_close(struct tty_struct *tty, struct file * filp)
tty2080drivers/char/serial.cstruct async_struct * info = (struct async_struct *)tty->driver_data;
tty2084drivers/char/serial.cif (!info || serial_paranoia_check(info, tty->device, "rs_close"))
tty2097drivers/char/serial.cif ((tty->count == 1) && (info->count != 1)) {
tty2124drivers/char/serial.cinfo->normal_termios = *tty->termios;
tty2126drivers/char/serial.cinfo->callout_termios = *tty->termios;
tty2131drivers/char/serial.ctty->closing = 1;
tty2133drivers/char/serial.ctty_wait_until_sent(tty, info->closing_wait);
tty2159drivers/char/serial.cif (tty->driver.flush_buffer)
tty2160drivers/char/serial.ctty->driver.flush_buffer(tty);
tty2161drivers/char/serial.cif (tty->ldisc.flush_buffer)
tty2162drivers/char/serial.ctty->ldisc.flush_buffer(tty);
tty2163drivers/char/serial.ctty->closing = 0;
tty2165drivers/char/serial.cinfo->tty = 0;
tty2166drivers/char/serial.cif (tty->ldisc.num != ldiscs[N_TTY].num) {
tty2167drivers/char/serial.cif (tty->ldisc.close)
tty2168drivers/char/serial.c(tty->ldisc.close)(tty);
tty2169drivers/char/serial.ctty->ldisc = ldiscs[N_TTY];
tty2170drivers/char/serial.ctty->termios->c_line = N_TTY;
tty2171drivers/char/serial.cif (tty->ldisc.open)
tty2172drivers/char/serial.c(tty->ldisc.open)(tty);
tty2191drivers/char/serial.cvoid rs_hangup(struct tty_struct *tty)
tty2193drivers/char/serial.cstruct async_struct * info = (struct async_struct *)tty->driver_data;
tty2195drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_hangup"))
tty2198drivers/char/serial.crs_flush_buffer(tty);
tty2203drivers/char/serial.cinfo->tty = 0;
tty2212drivers/char/serial.cstatic int block_til_ready(struct tty_struct *tty, struct file * filp,
tty2241drivers/char/serial.cif (tty->driver.subtype == SERIAL_TYPE_CALLOUT) {
tty2261drivers/char/serial.c(tty->flags & (1 << TTY_IO_ERROR))) {
tty2272drivers/char/serial.cif (tty->termios->c_cflag & CLOCAL)
tty2350drivers/char/serial.cint rs_open(struct tty_struct *tty, struct file * filp)
tty2356drivers/char/serial.cline = MINOR(tty->device) - tty->driver.minor_start;
tty2360drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_open"))
tty2364drivers/char/serial.cprintk("rs_open %s%d, count = %d\n", tty->driver.name, info->line,
tty2368drivers/char/serial.ctty->driver_data = info;
tty2369drivers/char/serial.cinfo->tty = tty;
tty2388drivers/char/serial.cretval = block_til_ready(tty, filp, info);
tty2398drivers/char/serial.cif (tty->driver.subtype == SERIAL_TYPE_NORMAL)
tty2399drivers/char/serial.c*tty->termios = info->normal_termios;
tty2401drivers/char/serial.c*tty->termios = info->callout_termios;
tty2739drivers/char/serial.cinfo->tty = 0;
tty2862drivers/char/serial.cif (info->tty)
tty2863drivers/char/serial.ctty_hangup(info->tty);
tty253drivers/char/stallion.cstruct tty_struct  *tty;
tty476drivers/char/stallion.cstatic int  stl_open(struct tty_struct *tty, struct file *filp);
tty477drivers/char/stallion.cstatic void  stl_close(struct tty_struct *tty, struct file *filp);
tty478drivers/char/stallion.cstatic int  stl_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count);
tty479drivers/char/stallion.cstatic void  stl_putchar(struct tty_struct *tty, unsigned char ch);
tty480drivers/char/stallion.cstatic void  stl_flushchars(struct tty_struct *tty);
tty481drivers/char/stallion.cstatic int  stl_writeroom(struct tty_struct *tty);
tty482drivers/char/stallion.cstatic int  stl_charsinbuffer(struct tty_struct *tty);
tty483drivers/char/stallion.cstatic int  stl_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg);
tty484drivers/char/stallion.cstatic void  stl_settermios(struct tty_struct *tty, struct termios *old);
tty485drivers/char/stallion.cstatic void  stl_throttle(struct tty_struct *tty);
tty486drivers/char/stallion.cstatic void  stl_unthrottle(struct tty_struct *tty);
tty487drivers/char/stallion.cstatic void  stl_stop(struct tty_struct *tty);
tty488drivers/char/stallion.cstatic void  stl_start(struct tty_struct *tty);
tty489drivers/char/stallion.cstatic void  stl_flushbuffer(struct tty_struct *tty);
tty490drivers/char/stallion.cstatic void  stl_hangup(struct tty_struct *tty);
tty615drivers/char/stallion.cif (portp->tty != (struct tty_struct *) NULL)
tty616drivers/char/stallion.cstl_hangup(portp->tty);
tty664drivers/char/stallion.cstatic int stl_open(struct tty_struct *tty, struct file *filp)
tty672drivers/char/stallion.cprintk("stl_open(tty=%x,filp=%x): device=%x\n", (int) tty, (int) filp, tty->device);
tty675drivers/char/stallion.cminordev = MINOR(tty->device);
tty703drivers/char/stallion.cportp->tty = tty;
tty704drivers/char/stallion.ctty->driver_data = portp;
tty715drivers/char/stallion.cstl_setport(portp, tty->termios);
tty720drivers/char/stallion.cclear_bit(TTY_IO_ERROR, &tty->flags);
tty742drivers/char/stallion.cif (tty->driver.subtype == STL_DRVTYPCALLOUT) {
tty766drivers/char/stallion.cif (tty->driver.subtype == STL_DRVTYPSERIAL)
tty767drivers/char/stallion.c*tty->termios = portp->normaltermios;
tty769drivers/char/stallion.c*tty->termios = portp->callouttermios;
tty770drivers/char/stallion.cstl_setport(portp, tty->termios);
tty814drivers/char/stallion.c((portp->tty->termios->c_cflag & CLOCAL) ||
tty835drivers/char/stallion.cstatic void stl_close(struct tty_struct *tty, struct file *filp)
tty841drivers/char/stallion.cprintk("stl_close(tty=%x,filp=%x)\n", (int) tty, (int) filp);
tty844drivers/char/stallion.cportp = tty->driver_data;
tty863drivers/char/stallion.cportp->normaltermios = *tty->termios;
tty865drivers/char/stallion.cportp->callouttermios = *tty->termios;
tty872drivers/char/stallion.ctty->closing = 1;
tty875drivers/char/stallion.ctty_wait_until_sent(tty, portp->closing_wait);
tty880drivers/char/stallion.cif (tty->termios->c_cflag & HUPCL)
tty883drivers/char/stallion.cstl_flushbuffer(tty);
tty891drivers/char/stallion.cset_bit(TTY_IO_ERROR, &tty->flags);
tty892drivers/char/stallion.cif (tty->ldisc.flush_buffer)
tty893drivers/char/stallion.c(tty->ldisc.flush_buffer)(tty);
tty895drivers/char/stallion.ctty->closing = 0;
tty896drivers/char/stallion.ctty->driver_data = (void *) NULL;
tty897drivers/char/stallion.cportp->tty = (struct tty_struct *) NULL;
tty937drivers/char/stallion.cstatic int stl_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count)
tty946drivers/char/stallion.cprintk("stl_write(tty=%x,from_user=%d,buf=%x,count=%d)\n", (int) tty, from_user, (int) buf, count);
tty949drivers/char/stallion.cif ((tty == (struct tty_struct *) NULL) || (stl_tmpwritebuf == (char *) NULL))
tty951drivers/char/stallion.cportp = tty->driver_data;
tty1014drivers/char/stallion.cstatic void stl_putchar(struct tty_struct *tty, unsigned char ch)
tty1021drivers/char/stallion.cprintk("stl_putchar(tty=%x,ch=%x)\n", (int) tty, (int) ch);
tty1024drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1026drivers/char/stallion.cportp = tty->driver_data;
tty1054drivers/char/stallion.cstatic void stl_flushchars(struct tty_struct *tty)
tty1059drivers/char/stallion.cprintk("stl_flushchars(tty=%x)\n", (int) tty);
tty1062drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1064drivers/char/stallion.cportp = tty->driver_data;
tty1071drivers/char/stallion.cif (tty->stopped || tty->hw_stopped || (portp->tx.head == portp->tx.tail))
tty1079drivers/char/stallion.cstatic int stl_writeroom(struct tty_struct *tty)
tty1085drivers/char/stallion.cprintk("stl_writeroom(tty=%x)\n", (int) tty);
tty1088drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1090drivers/char/stallion.cportp = tty->driver_data;
tty1112drivers/char/stallion.cstatic int stl_charsinbuffer(struct tty_struct *tty)
tty1119drivers/char/stallion.cprintk("stl_charsinbuffer(tty=%x)\n", (int) tty);
tty1122drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1124drivers/char/stallion.cportp = tty->driver_data;
tty1201drivers/char/stallion.cstl_setport(portp, portp->tty->termios);
tty1207drivers/char/stallion.cstatic int stl_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg)
tty1214drivers/char/stallion.cprintk("stl_ioctl(tty=%x,file=%x,cmd=%x,arg=%x)\n", (int) tty, (int) file, cmd, (int) arg);
tty1217drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1219drivers/char/stallion.cportp = tty->driver_data;
tty1227drivers/char/stallion.cif ((rc = tty_check_change(tty)) == 0) {
tty1228drivers/char/stallion.ctty_wait_until_sent(tty, 0);
tty1234drivers/char/stallion.cif ((rc = tty_check_change(tty)) == 0) {
tty1235drivers/char/stallion.ctty_wait_until_sent(tty, 0);
tty1241drivers/char/stallion.cput_fs_long(((tty->termios->c_cflag & CLOCAL) ? 1 : 0), (unsigned long *) arg);
tty1246drivers/char/stallion.ctty->termios->c_cflag = (tty->termios->c_cflag & ~CLOCAL) | (arg ? CLOCAL : 0);
tty1306drivers/char/stallion.cstatic void stl_settermios(struct tty_struct *tty, struct termios *old)
tty1312drivers/char/stallion.cprintk("stl_settermios(tty=%x,old=%x)\n", (int) tty, (int) old);
tty1315drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1317drivers/char/stallion.cportp = tty->driver_data;
tty1321drivers/char/stallion.ctiosp = tty->termios;
tty1328drivers/char/stallion.ctty->hw_stopped = 0;
tty1329drivers/char/stallion.cstl_start(tty);
tty1342drivers/char/stallion.cstatic void stl_throttle(struct tty_struct *tty)
tty1348drivers/char/stallion.cprintk("stl_throttle(tty=%x)\n", (int) tty);
tty1351drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1353drivers/char/stallion.cportp = tty->driver_data;
tty1361drivers/char/stallion.cif (tty->termios->c_iflag & IXOFF) {
tty1367drivers/char/stallion.cif (tty->termios->c_cflag & CRTSCTS) {
tty1382drivers/char/stallion.cstatic void stl_unthrottle(struct tty_struct *tty)
tty1388drivers/char/stallion.cprintk("stl_unthrottle(tty=%x)\n", (int) tty);
tty1391drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1393drivers/char/stallion.cportp = tty->driver_data;
tty1401drivers/char/stallion.cif (tty->termios->c_iflag & IXOFF) {
tty1413drivers/char/stallion.cif (tty->termios->c_cflag & CRTSCTS) {
tty1429drivers/char/stallion.cstatic void stl_stop(struct tty_struct *tty)
tty1434drivers/char/stallion.cprintk("stl_stop(tty=%x)\n", (int) tty);
tty1437drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1439drivers/char/stallion.cportp = tty->driver_data;
tty1452drivers/char/stallion.cstatic void stl_start(struct tty_struct *tty)
tty1457drivers/char/stallion.cprintk("stl_start(tty=%x)\n", (int) tty);
tty1460drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1462drivers/char/stallion.cportp = tty->driver_data;
tty1477drivers/char/stallion.cstatic void stl_hangup(struct tty_struct *tty)
tty1482drivers/char/stallion.cprintk("stl_hangup(tty=%x)\n", (int) tty);
tty1485drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1487drivers/char/stallion.cportp = tty->driver_data;
tty1493drivers/char/stallion.cif (tty->termios->c_cflag & HUPCL)
tty1496drivers/char/stallion.cstl_flushbuffer(tty);
tty1498drivers/char/stallion.cset_bit(TTY_IO_ERROR, &tty->flags);
tty1505drivers/char/stallion.ctty->driver_data = (void *) NULL;
tty1506drivers/char/stallion.cportp->tty = (struct tty_struct *) NULL;
tty1514drivers/char/stallion.cstatic void stl_flushbuffer(struct tty_struct *tty)
tty1520drivers/char/stallion.cprintk("stl_flushbuffer(tty=%x)\n", (int) tty);
tty1523drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1525drivers/char/stallion.cportp = tty->driver_data;
tty1540drivers/char/stallion.cwake_up_interruptible(&tty->write_wait);
tty1541drivers/char/stallion.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && tty->ldisc.write_wakeup)
tty1542drivers/char/stallion.c(tty->ldisc.write_wakeup)(tty);
tty1686drivers/char/stallion.cstruct tty_struct  *tty;
tty1702drivers/char/stallion.ctty = portp->tty;
tty1707drivers/char/stallion.cif ((tty == (struct tty_struct *) NULL) || (tty->flip.char_buf_ptr == (char *) NULL) ||
tty1708drivers/char/stallion.c((buflen = TTY_FLIPBUF_SIZE - tty->flip.count) == 0)) {
tty1717drivers/char/stallion.cinsb((ioaddr + EREG_DATA), tty->flip.char_buf_ptr, len);
tty1718drivers/char/stallion.cmemset(tty->flip.flag_buf_ptr, 0, len);
tty1719drivers/char/stallion.ctty->flip.flag_buf_ptr += len;
tty1720drivers/char/stallion.ctty->flip.char_buf_ptr += len;
tty1721drivers/char/stallion.ctty->flip.count += len;
tty1722drivers/char/stallion.ctty_schedule_flip(tty);
tty1745drivers/char/stallion.cif ((tty != (struct tty_struct *) NULL) && ((portp->rxignoremsk & status) == 0)) {
tty1751drivers/char/stallion.cdo_SAK(tty);
tty1765drivers/char/stallion.cif (tty->flip.char_buf_ptr != (char *) NULL) {
tty1766drivers/char/stallion.cif (tty->flip.count < TTY_FLIPBUF_SIZE) {
tty1767drivers/char/stallion.c*tty->flip.flag_buf_ptr++ = status;
tty1768drivers/char/stallion.c*tty->flip.char_buf_ptr++ = ch;
tty1769drivers/char/stallion.ctty->flip.count++;
tty1771drivers/char/stallion.ctty_schedule_flip(tty);
tty1972drivers/char/stallion.cstruct tty_struct  *tty;
tty1982drivers/char/stallion.ctty = portp->tty;
tty1983drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1987drivers/char/stallion.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && tty->ldisc.write_wakeup)
tty1988drivers/char/stallion.c(tty->ldisc.write_wakeup)(tty);
tty1989drivers/char/stallion.cwake_up_interruptible(&tty->write_wait);
tty2000drivers/char/stallion.ctty_hangup(tty);
tty3034drivers/char/stallion.cif (portp->tty != (struct tty_struct *) NULL) {
tty3035drivers/char/stallion.cportp->stats.ttystate = portp->tty->flags;
tty3036drivers/char/stallion.cportp->stats.cflags = portp->tty->termios->c_cflag;
tty3037drivers/char/stallion.cportp->stats.iflags = portp->tty->termios->c_iflag;
tty3038drivers/char/stallion.cportp->stats.oflags = portp->tty->termios->c_oflag;
tty3039drivers/char/stallion.cportp->stats.lflags = portp->tty->termios->c_lflag;
tty3040drivers/char/stallion.cportp->stats.rxbuffered = portp->tty->flip.count;
tty111drivers/char/tty_io.cstatic void initialize_tty_struct(struct tty_struct *tty);
tty134drivers/char/tty_io.cchar *_tty_name(struct tty_struct *tty, char *buf)
tty136drivers/char/tty_io.cif (tty)
tty137drivers/char/tty_io.csprintf(buf, "%s%d", tty->driver.name,
tty138drivers/char/tty_io.cMINOR(tty->device) - tty->driver.minor_start +
tty139drivers/char/tty_io.ctty->driver.name_base);
tty145drivers/char/tty_io.cchar *tty_name(struct tty_struct *tty)
tty149drivers/char/tty_io.creturn(_tty_name(tty, buf));
tty152drivers/char/tty_io.cinline int tty_paranoia_check(struct tty_struct *tty, kdev_t device,
tty161drivers/char/tty_io.cif (!tty) {
tty165drivers/char/tty_io.cif (tty->magic != TTY_MAGIC) {
tty173drivers/char/tty_io.cstatic int check_tty_count(struct tty_struct *tty, const char *routine)
tty182drivers/char/tty_io.cif (f->private_data == tty) {
tty186drivers/char/tty_io.cif (tty->driver.type == TTY_DRIVER_TYPE_PTY &&
tty187drivers/char/tty_io.ctty->driver.subtype == PTY_TYPE_SLAVE &&
tty188drivers/char/tty_io.ctty->link && tty->link->count)
tty190drivers/char/tty_io.cif (tty->count != count) {
tty192drivers/char/tty_io.ckdevname(tty->device), tty->count, count, routine);
tty215drivers/char/tty_io.cstatic int tty_set_ldisc(struct tty_struct *tty, int ldisc)
tty233drivers/char/tty_io.cif (tty->ldisc.num == ldisc)
tty235drivers/char/tty_io.co_ldisc = tty->ldisc;
tty237drivers/char/tty_io.ctty_wait_until_sent(tty, 0);
tty240drivers/char/tty_io.cif (tty->ldisc.close)
tty241drivers/char/tty_io.c(tty->ldisc.close)(tty);
tty244drivers/char/tty_io.ctty->ldisc = ldiscs[ldisc];
tty245drivers/char/tty_io.ctty->termios->c_line = ldisc;
tty246drivers/char/tty_io.cif (tty->ldisc.open)
tty247drivers/char/tty_io.cretval = (tty->ldisc.open)(tty);
tty249drivers/char/tty_io.ctty->ldisc = o_ldisc;
tty250drivers/char/tty_io.ctty->termios->c_line = tty->ldisc.num;
tty251drivers/char/tty_io.cif (tty->ldisc.open && (tty->ldisc.open(tty) < 0)) {
tty252drivers/char/tty_io.ctty->ldisc = ldiscs[N_TTY];
tty253drivers/char/tty_io.ctty->termios->c_line = N_TTY;
tty254drivers/char/tty_io.cif (tty->ldisc.open) {
tty255drivers/char/tty_io.cint r = tty->ldisc.open(tty);
tty260drivers/char/tty_io.ctty_name(tty), r);
tty264drivers/char/tty_io.cif (tty->ldisc.num != o_ldisc.num && tty->driver.set_ldisc)
tty265drivers/char/tty_io.ctty->driver.set_ldisc(tty);
tty297drivers/char/tty_io.cint tty_check_change(struct tty_struct * tty)
tty299drivers/char/tty_io.cif (current->tty != tty)
tty301drivers/char/tty_io.cif (tty->pgrp <= 0) {
tty305drivers/char/tty_io.cif (current->pgrp == tty->pgrp)
tty369drivers/char/tty_io.cvoid do_tty_hangup(struct tty_struct * tty, struct file_operations *fops)
tty375drivers/char/tty_io.cif (!tty)
tty377drivers/char/tty_io.ccheck_tty_count(tty, "do_tty_hangup");
tty381drivers/char/tty_io.cif (filp->private_data != tty)
tty392drivers/char/tty_io.cif (tty->ldisc.flush_buffer)
tty393drivers/char/tty_io.ctty->ldisc.flush_buffer(tty);
tty394drivers/char/tty_io.cif (tty->driver.flush_buffer)
tty395drivers/char/tty_io.ctty->driver.flush_buffer(tty);
tty396drivers/char/tty_io.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
tty397drivers/char/tty_io.ctty->ldisc.write_wakeup)
tty398drivers/char/tty_io.c(tty->ldisc.write_wakeup)(tty);
tty399drivers/char/tty_io.cwake_up_interruptible(&tty->write_wait);
tty400drivers/char/tty_io.cwake_up_interruptible(&tty->read_wait);
tty406drivers/char/tty_io.cif (tty->ldisc.num != ldiscs[N_TTY].num) {
tty407drivers/char/tty_io.cif (tty->ldisc.close)
tty408drivers/char/tty_io.c(tty->ldisc.close)(tty);
tty409drivers/char/tty_io.ctty->ldisc = ldiscs[N_TTY];
tty410drivers/char/tty_io.ctty->termios->c_line = N_TTY;
tty411drivers/char/tty_io.cif (tty->ldisc.open) {
tty412drivers/char/tty_io.ci = (tty->ldisc.open)(tty);
tty420drivers/char/tty_io.cif ((tty->session > 0) && (p->session == tty->session) &&
tty424drivers/char/tty_io.cif (tty->pgrp > 0)
tty425drivers/char/tty_io.cp->tty_old_pgrp = tty->pgrp;
tty427drivers/char/tty_io.cif (p->tty == tty)
tty428drivers/char/tty_io.cp->tty = NULL;
tty430drivers/char/tty_io.ctty->flags = 0;
tty431drivers/char/tty_io.ctty->session = 0;
tty432drivers/char/tty_io.ctty->pgrp = -1;
tty433drivers/char/tty_io.ctty->ctrl_status = 0;
tty434drivers/char/tty_io.cif (tty->driver.flags & TTY_DRIVER_RESET_TERMIOS)
tty435drivers/char/tty_io.c*tty->termios = tty->driver.init_termios;
tty436drivers/char/tty_io.cif (tty->driver.hangup)
tty437drivers/char/tty_io.c(tty->driver.hangup)(tty);
tty440drivers/char/tty_io.cvoid tty_hangup(struct tty_struct * tty)
tty443drivers/char/tty_io.cprintk("%s hangup...\n", tty_name(tty));
tty445drivers/char/tty_io.cdo_tty_hangup(tty, &hung_up_tty_fops);
tty448drivers/char/tty_io.cvoid tty_vhangup(struct tty_struct * tty)
tty451drivers/char/tty_io.cprintk("%s vhangup...\n", tty_name(tty));
tty453drivers/char/tty_io.cdo_tty_hangup(tty, &hung_up_tty_fops);
tty476drivers/char/tty_io.cstruct tty_struct *tty = current->tty;
tty479drivers/char/tty_io.cif (tty) {
tty480drivers/char/tty_io.cif (on_exit && tty->driver.type != TTY_DRIVER_TYPE_PTY)
tty481drivers/char/tty_io.ctty_vhangup(tty);
tty489drivers/char/tty_io.cif (tty->pgrp > 0) {
tty490drivers/char/tty_io.ckill_pg(tty->pgrp, SIGHUP, on_exit);
tty491drivers/char/tty_io.ckill_pg(tty->pgrp, SIGCONT, on_exit);
tty495drivers/char/tty_io.ctty->session = 0;
tty496drivers/char/tty_io.ctty->pgrp = -1;
tty500drivers/char/tty_io.cp->tty = NULL;
tty686drivers/char/tty_io.cvoid stop_tty(struct tty_struct *tty)
tty688drivers/char/tty_io.cif (tty->stopped)
tty690drivers/char/tty_io.ctty->stopped = 1;
tty691drivers/char/tty_io.cif (tty->link && tty->link->packet) {
tty692drivers/char/tty_io.ctty->ctrl_status &= ~TIOCPKT_START;
tty693drivers/char/tty_io.ctty->ctrl_status |= TIOCPKT_STOP;
tty694drivers/char/tty_io.cwake_up_interruptible(&tty->link->read_wait);
tty696drivers/char/tty_io.cif (tty->driver.stop)
tty697drivers/char/tty_io.c(tty->driver.stop)(tty);
tty700drivers/char/tty_io.cvoid start_tty(struct tty_struct *tty)
tty702drivers/char/tty_io.cif (!tty->stopped)
tty704drivers/char/tty_io.ctty->stopped = 0;
tty705drivers/char/tty_io.cif (tty->link && tty->link->packet) {
tty706drivers/char/tty_io.ctty->ctrl_status &= ~TIOCPKT_STOP;
tty707drivers/char/tty_io.ctty->ctrl_status |= TIOCPKT_START;
tty708drivers/char/tty_io.cwake_up_interruptible(&tty->link->read_wait);
tty710drivers/char/tty_io.cif (tty->driver.start)
tty711drivers/char/tty_io.c(tty->driver.start)(tty);
tty712drivers/char/tty_io.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
tty713drivers/char/tty_io.ctty->ldisc.write_wakeup)
tty714drivers/char/tty_io.c(tty->ldisc.write_wakeup)(tty);
tty715drivers/char/tty_io.cwake_up_interruptible(&tty->write_wait);
tty721drivers/char/tty_io.cstruct tty_struct * tty;
tty723drivers/char/tty_io.ctty = (struct tty_struct *)file->private_data;
tty724drivers/char/tty_io.cif (tty_paranoia_check(tty, inode->i_rdev, "tty_read"))
tty726drivers/char/tty_io.cif (!tty || (tty->flags & (1 << TTY_IO_ERROR)))
tty735drivers/char/tty_io.c(tty->pgrp > 0) &&
tty736drivers/char/tty_io.c(current->tty == tty) &&
tty737drivers/char/tty_io.c(tty->pgrp != current->pgrp))
tty745drivers/char/tty_io.cif (tty->ldisc.read)
tty747drivers/char/tty_io.ci = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count);
tty758drivers/char/tty_io.cstruct tty_struct * tty;
tty763drivers/char/tty_io.ctty = redirect;
tty765drivers/char/tty_io.ctty = (struct tty_struct *)file->private_data;
tty766drivers/char/tty_io.cif (tty_paranoia_check(tty, inode->i_rdev, "tty_write"))
tty768drivers/char/tty_io.cif (!tty || !tty->driver.write || (tty->flags & (1 << TTY_IO_ERROR)))
tty771drivers/char/tty_io.cif (!is_console && L_TOSTOP(tty) && (tty->pgrp > 0) &&
tty772drivers/char/tty_io.c(current->tty == tty) && (tty->pgrp != current->pgrp)) {
tty781drivers/char/tty_io.cif (tty->ldisc.write)
tty783drivers/char/tty_io.ci = (tty->ldisc.write)(tty,file,(const unsigned char *)buf,(unsigned int)count);
tty798drivers/char/tty_io.cstruct tty_struct *tty, **tty_loc, *o_tty, **o_tty_loc;
tty810drivers/char/tty_io.ctty = o_tty = NULL;
tty827drivers/char/tty_io.cif (!*tty_loc && !tty) {
tty828drivers/char/tty_io.cif (!(tty = (struct tty_struct*) get_free_page(GFP_KERNEL)))
tty830drivers/char/tty_io.cinitialize_tty_struct(tty);
tty831drivers/char/tty_io.ctty->device = device;
tty832drivers/char/tty_io.ctty->driver = *driver;
tty898drivers/char/tty_io.ctty->termios = *tp_loc;
tty899drivers/char/tty_io.ctty->termios_locked = *ltp_loc;
tty900drivers/char/tty_io.c*tty_loc = tty;
tty903drivers/char/tty_io.cif (tty->ldisc.open) {
tty904drivers/char/tty_io.cretval = (tty->ldisc.open)(tty);
tty907drivers/char/tty_io.ctty = NULL;
tty911drivers/char/tty_io.ctty = NULL;
tty954drivers/char/tty_io.cif (tty)
tty955drivers/char/tty_io.cfree_page((unsigned long) tty);
tty976drivers/char/tty_io.cstruct tty_struct *tty, *o_tty;
tty981drivers/char/tty_io.ctty = (struct tty_struct *)filp->private_data;
tty982drivers/char/tty_io.cif (tty_paranoia_check(tty, filp->f_inode->i_rdev, "release_dev"))
tty985drivers/char/tty_io.ccheck_tty_count(tty, "release_dev");
tty989drivers/char/tty_io.ctp = tty->termios;
tty990drivers/char/tty_io.cltp = tty->termios_locked;
tty992drivers/char/tty_io.cidx = MINOR(tty->device) - tty->driver.minor_start;
tty994drivers/char/tty_io.cif (idx < 0 || idx >= tty->driver.num) {
tty996drivers/char/tty_io.ckdevname(tty->device));
tty999drivers/char/tty_io.cif (tty != tty->driver.table[idx]) {
tty1001drivers/char/tty_io.cidx, kdevname(tty->device));
tty1004drivers/char/tty_io.cif (tp != tty->driver.termios[idx]) {
tty1007drivers/char/tty_io.cidx, kdevname(tty->device));
tty1010drivers/char/tty_io.cif (ltp != tty->driver.termios_locked[idx]) {
tty1013drivers/char/tty_io.cidx, kdevname(tty->device));
tty1019drivers/char/tty_io.cprintk("release_dev of %s (tty count=%d)...", tty_name(tty),
tty1020drivers/char/tty_io.ctty->count);
tty1023drivers/char/tty_io.co_tty = tty->link;
tty1028drivers/char/tty_io.cif (tty->driver.other) {
tty1029drivers/char/tty_io.cif (o_tty != tty->driver.other->table[idx]) {
tty1032drivers/char/tty_io.cidx, kdevname(tty->device));
tty1035drivers/char/tty_io.cif (o_tp != tty->driver.other->termios[idx]) {
tty1038drivers/char/tty_io.cidx, kdevname(tty->device));
tty1041drivers/char/tty_io.cif (o_ltp != tty->driver.other->termios_locked[idx]) {
tty1044drivers/char/tty_io.cidx, kdevname(tty->device));
tty1048drivers/char/tty_io.cif (o_tty->link != tty) {
tty1055drivers/char/tty_io.cif (tty->driver.close)
tty1056drivers/char/tty_io.ctty->driver.close(tty, filp);
tty1057drivers/char/tty_io.cif (tty->driver.type == TTY_DRIVER_TYPE_PTY &&
tty1058drivers/char/tty_io.ctty->driver.subtype == PTY_TYPE_MASTER) {
tty1059drivers/char/tty_io.cif (--tty->link->count < 0) {
tty1061drivers/char/tty_io.ctty->count, tty_name(tty));
tty1062drivers/char/tty_io.ctty->link->count = 0;
tty1065drivers/char/tty_io.cif (--tty->count < 0) {
tty1067drivers/char/tty_io.ctty->count, tty_name(tty));
tty1068drivers/char/tty_io.ctty->count = 0;
tty1070drivers/char/tty_io.cif (tty->count)
tty1079drivers/char/tty_io.ctty->driver.other->table[idx] = NULL;
tty1080drivers/char/tty_io.ctty->driver.other->termios[idx] = NULL;
tty1087drivers/char/tty_io.ctty->flags |= (1 << TTY_CLOSING);
tty1096drivers/char/tty_io.cif ((*p)->tty == tty)
tty1097drivers/char/tty_io.c(*p)->tty = NULL;
tty1098drivers/char/tty_io.cif (o_tty && (*p)->tty == o_tty)
tty1099drivers/char/tty_io.c(*p)->tty = NULL;
tty1106drivers/char/tty_io.cif (tty->ldisc.close)
tty1107drivers/char/tty_io.c(tty->ldisc.close)(tty);
tty1108drivers/char/tty_io.ctty->ldisc = ldiscs[N_TTY];
tty1109drivers/char/tty_io.ctty->termios->c_line = N_TTY;
tty1116drivers/char/tty_io.ctty->driver.table[idx] = NULL;
tty1117drivers/char/tty_io.cif (tty->driver.flags & TTY_DRIVER_RESET_TERMIOS) {
tty1118drivers/char/tty_io.ctty->driver.termios[idx] = NULL;
tty1121drivers/char/tty_io.cif (tty == redirect || o_tty == redirect)
tty1128drivers/char/tty_io.cif (tty->flip.tqueue.sync) {
tty1132drivers/char/tty_io.cif (tq == &tty->flip.tqueue) {
tty1142drivers/char/tty_io.ctty->magic = 0;
tty1143drivers/char/tty_io.c(*tty->driver.refcount)--;
tty1144drivers/char/tty_io.cfree_page((unsigned long) tty);
tty1167drivers/char/tty_io.cstruct tty_struct *tty;
tty1176drivers/char/tty_io.cif (!current->tty)
tty1178drivers/char/tty_io.cdevice = current->tty->device;
tty1187drivers/char/tty_io.cretval = init_dev(device, &tty);
tty1190drivers/char/tty_io.cfilp->private_data = tty;
tty1191drivers/char/tty_io.ccheck_tty_count(tty, "tty_open");
tty1192drivers/char/tty_io.cif (tty->driver.type == TTY_DRIVER_TYPE_PTY &&
tty1193drivers/char/tty_io.ctty->driver.subtype == PTY_TYPE_MASTER)
tty1196drivers/char/tty_io.cprintk("opening %s...", tty_name(tty));
tty1198drivers/char/tty_io.cif (tty->driver.open)
tty1199drivers/char/tty_io.cretval = tty->driver.open(tty, filp);
tty1203drivers/char/tty_io.cif (!retval && test_bit(TTY_EXCLUSIVE, &tty->flags) && !suser())
tty1208drivers/char/tty_io.cprintk("error %d in opening %s...", retval, tty_name(tty));
tty1225drivers/char/tty_io.c!current->tty &&
tty1226drivers/char/tty_io.ctty->session == 0) {
tty1227drivers/char/tty_io.ccurrent->tty = tty;
tty1229drivers/char/tty_io.ctty->session = current->session;
tty1230drivers/char/tty_io.ctty->pgrp = current->pgrp;
tty1247drivers/char/tty_io.cstruct tty_struct * tty;
tty1249drivers/char/tty_io.ctty = (struct tty_struct *)filp->private_data;
tty1250drivers/char/tty_io.cif (tty_paranoia_check(tty, inode->i_rdev, "tty_select"))
tty1253drivers/char/tty_io.cif (tty->ldisc.select)
tty1254drivers/char/tty_io.creturn (tty->ldisc.select)(tty, inode, filp, sel_type, wait);
tty1300drivers/char/tty_io.cstruct tty_struct * tty;
tty1303drivers/char/tty_io.ctty = (struct tty_struct *)filp->private_data;
tty1304drivers/char/tty_io.cif (tty_paranoia_check(tty, inode->i_rdev, "tty_fasync"))
tty1307drivers/char/tty_io.cretval = fasync_helper(inode, filp, on, &tty->fasync);
tty1312drivers/char/tty_io.cif (!tty->read_wait)
tty1313drivers/char/tty_io.ctty->minimum_to_wake = 1;
tty1315drivers/char/tty_io.cif (tty->pgrp)
tty1316drivers/char/tty_io.cfilp->f_owner = -tty->pgrp;
tty1321drivers/char/tty_io.cif (!tty->fasync && !tty->read_wait)
tty1322drivers/char/tty_io.ctty->minimum_to_wake = N_TTY_BUF_SIZE;
tty1365drivers/char/tty_io.cstruct tty_struct * tty;
tty1372drivers/char/tty_io.ctty = (struct tty_struct *)file->private_data;
tty1373drivers/char/tty_io.cif (tty_paranoia_check(tty, inode->i_rdev, "tty_ioctl"))
tty1376drivers/char/tty_io.cif (tty->driver.type == TTY_DRIVER_TYPE_PTY &&
tty1377drivers/char/tty_io.ctty->driver.subtype == PTY_TYPE_MASTER)
tty1378drivers/char/tty_io.creal_tty = tty->link;
tty1380drivers/char/tty_io.creal_tty = tty;
tty1384drivers/char/tty_io.cif ((current->tty != tty) && !suser())
tty1390drivers/char/tty_io.ctty->ldisc.receive_buf(tty, &ch, &mbz, 1);
tty1397drivers/char/tty_io.cmemcpy_tofs((struct winsize *) arg, &tty->winsize,
tty1407drivers/char/tty_io.cif (memcmp(&tmp_ws, &tty->winsize,
tty1409drivers/char/tty_io.cif (tty->pgrp > 0)
tty1410drivers/char/tty_io.ckill_pg(tty->pgrp, SIGWINCH, 1);
tty1411drivers/char/tty_io.cif ((real_tty->pgrp != tty->pgrp) &&
tty1415drivers/char/tty_io.ctty->winsize = tmp_ws;
tty1419drivers/char/tty_io.cif (tty->driver.type == TTY_DRIVER_TYPE_CONSOLE) {
tty1440drivers/char/tty_io.cset_bit(TTY_EXCLUSIVE, &tty->flags);
tty1443drivers/char/tty_io.cclear_bit(TTY_EXCLUSIVE, &tty->flags);
tty1446drivers/char/tty_io.cif (current->tty != tty)
tty1450drivers/char/tty_io.ccurrent->tty = NULL;
tty1454drivers/char/tty_io.c(current->session == tty->session))
tty1460drivers/char/tty_io.cif (!current->leader || current->tty)
tty1462drivers/char/tty_io.cif (tty->session > 0) {
tty1474drivers/char/tty_io.cif (p->tty == tty)
tty1475drivers/char/tty_io.cp->tty = NULL;
tty1479drivers/char/tty_io.ccurrent->tty = tty;
tty1481drivers/char/tty_io.ctty->session = current->session;
tty1482drivers/char/tty_io.ctty->pgrp = current->pgrp;
tty1489drivers/char/tty_io.cif (tty == real_tty && current->tty != real_tty)
tty1501drivers/char/tty_io.cif (!current->tty ||
tty1502drivers/char/tty_io.c(current->tty != real_tty) ||
tty1517drivers/char/tty_io.cput_user(tty->ldisc.num, (int *) arg);
tty1520drivers/char/tty_io.cretval = tty_check_change(tty);
tty1524drivers/char/tty_io.creturn tty_set_ldisc(tty, arg);
tty1526drivers/char/tty_io.cif (tty->driver.type != TTY_DRIVER_TYPE_CONSOLE)
tty1528drivers/char/tty_io.cif (current->tty != tty && !suser())
tty1546drivers/char/tty_io.creturn set_selection(arg, tty);
tty1548drivers/char/tty_io.creturn paste_selection(tty);
tty1590drivers/char/tty_io.ctty, sizeof(struct tty_struct));
tty1593drivers/char/tty_io.cif (tty->driver.ioctl) {
tty1594drivers/char/tty_io.cretval = (tty->driver.ioctl)(tty, file,
tty1599drivers/char/tty_io.cif (tty->ldisc.ioctl) {
tty1600drivers/char/tty_io.cretval = (tty->ldisc.ioctl)(tty, file,
tty1622drivers/char/tty_io.cvoid do_SAK( struct tty_struct *tty)
tty1625drivers/char/tty_io.ctty_hangup(tty);
tty1632drivers/char/tty_io.cif (!tty)
tty1634drivers/char/tty_io.csession  = tty->session;
tty1635drivers/char/tty_io.cif (tty->ldisc.flush_buffer)
tty1636drivers/char/tty_io.ctty->ldisc.flush_buffer(tty);
tty1637drivers/char/tty_io.cif (tty->driver.flush_buffer)
tty1638drivers/char/tty_io.ctty->driver.flush_buffer(tty);
tty1642drivers/char/tty_io.cif (((*p)->tty == tty) ||
tty1649drivers/char/tty_io.c(filp->private_data == tty)) {
tty1665drivers/char/tty_io.cstruct tty_struct *tty = (struct tty_struct *) private_;
tty1670drivers/char/tty_io.cif (tty->flip.buf_num) {
tty1671drivers/char/tty_io.ccp = tty->flip.char_buf + TTY_FLIPBUF_SIZE;
tty1672drivers/char/tty_io.cfp = tty->flip.flag_buf + TTY_FLIPBUF_SIZE;
tty1673drivers/char/tty_io.ctty->flip.buf_num = 0;
tty1676drivers/char/tty_io.ctty->flip.char_buf_ptr = tty->flip.char_buf;
tty1677drivers/char/tty_io.ctty->flip.flag_buf_ptr = tty->flip.flag_buf;
tty1679drivers/char/tty_io.ccp = tty->flip.char_buf;
tty1680drivers/char/tty_io.cfp = tty->flip.flag_buf;
tty1681drivers/char/tty_io.ctty->flip.buf_num = 1;
tty1684drivers/char/tty_io.ctty->flip.char_buf_ptr = tty->flip.char_buf + TTY_FLIPBUF_SIZE;
tty1685drivers/char/tty_io.ctty->flip.flag_buf_ptr = tty->flip.flag_buf + TTY_FLIPBUF_SIZE;
tty1687drivers/char/tty_io.ccount = tty->flip.count;
tty1688drivers/char/tty_io.ctty->flip.count = 0;
tty1692drivers/char/tty_io.cif (count > tty->max_flip_cnt)
tty1693drivers/char/tty_io.ctty->max_flip_cnt = count;
tty1695drivers/char/tty_io.ctty->ldisc.receive_buf(tty, cp, fp, count);
tty1701drivers/char/tty_io.cstatic void initialize_tty_struct(struct tty_struct *tty)
tty1703drivers/char/tty_io.cmemset(tty, 0, sizeof(struct tty_struct));
tty1704drivers/char/tty_io.ctty->magic = TTY_MAGIC;
tty1705drivers/char/tty_io.ctty->ldisc = ldiscs[N_TTY];
tty1706drivers/char/tty_io.ctty->pgrp = -1;
tty1707drivers/char/tty_io.ctty->flip.char_buf_ptr = tty->flip.char_buf;
tty1708drivers/char/tty_io.ctty->flip.flag_buf_ptr = tty->flip.flag_buf;
tty1709drivers/char/tty_io.ctty->flip.tqueue.routine = flush_to_ldisc;
tty1710drivers/char/tty_io.ctty->flip.tqueue.data = tty;
tty1716drivers/char/tty_io.cvoid tty_default_put_char(struct tty_struct *tty, unsigned char ch)
tty1718drivers/char/tty_io.ctty->driver.write(tty, 0, &ch, 1);
tty43drivers/char/tty_ioctl.cvoid tty_wait_until_sent(struct tty_struct * tty, int timeout)
tty48drivers/char/tty_ioctl.cprintk("%s wait until sent...\n", tty_name(tty));
tty50drivers/char/tty_ioctl.cif (!tty->driver.chars_in_buffer ||
tty51drivers/char/tty_ioctl.c!tty->driver.chars_in_buffer(tty))
tty53drivers/char/tty_ioctl.cadd_wait_queue(&tty->write_wait, &wait);
tty61drivers/char/tty_ioctl.cprintk("waiting %s...(%d)\n", tty_name(tty), tty->driver.chars_in_buffer(tty));
tty66drivers/char/tty_ioctl.cif (!tty->driver.chars_in_buffer(tty))
tty71drivers/char/tty_ioctl.cremove_wait_queue(&tty->write_wait, &wait);
tty97drivers/char/tty_ioctl.cstatic void change_termios(struct tty_struct * tty, struct termios * new_termios)
tty100drivers/char/tty_ioctl.cstruct termios old_termios = *tty->termios;
tty103drivers/char/tty_ioctl.c*tty->termios = *new_termios;
tty104drivers/char/tty_ioctl.cunset_locked_termios(tty->termios, &old_termios, tty->termios_locked);
tty105drivers/char/tty_ioctl.ccanon_change = (old_termios.c_lflag ^ tty->termios->c_lflag) & ICANON;
tty107drivers/char/tty_ioctl.cmemset(&tty->read_flags, 0, sizeof tty->read_flags);
tty108drivers/char/tty_ioctl.ctty->canon_head = tty->read_tail;
tty109drivers/char/tty_ioctl.ctty->canon_data = 0;
tty110drivers/char/tty_ioctl.ctty->erasing = 0;
tty113drivers/char/tty_ioctl.cif (canon_change && !L_ICANON(tty) && tty->read_cnt)
tty115drivers/char/tty_ioctl.cwake_up_interruptible(&tty->read_wait);
tty119drivers/char/tty_ioctl.cif (tty->link && tty->link->packet) {
tty123drivers/char/tty_ioctl.cint new_flow = (I_IXON(tty) &&
tty124drivers/char/tty_ioctl.cSTOP_CHAR(tty) == '\023' &&
tty125drivers/char/tty_ioctl.cSTART_CHAR(tty) == '\021');
tty127drivers/char/tty_ioctl.ctty->ctrl_status &= ~(TIOCPKT_DOSTOP | TIOCPKT_NOSTOP);
tty129drivers/char/tty_ioctl.ctty->ctrl_status |= TIOCPKT_DOSTOP;
tty131drivers/char/tty_ioctl.ctty->ctrl_status |= TIOCPKT_NOSTOP;
tty132drivers/char/tty_ioctl.cwake_up_interruptible(&tty->link->read_wait);
tty136drivers/char/tty_ioctl.cif (tty->driver.set_termios)
tty137drivers/char/tty_ioctl.c(*tty->driver.set_termios)(tty, &old_termios);
tty139drivers/char/tty_ioctl.cif (tty->ldisc.set_termios)
tty140drivers/char/tty_ioctl.c(*tty->ldisc.set_termios)(tty, &old_termios);
tty143drivers/char/tty_ioctl.cstatic int set_termios(struct tty_struct * tty, unsigned long arg, int opt)
tty148drivers/char/tty_ioctl.cretval = tty_check_change(tty);
tty157drivers/char/tty_ioctl.ctmp_termios = *tty->termios;
tty169drivers/char/tty_ioctl.cif ((opt & TERMIOS_FLUSH) && tty->ldisc.flush_buffer)
tty170drivers/char/tty_ioctl.ctty->ldisc.flush_buffer(tty);
tty173drivers/char/tty_ioctl.ctty_wait_until_sent(tty, 0);
tty175drivers/char/tty_ioctl.cchange_termios(tty, &tmp_termios);
tty179drivers/char/tty_ioctl.cstatic int get_termio(struct tty_struct * tty, struct termio * termio)
tty187drivers/char/tty_ioctl.ctrans_to_termio(tty->termios, &tmp_termio);
tty192drivers/char/tty_ioctl.cstatic unsigned long inq_canon(struct tty_struct * tty)
tty196drivers/char/tty_ioctl.cif (!tty->canon_data || !tty->read_buf)
tty198drivers/char/tty_ioctl.chead = tty->canon_head;
tty199drivers/char/tty_ioctl.ctail = tty->read_tail;
tty203drivers/char/tty_ioctl.cif (test_bit(tail, &tty->read_flags) &&
tty204drivers/char/tty_ioctl.ctty->read_buf[tail] == __DISABLED_CHAR)
tty217drivers/char/tty_ioctl.cstatic int get_sgflags(struct tty_struct * tty)
tty221drivers/char/tty_ioctl.cif (!(tty->termios->c_lflag & ICANON))
tty222drivers/char/tty_ioctl.cif (tty->termios->c_lflag & ISIG)
tty226drivers/char/tty_ioctl.cif (tty->termios->c_lflag & ECHO)
tty228drivers/char/tty_ioctl.cif (tty->termios->c_oflag & OPOST)
tty229drivers/char/tty_ioctl.cif (tty->termios->c_oflag & ONLCR)
tty234drivers/char/tty_ioctl.cstatic int get_sgttyb(struct tty_struct * tty, struct sgttyb * sgttyb)
tty244drivers/char/tty_ioctl.ctmp.sg_erase = tty->termios->c_cc[VERASE];
tty245drivers/char/tty_ioctl.ctmp.sg_kill = tty->termios->c_cc[VKILL];
tty246drivers/char/tty_ioctl.ctmp.sg_flags = get_sgflags(tty);
tty276drivers/char/tty_ioctl.cstatic int set_sgttyb(struct tty_struct * tty, struct sgttyb * sgttyb)
tty285drivers/char/tty_ioctl.cretval = tty_check_change(tty);
tty288drivers/char/tty_ioctl.ctermios =  *tty->termios;
tty293drivers/char/tty_ioctl.cchange_termios(tty, &termios);
tty299drivers/char/tty_ioctl.cstatic int get_tchars(struct tty_struct * tty, struct tchars * tchars)
tty307drivers/char/tty_ioctl.ctmp.t_intrc = tty->termios->c_cc[VINTR];
tty308drivers/char/tty_ioctl.ctmp.t_quitc = tty->termios->c_cc[VQUIT];
tty309drivers/char/tty_ioctl.ctmp.t_startc = tty->termios->c_cc[VSTART];
tty310drivers/char/tty_ioctl.ctmp.t_stopc = tty->termios->c_cc[VSTOP];
tty311drivers/char/tty_ioctl.ctmp.t_eofc = tty->termios->c_cc[VEOF];
tty312drivers/char/tty_ioctl.ctmp.t_brkc = tty->termios->c_cc[VEOL2];  /* what is brkc anyway? */
tty317drivers/char/tty_ioctl.cstatic int set_tchars(struct tty_struct * tty, struct tchars * tchars)
tty326drivers/char/tty_ioctl.ctty->termios->c_cc[VINTR] = tmp.t_intrc;
tty327drivers/char/tty_ioctl.ctty->termios->c_cc[VQUIT] = tmp.t_quitc;
tty328drivers/char/tty_ioctl.ctty->termios->c_cc[VSTART] = tmp.t_startc;
tty329drivers/char/tty_ioctl.ctty->termios->c_cc[VSTOP] = tmp.t_stopc;
tty330drivers/char/tty_ioctl.ctty->termios->c_cc[VEOF] = tmp.t_eofc;
tty331drivers/char/tty_ioctl.ctty->termios->c_cc[VEOL2] = tmp.t_brkc;  /* what is brkc anyway? */
tty337drivers/char/tty_ioctl.cstatic int get_ltchars(struct tty_struct * tty, struct ltchars * ltchars)
tty345drivers/char/tty_ioctl.ctmp.t_suspc = tty->termios->c_cc[VSUSP];
tty346drivers/char/tty_ioctl.ctmp.t_dsuspc = tty->termios->c_cc[VSUSP];  /* what is dsuspc anyway? */
tty347drivers/char/tty_ioctl.ctmp.t_rprntc = tty->termios->c_cc[VREPRINT];
tty348drivers/char/tty_ioctl.ctmp.t_flushc = tty->termios->c_cc[VEOL2];  /* what is flushc anyway? */
tty349drivers/char/tty_ioctl.ctmp.t_werasc = tty->termios->c_cc[VWERASE];
tty350drivers/char/tty_ioctl.ctmp.t_lnextc = tty->termios->c_cc[VLNEXT];
tty355drivers/char/tty_ioctl.cstatic int set_ltchars(struct tty_struct * tty, struct ltchars * ltchars)
tty364drivers/char/tty_ioctl.ctty->termios->c_cc[VSUSP] = tmp.t_suspc;
tty365drivers/char/tty_ioctl.ctty->termios->c_cc[VEOL2] = tmp.t_dsuspc;  /* what is dsuspc anyway? */
tty366drivers/char/tty_ioctl.ctty->termios->c_cc[VREPRINT] = tmp.t_rprntc;
tty367drivers/char/tty_ioctl.ctty->termios->c_cc[VEOL2] = tmp.t_flushc;  /* what is flushc anyway? */
tty368drivers/char/tty_ioctl.ctty->termios->c_cc[VWERASE] = tmp.t_werasc;
tty369drivers/char/tty_ioctl.ctty->termios->c_cc[VLNEXT] = tmp.t_lnextc;
tty374drivers/char/tty_ioctl.cint n_tty_ioctl(struct tty_struct * tty, struct file * file,
tty381drivers/char/tty_ioctl.cif (tty->driver.type == TTY_DRIVER_TYPE_PTY &&
tty382drivers/char/tty_ioctl.ctty->driver.subtype == PTY_TYPE_MASTER)
tty383drivers/char/tty_ioctl.creal_tty = tty->link;
tty385drivers/char/tty_ioctl.creal_tty = tty;
tty431drivers/char/tty_ioctl.cretval = tty_check_change(tty);
tty436drivers/char/tty_ioctl.cstop_tty(tty);
tty439drivers/char/tty_ioctl.cstart_tty(tty);
tty442drivers/char/tty_ioctl.cif (STOP_CHAR(tty) != __DISABLED_CHAR)
tty443drivers/char/tty_ioctl.ctty->driver.write(tty, 0,
tty444drivers/char/tty_ioctl.c&STOP_CHAR(tty), 1);
tty447drivers/char/tty_ioctl.cif (START_CHAR(tty) != __DISABLED_CHAR)
tty448drivers/char/tty_ioctl.ctty->driver.write(tty, 0,
tty449drivers/char/tty_ioctl.c&START_CHAR(tty), 1);
tty456drivers/char/tty_ioctl.cretval = tty_check_change(tty);
tty461drivers/char/tty_ioctl.cif (tty->ldisc.flush_buffer)
tty462drivers/char/tty_ioctl.ctty->ldisc.flush_buffer(tty);
tty465drivers/char/tty_ioctl.cif (tty->ldisc.flush_buffer)
tty466drivers/char/tty_ioctl.ctty->ldisc.flush_buffer(tty);
tty469drivers/char/tty_ioctl.cif (tty->driver.flush_buffer)
tty470drivers/char/tty_ioctl.ctty->driver.flush_buffer(tty);
tty481drivers/char/tty_ioctl.cif (tty->driver.chars_in_buffer)
tty482drivers/char/tty_ioctl.cput_user(tty->driver.chars_in_buffer(tty),
tty492drivers/char/tty_ioctl.cif (L_ICANON(tty))
tty493drivers/char/tty_ioctl.cput_fs_long(inq_canon(tty),
tty496drivers/char/tty_ioctl.cput_fs_long(tty->read_cnt,
tty520drivers/char/tty_ioctl.cif (tty->driver.type != TTY_DRIVER_TYPE_PTY ||
tty521drivers/char/tty_ioctl.ctty->driver.subtype != PTY_TYPE_MASTER)
tty528drivers/char/tty_ioctl.cif (!tty->packet) {
tty529drivers/char/tty_ioctl.ctty->packet = 1;
tty530drivers/char/tty_ioctl.ctty->link->ctrl_status = 0;
tty533drivers/char/tty_ioctl.ctty->packet = 0;
tty538drivers/char/tty_ioctl.cretval = tty_check_change(tty);
tty541drivers/char/tty_ioctl.ctty_wait_until_sent(tty, 0);
tty542drivers/char/tty_ioctl.cif (!tty->driver.ioctl)
tty544drivers/char/tty_ioctl.ctty->driver.ioctl(tty, file, cmd, arg);
tty125drivers/char/vt.cif ( p->tty && MAJOR(p->tty->device) == TTY_MAJOR &&
tty126drivers/char/vt.cMINOR(p->tty->device) <= MAX_NR_CONSOLES && MINOR(p->tty->device) )
tty196drivers/char/vt.cint vt_ioctl(struct tty_struct *tty, struct file * file,
tty203drivers/char/vt.cstruct vt_struct *vt = (struct vt_struct *)tty->driver_data;
tty215drivers/char/vt.cif (current->tty == tty || suser())
tty342drivers/char/vt.cif (tty->ldisc.flush_buffer)
tty343drivers/char/vt.ctty->ldisc.flush_buffer(tty);
tty57drivers/isdn/isdn_tty.cstruct tty_struct *tty;
tty62drivers/isdn/isdn_tty.cif ((tty = dev->mdm.info[i].tty)) {
tty64drivers/isdn/isdn_tty.cc = TTY_FLIPBUF_SIZE - tty->flip.count - 1;
tty67drivers/isdn/isdn_tty.cmemcpy(tty->flip.char_buf_ptr, buf, len);
tty68drivers/isdn/isdn_tty.ctty->flip.count += len;
tty69drivers/isdn/isdn_tty.cmemset(tty->flip.flag_buf_ptr, 0, len);
tty71drivers/isdn/isdn_tty.ctty->flip.flag_buf_ptr[len - 1] = 0xff;
tty72drivers/isdn/isdn_tty.ctty->flip.flag_buf_ptr += len;
tty73drivers/isdn/isdn_tty.ctty->flip.char_buf_ptr += len;
tty75drivers/isdn/isdn_tty.ctty_insert_flip_char(tty, buf[0], 0);
tty76drivers/isdn/isdn_tty.cqueue_task_irq_off(&tty->flip.tqueue, &tq_timer);
tty93drivers/isdn/isdn_tty.cstruct tty_struct *tty;
tty103drivers/isdn/isdn_tty.cif ((tty = info->tty)) {
tty105drivers/isdn/isdn_tty.cc = TTY_FLIPBUF_SIZE - tty->flip.count - 1;
tty108drivers/isdn/isdn_tty.ctty->flip.char_buf_ptr,
tty109drivers/isdn/isdn_tty.ctty->flip.flag_buf_ptr, c, 0);
tty111drivers/isdn/isdn_tty.cmemset(tty->flip.flag_buf_ptr, 0, r);
tty112drivers/isdn/isdn_tty.ctty->flip.count += r;
tty113drivers/isdn/isdn_tty.ctty->flip.flag_buf_ptr += r;
tty114drivers/isdn/isdn_tty.ctty->flip.char_buf_ptr += r;
tty116drivers/isdn/isdn_tty.cqueue_task_irq_off(&tty->flip.tqueue, &tq_timer);
tty239drivers/isdn/isdn_tty.cif (!info->tty || !info->tty->termios)
tty241drivers/isdn/isdn_tty.ccflag = info->tty->termios->c_cflag;
tty247drivers/isdn/isdn_tty.cinfo->tty->termios->c_cflag &= ~CBAUDEX;
tty293drivers/isdn/isdn_tty.cif (info->tty)
tty294drivers/isdn/isdn_tty.cset_bit(TTY_IO_ERROR, &info->tty->flags);
tty307drivers/isdn/isdn_tty.cif (info->tty)
tty308drivers/isdn/isdn_tty.cclear_bit(TTY_IO_ERROR, &info->tty->flags);
tty338drivers/isdn/isdn_tty.cif (!info->tty || (info->tty->termios->c_cflag & HUPCL)) {
tty348drivers/isdn/isdn_tty.cif (info->tty)
tty349drivers/isdn/isdn_tty.cset_bit(TTY_IO_ERROR, &info->tty->flags);
tty355drivers/isdn/isdn_tty.cstatic int isdn_tty_write(struct tty_struct *tty, int from_user, const u_char * buf, int count)
tty358drivers/isdn/isdn_tty.cmodem_info *info = (modem_info *) tty->driver_data;
tty362drivers/isdn/isdn_tty.cif (isdn_tty_paranoia_check(info, tty->device, "isdn_tty_write"))
tty364drivers/isdn/isdn_tty.cif (!tty)
tty425drivers/isdn/isdn_tty.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
tty426drivers/isdn/isdn_tty.ctty->ldisc.write_wakeup)
tty427drivers/isdn/isdn_tty.c(tty->ldisc.write_wakeup) (tty);
tty428drivers/isdn/isdn_tty.cwake_up_interruptible(&tty->write_wait);
tty452drivers/isdn/isdn_tty.cstatic int isdn_tty_write_room(struct tty_struct *tty)
tty454drivers/isdn/isdn_tty.cmodem_info *info = (modem_info *) tty->driver_data;
tty457drivers/isdn/isdn_tty.cif (isdn_tty_paranoia_check(info, tty->device, "isdn_tty_write_room"))
tty465drivers/isdn/isdn_tty.cstatic int isdn_tty_chars_in_buffer(struct tty_struct *tty)
tty467drivers/isdn/isdn_tty.cmodem_info *info = (modem_info *) tty->driver_data;
tty469drivers/isdn/isdn_tty.cif (isdn_tty_paranoia_check(info, tty->device, "isdn_tty_chars_in_buffer"))
tty476drivers/isdn/isdn_tty.cstatic void isdn_tty_flush_buffer(struct tty_struct *tty)
tty478drivers/isdn/isdn_tty.cmodem_info *info = (modem_info *) tty->driver_data;
tty481drivers/isdn/isdn_tty.cif (isdn_tty_paranoia_check(info, tty->device, "isdn_tty_flush_buffer"))
tty487drivers/isdn/isdn_tty.cwake_up_interruptible(&tty->write_wait);
tty488drivers/isdn/isdn_tty.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
tty489drivers/isdn/isdn_tty.ctty->ldisc.write_wakeup)
tty490drivers/isdn/isdn_tty.c(tty->ldisc.write_wakeup) (tty);
tty493drivers/isdn/isdn_tty.cstatic void isdn_tty_flush_chars(struct tty_struct *tty)
tty495drivers/isdn/isdn_tty.cmodem_info *info = (modem_info *) tty->driver_data;
tty497drivers/isdn/isdn_tty.cif (isdn_tty_paranoia_check(info, tty->device, "isdn_tty_flush_chars"))
tty511drivers/isdn/isdn_tty.cstatic void isdn_tty_throttle(struct tty_struct *tty)
tty513drivers/isdn/isdn_tty.cmodem_info *info = (modem_info *) tty->driver_data;
tty515drivers/isdn/isdn_tty.cif (isdn_tty_paranoia_check(info, tty->device, "isdn_tty_throttle"))
tty517drivers/isdn/isdn_tty.cif (I_IXOFF(tty))
tty518drivers/isdn/isdn_tty.cinfo->x_char = STOP_CHAR(tty);
tty522drivers/isdn/isdn_tty.cstatic void isdn_tty_unthrottle(struct tty_struct *tty)
tty524drivers/isdn/isdn_tty.cmodem_info *info = (modem_info *) tty->driver_data;
tty526drivers/isdn/isdn_tty.cif (isdn_tty_paranoia_check(info, tty->device, "isdn_tty_unthrottle"))
tty528drivers/isdn/isdn_tty.cif (I_IXOFF(tty)) {
tty532drivers/isdn/isdn_tty.cinfo->x_char = START_CHAR(tty);
tty640drivers/isdn/isdn_tty.cstatic int isdn_tty_ioctl(struct tty_struct *tty, struct file *file,
tty643drivers/isdn/isdn_tty.cmodem_info *info = (modem_info *) tty->driver_data;
tty647drivers/isdn/isdn_tty.cif (isdn_tty_paranoia_check(info, tty->device, "isdn_tty_ioctl"))
tty651drivers/isdn/isdn_tty.cretval = tty_check_change(tty);
tty654drivers/isdn/isdn_tty.ctty_wait_until_sent(tty, 0);
tty657drivers/isdn/isdn_tty.cretval = tty_check_change(tty);
tty660drivers/isdn/isdn_tty.ctty_wait_until_sent(tty, 0);
tty666drivers/isdn/isdn_tty.cput_fs_long(C_CLOCAL(tty) ? 1 : 0, (ulong *) arg);
tty670drivers/isdn/isdn_tty.ctty->termios->c_cflag =
tty671drivers/isdn/isdn_tty.c((tty->termios->c_cflag & ~CLOCAL) |
tty752drivers/isdn/isdn_tty.cstatic void isdn_tty_set_termios(struct tty_struct *tty, struct termios *old_termios)
tty754drivers/isdn/isdn_tty.cmodem_info *info = (modem_info *) tty->driver_data;
tty756drivers/isdn/isdn_tty.cif (tty->termios->c_cflag == old_termios->c_cflag)
tty760drivers/isdn/isdn_tty.c!(tty->termios->c_cflag & CRTSCTS)) {
tty761drivers/isdn/isdn_tty.ctty->hw_stopped = 0;
tty770drivers/isdn/isdn_tty.cstatic int isdn_tty_block_til_ready(struct tty_struct *tty, struct file *filp, modem_info * info)
tty798drivers/isdn/isdn_tty.cif (tty->driver.subtype == ISDN_SERIAL_TYPE_CALLOUT) {
tty826drivers/isdn/isdn_tty.cif (tty->termios->c_cflag & CLOCAL)
tty900drivers/isdn/isdn_tty.cstatic int isdn_tty_open(struct tty_struct *tty, struct file *filp)
tty905drivers/isdn/isdn_tty.cline = MINOR(tty->device) - tty->driver.minor_start;
tty909drivers/isdn/isdn_tty.cif (isdn_tty_paranoia_check(info, tty->device, "isdn_tty_open"))
tty912drivers/isdn/isdn_tty.cprintk(KERN_DEBUG "isdn_tty_open %s%d, count = %d\n", tty->driver.name,
tty916drivers/isdn/isdn_tty.ctty->driver_data = info;
tty917drivers/isdn/isdn_tty.cinfo->tty = tty;
tty928drivers/isdn/isdn_tty.cretval = isdn_tty_block_til_ready(tty, filp, info);
tty936drivers/isdn/isdn_tty.cif (tty->driver.subtype == ISDN_SERIAL_TYPE_NORMAL)
tty937drivers/isdn/isdn_tty.c*tty->termios = info->normal_termios;
tty939drivers/isdn/isdn_tty.c*tty->termios = info->callout_termios;
tty954drivers/isdn/isdn_tty.cstatic void isdn_tty_close(struct tty_struct *tty, struct file *filp)
tty956drivers/isdn/isdn_tty.cmodem_info *info = (modem_info *) tty->driver_data;
tty960drivers/isdn/isdn_tty.cif (!info || isdn_tty_paranoia_check(info, tty->device, "isdn_tty_close"))
tty972drivers/isdn/isdn_tty.cif ((tty->count == 1) && (info->count != 1)) {
tty1002drivers/isdn/isdn_tty.cinfo->normal_termios = *tty->termios;
tty1004drivers/isdn/isdn_tty.cinfo->callout_termios = *tty->termios;
tty1006drivers/isdn/isdn_tty.ctty->closing = 1;
tty1015drivers/isdn/isdn_tty.ctty_wait_until_sent(tty, 3000);    /* 30 seconds timeout */
tty1032drivers/isdn/isdn_tty.cif (tty->driver.flush_buffer)
tty1033drivers/isdn/isdn_tty.ctty->driver.flush_buffer(tty);
tty1034drivers/isdn/isdn_tty.cif (tty->ldisc.flush_buffer)
tty1035drivers/isdn/isdn_tty.ctty->ldisc.flush_buffer(tty);
tty1036drivers/isdn/isdn_tty.cinfo->tty = 0;
tty1037drivers/isdn/isdn_tty.ctty->closing = 0;
tty1039drivers/isdn/isdn_tty.cif (tty->ldisc.num != ldiscs[N_TTY].num) {
tty1040drivers/isdn/isdn_tty.cif (tty->ldisc.close)
tty1041drivers/isdn/isdn_tty.c(tty->ldisc.close) (tty);
tty1042drivers/isdn/isdn_tty.ctty->ldisc = ldiscs[N_TTY];
tty1043drivers/isdn/isdn_tty.ctty->termios->c_line = N_TTY;
tty1044drivers/isdn/isdn_tty.cif (tty->ldisc.open)
tty1045drivers/isdn/isdn_tty.c(tty->ldisc.open) (tty);
tty1068drivers/isdn/isdn_tty.cstatic void isdn_tty_hangup(struct tty_struct *tty)
tty1070drivers/isdn/isdn_tty.cmodem_info *info = (modem_info *) tty->driver_data;
tty1072drivers/isdn/isdn_tty.cif (isdn_tty_paranoia_check(info, tty->device, "isdn_tty_hangup"))
tty1077drivers/isdn/isdn_tty.cinfo->tty = 0;
tty1186drivers/isdn/isdn_tty.cinfo->tty = 0;
tty1314drivers/isdn/isdn_tty.cstruct tty_struct *tty;
tty1326drivers/isdn/isdn_tty.ctty = info->tty;
tty1341drivers/isdn/isdn_tty.cif ((info->flags & ISDN_ASYNC_CLOSING) || (!tty)) {
tty1345drivers/isdn/isdn_tty.cif (tty->flip.count >= TTY_FLIPBUF_SIZE)
tty1347drivers/isdn/isdn_tty.ctty_insert_flip_char(tty, c, 0);
tty1350drivers/isdn/isdn_tty.cqueue_task(&tty->flip.tqueue, &tq_timer);
tty1459drivers/isdn/isdn_tty.cif ((info->flags & ISDN_ASYNC_CLOSING) || (!info->tty)) {
tty1496drivers/isdn/isdn_tty.cif ((info->flags & ISDN_ASYNC_CLOSING) || (!info->tty)) {
tty1503drivers/isdn/isdn_tty.ctty_hangup(info->tty);
tty2003drivers/isdn/isdn_tty.cstruct tty_struct *tty = info->tty;
tty2030drivers/isdn/isdn_tty.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
tty2031drivers/isdn/isdn_tty.ctty->ldisc.write_wakeup)
tty2032drivers/isdn/isdn_tty.c(tty->ldisc.write_wakeup) (tty);
tty2033drivers/isdn/isdn_tty.cwake_up_interruptible(&tty->write_wait);
tty197drivers/net/ppp.cstatic int ppp_tty_select (struct tty_struct *tty, struct inode *inode,
tty201drivers/net/ppp.cstatic int ppp_tty_room (struct tty_struct *tty);
tty202drivers/net/ppp.cstatic void ppp_tty_receive (struct tty_struct *tty, const __u8 * cp,
tty204drivers/net/ppp.cstatic void ppp_tty_wakeup (struct tty_struct *tty);
tty215drivers/net/ppp.c#define tty2ppp(tty)  ((struct ppp *) (tty->disc_data))
tty217drivers/net/ppp.c#define ppp2tty(ppp)  ((struct tty_struct *) ppp->tty)
tty641drivers/net/ppp.cppp->tty->flags &= ~(1 << TTY_DO_WRITE_WAKEUP);
tty683drivers/net/ppp.cstruct tty_struct *tty;
tty686drivers/net/ppp.ctty = ppp2tty (ppp);
tty695drivers/net/ppp.cif (tty != NULL && tty->disc_data == ppp)
tty696drivers/net/ppp.ctty->disc_data = NULL;  /* Break the tty->ppp link */
tty724drivers/net/ppp.cppp->tty   = NULL;
tty734drivers/net/ppp.cppp_tty_close_local (struct tty_struct *tty, int sc_xfer)
tty736drivers/net/ppp.cstruct ppp *ppp = tty2ppp (tty);
tty756drivers/net/ppp.cppp_tty_close (struct tty_struct *tty)
tty758drivers/net/ppp.cppp_tty_close_local (tty, 0);
tty768drivers/net/ppp.cppp_tty_open (struct tty_struct *tty)
tty770drivers/net/ppp.cstruct ppp *ppp = tty2ppp (tty);
tty803drivers/net/ppp.cppp->tty       = tty;
tty804drivers/net/ppp.ctty->disc_data = ppp;
tty808drivers/net/ppp.cif (tty->ldisc.flush_buffer)
tty809drivers/net/ppp.ctty->ldisc.flush_buffer (tty);
tty811drivers/net/ppp.cif (tty->driver.flush_buffer)
tty812drivers/net/ppp.ctty->driver.flush_buffer (tty);
tty866drivers/net/ppp.cppp_tty_wakeup_code (struct ppp *ppp, struct tty_struct *tty,
tty884drivers/net/ppp.cactual = tty->driver.write (tty, 0,
tty907drivers/net/ppp.ctty->flags  &= ~(1 << TTY_DO_WRITE_WAKEUP);
tty960drivers/net/ppp.cppp_tty_wakeup (struct tty_struct *tty)
tty963drivers/net/ppp.cstruct ppp *ppp = tty2ppp (tty);
tty976drivers/net/ppp.ctty->flags &= ~(1 << TTY_DO_WRITE_WAKEUP);
tty978drivers/net/ppp.cppp_tty_wakeup_code (ppp, tty, xbuf);
tty1017drivers/net/ppp.cppp->tty->flags |= (1 << TTY_DO_WRITE_WAKEUP);
tty1041drivers/net/ppp.cppp_tty_room (struct tty_struct *tty)
tty1051drivers/net/ppp.cppp_tty_receive (struct tty_struct *tty, const __u8 * data,
tty1054drivers/net/ppp.cregister struct ppp *ppp = tty2ppp (tty);
tty1332drivers/net/ppp.cif (ppp->tty->fasync != NULL)
tty1333drivers/net/ppp.ckill_fasync (ppp->tty->fasync, SIGIO);
tty1674drivers/net/ppp.cppp_tty_read (struct tty_struct *tty, struct file *file, __u8 * buf,
tty1677drivers/net/ppp.cstruct ppp *ppp = tty2ppp (tty);
tty1706drivers/net/ppp.cppp = tty2ppp (tty);
tty2060drivers/net/ppp.cppp_tty_write (struct tty_struct *tty, struct file *file, const __u8 * data,
tty2063drivers/net/ppp.cstruct ppp *ppp = tty2ppp (tty);
tty2106drivers/net/ppp.cppp = tty2ppp (tty);
tty2224drivers/net/ppp.cppp_tty_ioctl (struct tty_struct *tty, struct file * file,
tty2227drivers/net/ppp.cstruct ppp *ppp = tty2ppp (tty);
tty2492drivers/net/ppp.cppp_tty_close_local (tty, current->pid);
tty2544drivers/net/ppp.cerror = n_tty_ioctl (tty, file, param2, param3);
tty2582drivers/net/ppp.cppp_tty_select (struct tty_struct *tty, struct inode *inode,
tty2585drivers/net/ppp.cstruct ppp *ppp = tty2ppp (tty);
tty2616drivers/net/ppp.cif (tty->flags & (1 << TTY_SLAVE_CLOSED))
tty2852drivers/net/ppp.cstruct tty_struct *tty = ppp2tty (ppp);
tty2861drivers/net/ppp.cif (tty == NULL) {
tty2976drivers/net/ppp.cstruct tty_struct *tty = ppp2tty (ppp);
tty2981drivers/net/ppp.cif (tty == NULL) {
tty3044drivers/net/ppp.cstruct tty_struct *tty = ppp2tty (ppp);
tty3070drivers/net/ppp.cif (tty == NULL) {
tty3225drivers/net/ppp.cppp->tty       = NULL;
tty3437drivers/net/ppp.cif (ppp->inuse && ppp->tty != NULL) {
tty147drivers/net/slip.cslp->ctrl.tty         = NULL;
tty445drivers/net/slip.csl->tty->flags |= (1 << TTY_DO_WRITE_WAKEUP);
tty446drivers/net/slip.cactual = sl->tty->driver.write(sl->tty, 0, sl->xbuff, count);
tty460drivers/net/slip.cstatic void slip_write_wakeup(struct tty_struct *tty)
tty463drivers/net/slip.cstruct slip *sl = (struct slip *) tty->disc_data;
tty473drivers/net/slip.ctty->flags &= ~(1 << TTY_DO_WRITE_WAKEUP);
tty479drivers/net/slip.cactual = tty->driver.write(tty, 0, sl->xhead, sl->xleft);
tty514drivers/net/slip.c(sl->tty->driver.chars_in_buffer(sl->tty) || sl->xleft) ?
tty517drivers/net/slip.csl->tty->flags &= ~(1 << TTY_DO_WRITE_WAKEUP);
tty579drivers/net/slip.cif (sl->tty == NULL) {
tty671drivers/net/slip.cif (sl->tty == NULL) {
tty674drivers/net/slip.csl->tty->flags &= ~(1 << TTY_DO_WRITE_WAKEUP);
tty684drivers/net/slip.cslip_receive_room(struct tty_struct *tty)
tty696drivers/net/slip.cslip_receive_buf(struct tty_struct *tty, const unsigned char *cp, char *fp, int count)
tty698drivers/net/slip.cstruct slip *sl = (struct slip *) tty->disc_data;
tty741drivers/net/slip.cslip_open(struct tty_struct *tty)
tty743drivers/net/slip.cstruct slip *sl = (struct slip *) tty->disc_data;
tty756drivers/net/slip.csl->tty = tty;
tty757drivers/net/slip.ctty->disc_data = sl;
tty758drivers/net/slip.cif (tty->driver.flush_buffer)  {
tty759drivers/net/slip.ctty->driver.flush_buffer(tty);
tty761drivers/net/slip.cif (tty->ldisc.flush_buffer)  {
tty762drivers/net/slip.ctty->ldisc.flush_buffer(tty);
tty792drivers/net/slip.cslip_close(struct tty_struct *tty)
tty794drivers/net/slip.cstruct slip *sl = (struct slip *) tty->disc_data;
tty803drivers/net/slip.ctty->disc_data = 0;
tty804drivers/net/slip.csl->tty = NULL;
tty1042drivers/net/slip.cslip_ioctl(struct tty_struct *tty, void *file, int cmd, void *arg)
tty1044drivers/net/slip.cstruct slip *sl = (struct slip *) tty->disc_data;
tty1178drivers/net/slip.creturn n_tty_ioctl(tty, (struct file *) file, cmd, (unsigned long) arg);
tty1188drivers/net/slip.cif(sl->tty==NULL)
tty1388drivers/net/slip.csl->tty->driver.write(sl->tty, 0, &s, 1);
tty1417drivers/net/slip.ctty_hangup(sl->tty); /* this must hangup tty & close slip */
tty54drivers/net/slip.hstruct tty_struct  *tty;    /* ptr to TTY structure    */
tty384fs/dquot.ctty_write_message(current->tty, quotamessage);
tty395fs/dquot.ctty_write_message(current->tty, quotamessage);
tty405fs/dquot.ctty_write_message(current->tty, quotamessage);
tty422fs/dquot.ctty_write_message(current->tty, quotamessage);
tty433fs/dquot.ctty_write_message(current->tty, quotamessage);
tty443fs/dquot.ctty_write_message(current->tty, quotamessage);
tty614fs/open.cif (current->tty)
tty615fs/open.ctty_vhangup(current->tty);
tty679fs/proc/array.cif (tsk->tty)
tty680fs/proc/array.ctty_pgrp = tsk->tty->pgrp;
tty700fs/proc/array.ctsk->tty ? kdev_t_to_nr(tsk->tty->device) : 0,
tty79include/linux/cyclades.hstruct tty_struct   *tty;
tty112include/linux/if_pppvar.hstruct tty_struct  *tty;    /* ptr to TTY structure  */
tty370include/linux/isdn.hstruct tty_struct   *tty;
tty232include/linux/scc.hstruct tty_struct *tty; /* link to tty control structure */
tty232include/linux/sched.hstruct tty_struct *tty; /* NULL if no tty */
tty139include/linux/serial.hstruct tty_struct   *tty;
tty109include/linux/tty.h#define INTR_CHAR(tty) ((tty)->termios->c_cc[VINTR])
tty110include/linux/tty.h#define QUIT_CHAR(tty) ((tty)->termios->c_cc[VQUIT])
tty111include/linux/tty.h#define ERASE_CHAR(tty) ((tty)->termios->c_cc[VERASE])
tty112include/linux/tty.h#define KILL_CHAR(tty) ((tty)->termios->c_cc[VKILL])
tty113include/linux/tty.h#define EOF_CHAR(tty) ((tty)->termios->c_cc[VEOF])
tty114include/linux/tty.h#define TIME_CHAR(tty) ((tty)->termios->c_cc[VTIME])
tty115include/linux/tty.h#define MIN_CHAR(tty) ((tty)->termios->c_cc[VMIN])
tty116include/linux/tty.h#define SWTC_CHAR(tty) ((tty)->termios->c_cc[VSWTC])
tty117include/linux/tty.h#define START_CHAR(tty) ((tty)->termios->c_cc[VSTART])
tty118include/linux/tty.h#define STOP_CHAR(tty) ((tty)->termios->c_cc[VSTOP])
tty119include/linux/tty.h#define SUSP_CHAR(tty) ((tty)->termios->c_cc[VSUSP])
tty120include/linux/tty.h#define EOL_CHAR(tty) ((tty)->termios->c_cc[VEOL])
tty121include/linux/tty.h#define REPRINT_CHAR(tty) ((tty)->termios->c_cc[VREPRINT])
tty122include/linux/tty.h#define DISCARD_CHAR(tty) ((tty)->termios->c_cc[VDISCARD])
tty123include/linux/tty.h#define WERASE_CHAR(tty) ((tty)->termios->c_cc[VWERASE])
tty124include/linux/tty.h#define LNEXT_CHAR(tty)  ((tty)->termios->c_cc[VLNEXT])
tty125include/linux/tty.h#define EOL2_CHAR(tty) ((tty)->termios->c_cc[VEOL2])
tty127include/linux/tty.h#define _I_FLAG(tty,f)  ((tty)->termios->c_iflag & (f))
tty128include/linux/tty.h#define _O_FLAG(tty,f)  ((tty)->termios->c_oflag & (f))
tty129include/linux/tty.h#define _C_FLAG(tty,f)  ((tty)->termios->c_cflag & (f))
tty130include/linux/tty.h#define _L_FLAG(tty,f)  ((tty)->termios->c_lflag & (f))
tty132include/linux/tty.h#define I_IGNBRK(tty)  _I_FLAG((tty),IGNBRK)
tty133include/linux/tty.h#define I_BRKINT(tty)  _I_FLAG((tty),BRKINT)
tty134include/linux/tty.h#define I_IGNPAR(tty)  _I_FLAG((tty),IGNPAR)
tty135include/linux/tty.h#define I_PARMRK(tty)  _I_FLAG((tty),PARMRK)
tty136include/linux/tty.h#define I_INPCK(tty)  _I_FLAG((tty),INPCK)
tty137include/linux/tty.h#define I_ISTRIP(tty)  _I_FLAG((tty),ISTRIP)
tty138include/linux/tty.h#define I_INLCR(tty)  _I_FLAG((tty),INLCR)
tty139include/linux/tty.h#define I_IGNCR(tty)  _I_FLAG((tty),IGNCR)
tty140include/linux/tty.h#define I_ICRNL(tty)  _I_FLAG((tty),ICRNL)
tty141include/linux/tty.h#define I_IUCLC(tty)  _I_FLAG((tty),IUCLC)
tty142include/linux/tty.h#define I_IXON(tty)  _I_FLAG((tty),IXON)
tty143include/linux/tty.h#define I_IXANY(tty)  _I_FLAG((tty),IXANY)
tty144include/linux/tty.h#define I_IXOFF(tty)  _I_FLAG((tty),IXOFF)
tty145include/linux/tty.h#define I_IMAXBEL(tty)  _I_FLAG((tty),IMAXBEL)
tty147include/linux/tty.h#define O_OPOST(tty)  _O_FLAG((tty),OPOST)
tty148include/linux/tty.h#define O_OLCUC(tty)  _O_FLAG((tty),OLCUC)
tty149include/linux/tty.h#define O_ONLCR(tty)  _O_FLAG((tty),ONLCR)
tty150include/linux/tty.h#define O_OCRNL(tty)  _O_FLAG((tty),OCRNL)
tty151include/linux/tty.h#define O_ONOCR(tty)  _O_FLAG((tty),ONOCR)
tty152include/linux/tty.h#define O_ONLRET(tty)  _O_FLAG((tty),ONLRET)
tty153include/linux/tty.h#define O_OFILL(tty)  _O_FLAG((tty),OFILL)
tty154include/linux/tty.h#define O_OFDEL(tty)  _O_FLAG((tty),OFDEL)
tty155include/linux/tty.h#define O_NLDLY(tty)  _O_FLAG((tty),NLDLY)
tty156include/linux/tty.h#define O_CRDLY(tty)  _O_FLAG((tty),CRDLY)
tty157include/linux/tty.h#define O_TABDLY(tty)  _O_FLAG((tty),TABDLY)
tty158include/linux/tty.h#define O_BSDLY(tty)  _O_FLAG((tty),BSDLY)
tty159include/linux/tty.h#define O_VTDLY(tty)  _O_FLAG((tty),VTDLY)
tty160include/linux/tty.h#define O_FFDLY(tty)  _O_FLAG((tty),FFDLY)
tty162include/linux/tty.h#define C_BAUD(tty)  _C_FLAG((tty),CBAUD)
tty163include/linux/tty.h#define C_CSIZE(tty)  _C_FLAG((tty),CSIZE)
tty164include/linux/tty.h#define C_CSTOPB(tty)  _C_FLAG((tty),CSTOPB)
tty165include/linux/tty.h#define C_CREAD(tty)  _C_FLAG((tty),CREAD)
tty166include/linux/tty.h#define C_PARENB(tty)  _C_FLAG((tty),PARENB)
tty167include/linux/tty.h#define C_PARODD(tty)  _C_FLAG((tty),PARODD)
tty168include/linux/tty.h#define C_HUPCL(tty)  _C_FLAG((tty),HUPCL)
tty169include/linux/tty.h#define C_CLOCAL(tty)  _C_FLAG((tty),CLOCAL)
tty170include/linux/tty.h#define C_CIBAUD(tty)  _C_FLAG((tty),CIBAUD)
tty171include/linux/tty.h#define C_CRTSCTS(tty)  _C_FLAG((tty),CRTSCTS)
tty173include/linux/tty.h#define L_ISIG(tty)  _L_FLAG((tty),ISIG)
tty174include/linux/tty.h#define L_ICANON(tty)  _L_FLAG((tty),ICANON)
tty175include/linux/tty.h#define L_XCASE(tty)  _L_FLAG((tty),XCASE)
tty176include/linux/tty.h#define L_ECHO(tty)  _L_FLAG((tty),ECHO)
tty177include/linux/tty.h#define L_ECHOE(tty)  _L_FLAG((tty),ECHOE)
tty178include/linux/tty.h#define L_ECHOK(tty)  _L_FLAG((tty),ECHOK)
tty179include/linux/tty.h#define L_ECHONL(tty)  _L_FLAG((tty),ECHONL)
tty180include/linux/tty.h#define L_NOFLSH(tty)  _L_FLAG((tty),NOFLSH)
tty181include/linux/tty.h#define L_TOSTOP(tty)  _L_FLAG((tty),TOSTOP)
tty182include/linux/tty.h#define L_ECHOCTL(tty)  _L_FLAG((tty),ECHOCTL)
tty183include/linux/tty.h#define L_ECHOPRT(tty)  _L_FLAG((tty),ECHOPRT)
tty184include/linux/tty.h#define L_ECHOKE(tty)  _L_FLAG((tty),ECHOKE)
tty185include/linux/tty.h#define L_FLUSHO(tty)  _L_FLAG((tty),FLUSHO)
tty186include/linux/tty.h#define L_PENDIN(tty)  _L_FLAG((tty),PENDIN)
tty187include/linux/tty.h#define L_IEXTEN(tty)  _L_FLAG((tty),IEXTEN)
tty269include/linux/tty.h#define TTY_WRITE_FLUSH(tty) tty_write_flush((tty))
tty292include/linux/tty.hextern int tty_paranoia_check(struct tty_struct *tty, kdev_t device,
tty294include/linux/tty.hextern char *_tty_name(struct tty_struct *tty, char *buf);
tty295include/linux/tty.hextern char *tty_name(struct tty_struct *tty);
tty296include/linux/tty.hextern void tty_wait_until_sent(struct tty_struct * tty, int timeout);
tty297include/linux/tty.hextern int tty_check_change(struct tty_struct * tty);
tty298include/linux/tty.hextern void stop_tty(struct tty_struct * tty);
tty299include/linux/tty.hextern void start_tty(struct tty_struct * tty);
tty303include/linux/tty.hextern int tty_read_raw_data(struct tty_struct *tty, unsigned char *bufp,
tty305include/linux/tty.hextern void tty_write_message(struct tty_struct *tty, char *msg);
tty309include/linux/tty.hextern int tty_signal(int sig, struct tty_struct *tty);
tty310include/linux/tty.hextern void tty_hangup(struct tty_struct * tty);
tty311include/linux/tty.hextern void tty_vhangup(struct tty_struct * tty);
tty314include/linux/tty.hextern void do_SAK(struct tty_struct *tty);
tty321include/linux/tty.hextern int n_tty_ioctl(struct tty_struct * tty, struct file * file,
tty326include/linux/tty.hextern int  rs_open(struct tty_struct * tty, struct file * filp);
tty330include/linux/tty.hextern int  pty_open(struct tty_struct * tty, struct file * filp);
tty334include/linux/tty.hextern int con_open(struct tty_struct * tty, struct file * filp);
tty340include/linux/tty.hextern int vt_ioctl(struct tty_struct *tty, struct file * file,
tty124include/linux/tty_driver.hint  (*open)(struct tty_struct * tty, struct file * filp);
tty125include/linux/tty_driver.hvoid (*close)(struct tty_struct * tty, struct file * filp);
tty126include/linux/tty_driver.hint  (*write)(struct tty_struct * tty, int from_user,
tty128include/linux/tty_driver.hvoid (*put_char)(struct tty_struct *tty, unsigned char ch);
tty129include/linux/tty_driver.hvoid (*flush_chars)(struct tty_struct *tty);
tty130include/linux/tty_driver.hint  (*write_room)(struct tty_struct *tty);
tty131include/linux/tty_driver.hint  (*chars_in_buffer)(struct tty_struct *tty);
tty132include/linux/tty_driver.hint  (*ioctl)(struct tty_struct *tty, struct file * file,
tty134include/linux/tty_driver.hvoid (*set_termios)(struct tty_struct *tty, struct termios * old);
tty135include/linux/tty_driver.hvoid (*throttle)(struct tty_struct * tty);
tty136include/linux/tty_driver.hvoid (*unthrottle)(struct tty_struct * tty);
tty137include/linux/tty_driver.hvoid (*stop)(struct tty_struct *tty);
tty138include/linux/tty_driver.hvoid (*start)(struct tty_struct *tty);
tty139include/linux/tty_driver.hvoid (*hangup)(struct tty_struct *tty);
tty140include/linux/tty_driver.hvoid (*flush_buffer)(struct tty_struct *tty);
tty141include/linux/tty_driver.hvoid (*set_ldisc)(struct tty_struct *tty);
tty10include/linux/tty_flip.h_INLINE_ void tty_insert_flip_char(struct tty_struct *tty,
tty13include/linux/tty_flip.hif (tty->flip.count++ >= TTY_FLIPBUF_SIZE)
tty15include/linux/tty_flip.h*tty->flip.flag_buf_ptr++ = flag;
tty16include/linux/tty_flip.h*tty->flip.char_buf_ptr++ = ch;
tty19include/linux/tty_flip.h_INLINE_ void tty_schedule_flip(struct tty_struct *tty)
tty21include/linux/tty_flip.hqueue_task(&tty->flip.tqueue, &tq_timer);
tty20include/linux/tty_ldisc.hvoid  (*flush_buffer)(struct tty_struct *tty);
tty21include/linux/tty_ldisc.hint  (*chars_in_buffer)(struct tty_struct *tty);
tty22include/linux/tty_ldisc.hint  (*read)(struct tty_struct * tty, struct file * file,
tty24include/linux/tty_ldisc.hint  (*write)(struct tty_struct * tty, struct file * file,
tty26include/linux/tty_ldisc.hint  (*ioctl)(struct tty_struct * tty, struct file * file,
tty28include/linux/tty_ldisc.hvoid  (*set_termios)(struct tty_struct *tty, struct termios * old);
tty29include/linux/tty_ldisc.hint  (*select)(struct tty_struct * tty, struct inode * inode,
tty248kernel/printk.cvoid tty_write_message(struct tty_struct *tty, char *msg)
tty250kernel/printk.cif (tty && tty->driver.write)
tty251kernel/printk.ctty->driver.write(tty, 0, msg, strlen(msg));
tty299kernel/sys.cac.ac_tty   = (current)->tty == NULL ? -1 :
tty300kernel/sys.cMKDEV(4, current->tty->device);
tty700kernel/sys.ccurrent->tty = NULL;