taglinefilesource code
tty1008drivers/char/console.cstatic void respond_string(const char * p, struct tty_struct * tty)
tty1011drivers/char/console.ctty_insert_flip_char(tty, *p, 0);
tty1014drivers/char/console.ctty_schedule_flip(tty);
tty1017drivers/char/console.cstatic void cursor_report(int currcons, struct tty_struct * tty)
tty1022drivers/char/console.crespond_string(buf, tty);
tty1025drivers/char/console.cstatic inline void status_report(struct tty_struct * tty)
tty1027drivers/char/console.crespond_string("\033[0n", tty);  /* Terminal ok */
tty1030drivers/char/console.cstatic inline void respond_ID(struct tty_struct * tty)
tty1032drivers/char/console.crespond_string(VT102ID, tty);
tty1035drivers/char/console.cvoid mouse_report(struct tty_struct * tty, int butt, int mrx, int mry)
tty1041drivers/char/console.crespond_string(buf, tty);
tty1383drivers/char/console.cstatic void con_stop(struct tty_struct *tty)
tty1386drivers/char/console.cif (!tty)
tty1388drivers/char/console.cconsole_num = MINOR(tty->device) - (tty->driver.minor_start);
tty1398drivers/char/console.cstatic void con_start(struct tty_struct *tty)
tty1401drivers/char/console.cif (!tty)
tty1403drivers/char/console.cconsole_num = MINOR(tty->device) - (tty->driver.minor_start);
tty1410drivers/char/console.cstatic int con_write(struct tty_struct * tty, int from_user,
tty1415drivers/char/console.cstruct vt_struct *vt = (struct vt_struct *)tty->driver_data;
tty1432drivers/char/console.cwhile (!tty->stopped &&  count) {
tty1599drivers/char/console.crespond_ID(tty);
tty1690drivers/char/console.cstatus_report(tty);
tty1692drivers/char/console.ccursor_report(currcons,tty);
tty1754drivers/char/console.crespond_ID(tty);
tty1868drivers/char/console.cstatic int con_write_room(struct tty_struct *tty)
tty1870drivers/char/console.cif (tty->stopped)
tty1875drivers/char/console.cstatic int con_chars_in_buffer(struct tty_struct *tty)
tty1936drivers/char/console.cstatic void con_throttle(struct tty_struct *tty)
tty1940drivers/char/console.cstatic void con_unthrottle(struct tty_struct *tty)
tty1942drivers/char/console.cstruct vt_struct *vt = (struct vt_struct *) tty->driver_data;
tty2347drivers/char/console.cint con_open(struct tty_struct *tty, struct file * filp)
tty2352drivers/char/console.cidx = MINOR(tty->device) - tty->driver.minor_start;
tty2359drivers/char/console.ctty->driver_data = vt_cons[idx];
tty2361drivers/char/console.cif (!tty->winsize.ws_row && !tty->winsize.ws_col) {
tty2362drivers/char/console.ctty->winsize.ws_row = video_num_lines;
tty2363drivers/char/console.ctty->winsize.ws_col = video_num_columns;
tty507drivers/char/cyclades.ccy_stop(struct tty_struct *tty)
tty510drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty519drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_stop"))
tty539drivers/char/cyclades.ccy_start(struct tty_struct *tty)
tty542drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty551drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_start"))
tty624drivers/char/cyclades.cstruct tty_struct *tty;
tty679drivers/char/cyclades.cif(info->tty == 0){
tty690drivers/char/cyclades.ctty = info->tty;
tty697drivers/char/cyclades.cif (tty->flip.count < TTY_FLIPBUF_SIZE){
tty698drivers/char/cyclades.ctty->flip.count++;
tty701drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ =
tty703drivers/char/cyclades.c*tty->flip.char_buf_ptr++ =
tty706drivers/char/cyclades.cdo_SAK(tty);
tty709drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ =
tty711drivers/char/cyclades.c*tty->flip.char_buf_ptr++ =
tty714drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ =
tty716drivers/char/cyclades.c*tty->flip.char_buf_ptr++ =
tty719drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ =
tty721drivers/char/cyclades.c*tty->flip.char_buf_ptr++ = 0;
tty726drivers/char/cyclades.cif(tty->flip.count < TTY_FLIPBUF_SIZE){
tty727drivers/char/cyclades.ctty->flip.count++;
tty728drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ =
tty730drivers/char/cyclades.c*tty->flip.char_buf_ptr++ =
tty738drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ = 0;
tty739drivers/char/cyclades.c*tty->flip.char_buf_ptr++ = 0;
tty742drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ = 0;
tty743drivers/char/cyclades.c*tty->flip.char_buf_ptr++ = 0;
tty761drivers/char/cyclades.cif (tty->flip.count >= TTY_FLIPBUF_SIZE){
tty764drivers/char/cyclades.ctty->flip.count++;
tty766drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ = TTY_NORMAL;
tty767drivers/char/cyclades.c*tty->flip.char_buf_ptr++ = data;
tty773drivers/char/cyclades.cqueue_task_irq_off(&tty->flip.tqueue, &tq_timer);
tty799drivers/char/cyclades.cif(info->tty == 0){
tty844drivers/char/cyclades.cif (info->tty->stopped || info->tty->hw_stopped){
tty902drivers/char/cyclades.cif(info->tty == 0){ /* nowhere to put the data, ignore it */
tty918drivers/char/cyclades.cif(info->tty->stopped){
tty921drivers/char/cyclades.cinfo->tty->stopped = 0;
tty928drivers/char/cyclades.cinfo->tty->stopped = 1;
tty983drivers/char/cyclades.cstruct tty_struct    *tty;
tty985drivers/char/cyclades.ctty = info->tty;
tty986drivers/char/cyclades.cif (!tty)
tty990drivers/char/cyclades.ctty_hangup(info->tty);
tty999drivers/char/cyclades.cif((tty->flags & (1<< TTY_DO_WRITE_WAKEUP))
tty1000drivers/char/cyclades.c&& tty->ldisc.write_wakeup){
tty1001drivers/char/cyclades.c(tty->ldisc.write_wakeup)(tty);
tty1003drivers/char/cyclades.cwake_up_interruptible(&tty->write_wait);
tty1171drivers/char/cyclades.cif (info->tty){
tty1172drivers/char/cyclades.cset_bit(TTY_IO_ERROR, &info->tty->flags);
tty1220drivers/char/cyclades.cif (info->tty){
tty1221drivers/char/cyclades.cclear_bit(TTY_IO_ERROR, &info->tty->flags);
tty1296drivers/char/cyclades.cif (!info->tty || (info->tty->termios->c_cflag & HUPCL)) {
tty1308drivers/char/cyclades.cif (info->tty){
tty1309drivers/char/cyclades.cset_bit(TTY_IO_ERROR, &info->tty->flags);
tty1332drivers/char/cyclades.cif (!info->tty || !info->tty->termios){
tty1338drivers/char/cyclades.ccflag = info->tty->termios->c_cflag;
tty1361drivers/char/cyclades.cinfo->tty->termios->c_cflag &= ~CBAUDEX;
tty1464drivers/char/cyclades.cbase_addr[CySCHR1<<index] = START_CHAR(info->tty);
tty1465drivers/char/cyclades.cbase_addr[CySCHR2<<index] = STOP_CHAR(info->tty);
tty1480drivers/char/cyclades.cif (C_CLOCAL(info->tty)) {
tty1508drivers/char/cyclades.cif (info->tty){
tty1509drivers/char/cyclades.cclear_bit(TTY_IO_ERROR, &info->tty->flags);
tty1518drivers/char/cyclades.ccy_put_char(struct tty_struct *tty, unsigned char ch)
tty1520drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1527drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_put_char"))
tty1530drivers/char/cyclades.cif (!tty || !info->xmit_buf)
tty1547drivers/char/cyclades.ccy_flush_chars(struct tty_struct *tty)
tty1549drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1558drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_flush_chars"))
tty1561drivers/char/cyclades.cif (info->xmit_cnt <= 0 || tty->stopped
tty1562drivers/char/cyclades.c|| tty->hw_stopped || !info->xmit_buf)
tty1587drivers/char/cyclades.ccy_write(struct tty_struct * tty, int from_user,
tty1590drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1598drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_write")){
tty1602drivers/char/cyclades.cif (!tty || !info->xmit_buf || !tmp_buf){
tty1634drivers/char/cyclades.c&& !tty->stopped
tty1635drivers/char/cyclades.c&& !tty->hw_stopped ) {
tty1643drivers/char/cyclades.ccy_write_room(struct tty_struct *tty)
tty1645drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1652drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_write_room"))
tty1662drivers/char/cyclades.ccy_chars_in_buffer(struct tty_struct *tty)
tty1664drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1670drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_chars_in_buffer"))
tty1678drivers/char/cyclades.ccy_flush_buffer(struct tty_struct *tty)
tty1680drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1687drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_flush_buffer"))
tty1692drivers/char/cyclades.cwake_up_interruptible(&tty->write_wait);
tty1693drivers/char/cyclades.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP))
tty1694drivers/char/cyclades.c&& tty->ldisc.write_wakeup)
tty1695drivers/char/cyclades.c(tty->ldisc.write_wakeup)(tty);
tty1704drivers/char/cyclades.ccy_throttle(struct tty_struct * tty)
tty1706drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1714drivers/char/cyclades.cprintk("throttle %s: %d....\n", _tty_name(tty, buf),
tty1715drivers/char/cyclades.ctty->ldisc.chars_in_buffer(tty));
tty1719drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_nthrottle")){
tty1723drivers/char/cyclades.cif (I_IXOFF(tty)) {
tty1724drivers/char/cyclades.cinfo->x_char = STOP_CHAR(tty);
tty1746drivers/char/cyclades.ccy_unthrottle(struct tty_struct * tty)
tty1748drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1756drivers/char/cyclades.cprintk("throttle %s: %d....\n", _tty_name(tty, buf),
tty1757drivers/char/cyclades.ctty->ldisc.chars_in_buffer(tty));
tty1761drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_nthrottle")){
tty1765drivers/char/cyclades.cif (I_IXOFF(tty)) {
tty1766drivers/char/cyclades.cinfo->x_char = START_CHAR(tty);
tty2113drivers/char/cyclades.ccy_ioctl(struct tty_struct *tty, struct file * file,
tty2117drivers/char/cyclades.cstruct cyclades_port * info = (struct cyclades_port *)tty->driver_data;
tty2183drivers/char/cyclades.cret_val = tty_check_change(tty);
tty2186drivers/char/cyclades.ctty_wait_until_sent(tty,0);
tty2191drivers/char/cyclades.cret_val = tty_check_change(tty);
tty2194drivers/char/cyclades.ctty_wait_until_sent(tty,0);
tty2211drivers/char/cyclades.cput_fs_long(C_CLOCAL(tty) ? 1 : 0,
tty2216drivers/char/cyclades.ctty->termios->c_cflag =
tty2217drivers/char/cyclades.c((tty->termios->c_cflag & ~CLOCAL) |
tty2258drivers/char/cyclades.ccy_set_termios(struct tty_struct *tty, struct termios * old_termios)
tty2260drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty2266drivers/char/cyclades.cif (tty->termios->c_cflag == old_termios->c_cflag)
tty2271drivers/char/cyclades.c!(tty->termios->c_cflag & CRTSCTS)) {
tty2272drivers/char/cyclades.ctty->stopped = 0;
tty2273drivers/char/cyclades.ccy_start(tty);
tty2277drivers/char/cyclades.c(tty->termios->c_cflag & CLOCAL))
tty2286drivers/char/cyclades.ccy_close(struct tty_struct * tty, struct file * filp)
tty2288drivers/char/cyclades.cstruct cyclades_port * info = (struct cyclades_port *)tty->driver_data;
tty2296drivers/char/cyclades.c|| serial_paranoia_check(info, tty->device, "cy_close")){
tty2303drivers/char/cyclades.cif ((tty->count == 1) && (info->count != 1)) {
tty2332drivers/char/cyclades.cinfo->normal_termios = *tty->termios;
tty2334drivers/char/cyclades.cinfo->callout_termios = *tty->termios;
tty2336drivers/char/cyclades.ctty_wait_until_sent(tty, 3000); /* 30 seconds timeout */
tty2338drivers/char/cyclades.cif (tty->driver.flush_buffer)
tty2339drivers/char/cyclades.ctty->driver.flush_buffer(tty);
tty2340drivers/char/cyclades.cif (tty->ldisc.flush_buffer)
tty2341drivers/char/cyclades.ctty->ldisc.flush_buffer(tty);
tty2343drivers/char/cyclades.cinfo->tty = 0;
tty2344drivers/char/cyclades.cif (tty->ldisc.num != ldiscs[N_TTY].num) {
tty2345drivers/char/cyclades.cif (tty->ldisc.close)
tty2346drivers/char/cyclades.c(tty->ldisc.close)(tty);
tty2347drivers/char/cyclades.ctty->ldisc = ldiscs[N_TTY];
tty2348drivers/char/cyclades.ctty->termios->c_line = N_TTY;
tty2349drivers/char/cyclades.cif (tty->ldisc.open)
tty2350drivers/char/cyclades.c(tty->ldisc.open)(tty);
tty2375drivers/char/cyclades.ccy_hangup(struct tty_struct *tty)
tty2377drivers/char/cyclades.cstruct cyclades_port * info = (struct cyclades_port *)tty->driver_data;
tty2383drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_hangup"))
tty2393drivers/char/cyclades.cinfo->tty = 0;
tty2408drivers/char/cyclades.cblock_til_ready(struct tty_struct *tty, struct file * filp,
tty2435drivers/char/cyclades.cif (tty->driver.subtype == SERIAL_TYPE_CALLOUT) {
tty2519drivers/char/cyclades.c&& (C_CLOCAL(tty)
tty2559drivers/char/cyclades.ccy_open(struct tty_struct *tty, struct file * filp)
tty2565drivers/char/cyclades.cline = MINOR(tty->device) - tty->driver.minor_start;
tty2576drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_open")){
tty2586drivers/char/cyclades.ctty->driver_data = info;
tty2587drivers/char/cyclades.cinfo->tty = tty;
tty2597drivers/char/cyclades.cif (tty->driver.subtype == SERIAL_TYPE_NORMAL)
tty2598drivers/char/cyclades.c*tty->termios = info->normal_termios;
tty2600drivers/char/cyclades.c*tty->termios = info->callout_termios;
tty2610drivers/char/cyclades.cretval = block_til_ready(tty, filp, info);
tty2842drivers/char/cyclades.cinfo->tty = 0;
tty3087drivers/char/cyclades.c(long)info->tty, info->read_status_mask,
tty271drivers/char/istallion.cstruct tty_struct  *tty;
tty597drivers/char/istallion.cstatic int  stli_open(struct tty_struct *tty, struct file *filp);
tty598drivers/char/istallion.cstatic void  stli_close(struct tty_struct *tty, struct file *filp);
tty599drivers/char/istallion.cstatic int  stli_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count);
tty600drivers/char/istallion.cstatic void  stli_putchar(struct tty_struct *tty, unsigned char ch);
tty601drivers/char/istallion.cstatic void  stli_flushchars(struct tty_struct *tty);
tty602drivers/char/istallion.cstatic int  stli_writeroom(struct tty_struct *tty);
tty603drivers/char/istallion.cstatic int  stli_charsinbuffer(struct tty_struct *tty);
tty604drivers/char/istallion.cstatic int  stli_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg);
tty605drivers/char/istallion.cstatic void  stli_settermios(struct tty_struct *tty, struct termios *old);
tty606drivers/char/istallion.cstatic void  stli_throttle(struct tty_struct *tty);
tty607drivers/char/istallion.cstatic void  stli_unthrottle(struct tty_struct *tty);
tty608drivers/char/istallion.cstatic void  stli_stop(struct tty_struct *tty);
tty609drivers/char/istallion.cstatic void  stli_start(struct tty_struct *tty);
tty610drivers/char/istallion.cstatic void  stli_flushbuffer(struct tty_struct *tty);
tty611drivers/char/istallion.cstatic void  stli_hangup(struct tty_struct *tty);
tty794drivers/char/istallion.cif (portp->tty != (struct tty_struct *) NULL)
tty795drivers/char/istallion.ctty_hangup(portp->tty);
tty858drivers/char/istallion.cstatic int stli_open(struct tty_struct *tty, struct file *filp)
tty866drivers/char/istallion.cprintk("stli_open(tty=%x,filp=%x): device=%x\n", (int) tty, (int) filp, tty->device);
tty869drivers/char/istallion.cminordev = MINOR(tty->device);
tty907drivers/char/istallion.cportp->tty = tty;
tty908drivers/char/istallion.ctty->driver_data = portp;
tty921drivers/char/istallion.cclear_bit(TTY_IO_ERROR, &tty->flags);
tty947drivers/char/istallion.cif (tty->driver.subtype == STL_DRVTYPCALLOUT) {
tty971drivers/char/istallion.cif (tty->driver.subtype == STL_DRVTYPSERIAL)
tty972drivers/char/istallion.c*tty->termios = portp->normaltermios;
tty974drivers/char/istallion.c*tty->termios = portp->callouttermios;
tty985drivers/char/istallion.cstatic void stli_close(struct tty_struct *tty, struct file *filp)
tty992drivers/char/istallion.cprintk("stli_close(tty=%x,filp=%x)\n", (int) tty, (int) filp);
tty995drivers/char/istallion.cportp = tty->driver_data;
tty1013drivers/char/istallion.cportp->normaltermios = *tty->termios;
tty1015drivers/char/istallion.cportp->callouttermios = *tty->termios;
tty1023drivers/char/istallion.cif (tty == stli_txcooktty)
tty1024drivers/char/istallion.cstli_flushchars(tty);
tty1025drivers/char/istallion.ctty->closing = 1;
tty1028drivers/char/istallion.ctty_wait_until_sent(tty, portp->closing_wait);
tty1034drivers/char/istallion.cif (tty->termios->c_cflag & HUPCL) {
tty1040drivers/char/istallion.cset_bit(TTY_IO_ERROR, &tty->flags);
tty1041drivers/char/istallion.cif (tty->ldisc.flush_buffer)
tty1042drivers/char/istallion.c(tty->ldisc.flush_buffer)(tty);
tty1044drivers/char/istallion.cstli_flushbuffer(tty);
tty1046drivers/char/istallion.ctty->closing = 0;
tty1047drivers/char/istallion.ctty->driver_data = (void *) NULL;
tty1048drivers/char/istallion.cportp->tty = (struct tty_struct *) NULL;
tty1073drivers/char/istallion.cstruct tty_struct  *tty;
tty1091drivers/char/istallion.ctty = portp->tty;
tty1092drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1094drivers/char/istallion.cstli_mkasyport(portp, &aport, tty->termios);
tty1327drivers/char/istallion.cif (portp->tty == (struct tty_struct *) NULL)
tty1333drivers/char/istallion.cstli_mkasyport(portp, &aport, portp->tty->termios);
tty1396drivers/char/istallion.c((portp->tty->termios->c_cflag & CLOCAL) ||
tty1423drivers/char/istallion.cstatic int stli_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count)
tty1435drivers/char/istallion.cprintk("stli_write(tty=%x,from_user=%d,buf=%x,count=%d)\n", (int) tty, from_user, (int) buf, count);
tty1438drivers/char/istallion.cif ((tty == (struct tty_struct *) NULL) || (stli_tmpwritebuf == (char *) NULL))
tty1440drivers/char/istallion.cif (tty == stli_txcooktty)
tty1441drivers/char/istallion.cstli_flushchars(tty);
tty1442drivers/char/istallion.cportp = tty->driver_data;
tty1546drivers/char/istallion.cstatic void stli_putchar(struct tty_struct *tty, unsigned char ch)
tty1549drivers/char/istallion.cprintk("stli_putchar(tty=%x,ch=%x)\n", (int) tty, (int) ch);
tty1552drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1554drivers/char/istallion.cif (tty != stli_txcooktty) {
tty1557drivers/char/istallion.cstli_txcooktty = tty;
tty1573drivers/char/istallion.cstatic void stli_flushchars(struct tty_struct *tty)
tty1586drivers/char/istallion.cprintk("stli_flushchars(tty=%x)\n", (int) tty);
tty1595drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1599drivers/char/istallion.cif (tty != cooktty)
tty1600drivers/char/istallion.ctty = cooktty;
tty1604drivers/char/istallion.cportp = tty->driver_data;
tty1666drivers/char/istallion.cstatic int stli_writeroom(struct tty_struct *tty)
tty1675drivers/char/istallion.cprintk("stli_writeroom(tty=%x)\n", (int) tty);
tty1678drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1680drivers/char/istallion.cif (tty == stli_txcooktty) {
tty1687drivers/char/istallion.cportp = tty->driver_data;
tty1707drivers/char/istallion.cif (tty == stli_txcooktty) {
tty1724drivers/char/istallion.cstatic int stli_charsinbuffer(struct tty_struct *tty)
tty1733drivers/char/istallion.cprintk("stli_charsinbuffer(tty=%x)\n", (int) tty);
tty1736drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1738drivers/char/istallion.cif (tty == stli_txcooktty)
tty1739drivers/char/istallion.cstli_flushchars(tty);
tty1740drivers/char/istallion.cportp = tty->driver_data;
tty1831drivers/char/istallion.cstatic int stli_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg)
tty1839drivers/char/istallion.cprintk("stli_ioctl(tty=%x,file=%x,cmd=%x,arg=%x)\n", (int) tty, (int) file, cmd, (int) arg);
tty1842drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1844drivers/char/istallion.cportp = tty->driver_data;
tty1855drivers/char/istallion.cif ((rc = tty_check_change(tty)) == 0) {
tty1856drivers/char/istallion.ctty_wait_until_sent(tty, 0);
tty1864drivers/char/istallion.cif ((rc = tty_check_change(tty)) == 0) {
tty1865drivers/char/istallion.ctty_wait_until_sent(tty, 0);
tty1872drivers/char/istallion.cput_fs_long(((tty->termios->c_cflag & CLOCAL) ? 1 : 0), (unsigned long *) arg);
tty1877drivers/char/istallion.ctty->termios->c_cflag = (tty->termios->c_cflag & ~CLOCAL) | (arg ? CLOCAL : 0);
tty1939drivers/char/istallion.cstatic void stli_settermios(struct tty_struct *tty, struct termios *old)
tty1947drivers/char/istallion.cprintk("stli_settermios(tty=%x,old=%x)\n", (int) tty, (int) old);
tty1950drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1952drivers/char/istallion.cportp = tty->driver_data;
tty1959drivers/char/istallion.ctiosp = tty->termios;
tty1968drivers/char/istallion.ctty->hw_stopped = 0;
tty1985drivers/char/istallion.cstatic void stli_throttle(struct tty_struct *tty)
tty1990drivers/char/istallion.cprintk("stli_throttle(tty=%x)\n", (int) tty);
tty1993drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1995drivers/char/istallion.cportp = tty->driver_data;
tty2010drivers/char/istallion.cstatic void stli_unthrottle(struct tty_struct *tty)
tty2015drivers/char/istallion.cprintk("stli_unthrottle(tty=%x)\n", (int) tty);
tty2018drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty2020drivers/char/istallion.cportp = tty->driver_data;
tty2034drivers/char/istallion.cstatic void stli_stop(struct tty_struct *tty)
tty2041drivers/char/istallion.cprintk("stli_stop(tty=%x)\n", (int) tty);
tty2044drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty2046drivers/char/istallion.cportp = tty->driver_data;
tty2066drivers/char/istallion.cstatic void stli_start(struct tty_struct *tty)
tty2073drivers/char/istallion.cprintk("stli_start(tty=%x)\n", (int) tty);
tty2076drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty2078drivers/char/istallion.cportp = tty->driver_data;
tty2114drivers/char/istallion.cif (portp->tty == (struct tty_struct *) NULL)
tty2116drivers/char/istallion.ctty_hangup(portp->tty);
tty2128drivers/char/istallion.cstatic void stli_hangup(struct tty_struct *tty)
tty2135drivers/char/istallion.cprintk("stli_hangup(tty=%x)\n", (int) tty);
tty2138drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty2140drivers/char/istallion.cportp = tty->driver_data;
tty2153drivers/char/istallion.cif (tty->termios->c_cflag & HUPCL) {
tty2167drivers/char/istallion.cset_bit(TTY_IO_ERROR, &tty->flags);
tty2168drivers/char/istallion.ctty->driver_data = (void *) NULL;
tty2169drivers/char/istallion.cportp->tty = (struct tty_struct *) NULL;
tty2184drivers/char/istallion.cstatic void stli_flushbuffer(struct tty_struct *tty)
tty2191drivers/char/istallion.cprintk("stli_flushbuffer(tty=%x)\n", (int) tty);
tty2194drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty2196drivers/char/istallion.cportp = tty->driver_data;
tty2205drivers/char/istallion.cif (tty == stli_txcooktty) {
tty2222drivers/char/istallion.cwake_up_interruptible(&tty->write_wait);
tty2223drivers/char/istallion.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && tty->ldisc.write_wakeup)
tty2224drivers/char/istallion.c(tty->ldisc.write_wakeup)(tty);
tty2291drivers/char/istallion.cstruct tty_struct  *tty;
tty2301drivers/char/istallion.ctty = portp->tty;
tty2302drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty2319drivers/char/istallion.clen = MIN(len, (TTY_FLIPBUF_SIZE - tty->flip.count));
tty2324drivers/char/istallion.cmemcpy(tty->flip.char_buf_ptr, (char *) (shbuf + tail), stlen);
tty2325drivers/char/istallion.cmemset(tty->flip.flag_buf_ptr, 0, stlen);
tty2326drivers/char/istallion.ctty->flip.char_buf_ptr += stlen;
tty2327drivers/char/istallion.ctty->flip.flag_buf_ptr += stlen;
tty2328drivers/char/istallion.ctty->flip.count += stlen;
tty2343drivers/char/istallion.ctty_schedule_flip(tty);
tty2400drivers/char/istallion.cstruct tty_struct  *tty;
tty2475drivers/char/istallion.ctty = portp->tty;
tty2486drivers/char/istallion.cif (tty != (struct tty_struct *) NULL)
tty2495drivers/char/istallion.cif (tty != (struct tty_struct *) NULL) {
tty2496drivers/char/istallion.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && tty->ldisc.write_wakeup)
tty2497drivers/char/istallion.c(tty->ldisc.write_wakeup)(tty);
tty2498drivers/char/istallion.cwake_up_interruptible(&tty->write_wait);
tty2503drivers/char/istallion.cif (tty != (struct tty_struct *) NULL) {
tty2504drivers/char/istallion.cif (tty->flip.count < TTY_FLIPBUF_SIZE) {
tty2505drivers/char/istallion.ctty->flip.count++;
tty2506drivers/char/istallion.c*tty->flip.flag_buf_ptr++ = TTY_BREAK;
tty2507drivers/char/istallion.c*tty->flip.char_buf_ptr++ = 0;
tty2510drivers/char/istallion.cdo_SAK(tty);
tty2512drivers/char/istallion.ctty_schedule_flip(tty);
tty112drivers/char/keyboard.cstatic struct tty_struct * tty = NULL;
tty374drivers/char/keyboard.ctty = ttytab[fg_console];
tty523drivers/char/keyboard.c(vc_kbd_mode(kbd,VC_REPEAT) && tty &&
tty524drivers/char/keyboard.c(L_ECHO(tty) || (tty->driver.chars_in_buffer(tty) == 0)))) {
tty573drivers/char/keyboard.cif (tty) {
tty574drivers/char/keyboard.ctty_insert_flip_char(tty, ch, 0);
tty575drivers/char/keyboard.ctty_schedule_flip(tty);
tty582drivers/char/keyboard.cif (!tty)
tty586drivers/char/keyboard.ctty_insert_flip_char(tty, *cp, 0);
tty589drivers/char/keyboard.ctty_schedule_flip(tty);
tty630drivers/char/keyboard.cif (rep || !tty)
tty638drivers/char/keyboard.cif (tty->stopped)
tty639drivers/char/keyboard.cstart_tty(tty);
tty641drivers/char/keyboard.cstop_tty(tty);
tty698drivers/char/keyboard.cif (!tty)
tty700drivers/char/keyboard.ctty_insert_flip_char(tty, 0, TTY_BREAK);
tty701drivers/char/keyboard.ctty_schedule_flip(tty);
tty735drivers/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.cwhile (tty->column > col) {
tty261drivers/char/n_tty.cput_char('\b', tty);
tty262drivers/char/n_tty.ctty->column--;
tty265drivers/char/n_tty.cif (iscntrl(c) && L_ECHOCTL(tty)) {
tty266drivers/char/n_tty.cput_char('\b', tty);
tty267drivers/char/n_tty.cput_char(' ', tty);
tty268drivers/char/n_tty.cput_char('\b', tty);
tty269drivers/char/n_tty.ctty->column--;
tty271drivers/char/n_tty.cif (!iscntrl(c) || L_ECHOCTL(tty)) {
tty272drivers/char/n_tty.cput_char('\b', tty);
tty273drivers/char/n_tty.cput_char(' ', tty);
tty274drivers/char/n_tty.cput_char('\b', tty);
tty275drivers/char/n_tty.ctty->column--;
tty282drivers/char/n_tty.cif (tty->read_head == tty->canon_head)
tty283drivers/char/n_tty.cfinish_erasing(tty);
tty286drivers/char/n_tty.cstatic void isig(int sig, struct tty_struct *tty)
tty288drivers/char/n_tty.cif (tty->pgrp > 0)
tty289drivers/char/n_tty.ckill_pg(tty->pgrp, sig, 1);
tty290drivers/char/n_tty.cif (!L_NOFLSH(tty)) {
tty291drivers/char/n_tty.cn_tty_flush_buffer(tty);
tty292drivers/char/n_tty.cif (tty->driver.flush_buffer)
tty293drivers/char/n_tty.ctty->driver.flush_buffer(tty);
tty297drivers/char/n_tty.cstatic inline void n_tty_receive_break(struct tty_struct *tty)
tty299drivers/char/n_tty.cif (I_IGNBRK(tty))
tty301drivers/char/n_tty.cif (I_BRKINT(tty)) {
tty302drivers/char/n_tty.cisig(SIGINT, tty);
tty305drivers/char/n_tty.cif (I_PARMRK(tty)) {
tty306drivers/char/n_tty.cput_tty_queue('\377', tty);
tty307drivers/char/n_tty.cput_tty_queue('\0', tty);
tty309drivers/char/n_tty.cput_tty_queue('\0', tty);
tty310drivers/char/n_tty.cwake_up_interruptible(&tty->read_wait);
tty313drivers/char/n_tty.cstatic inline void n_tty_receive_overrun(struct tty_struct *tty)
tty317drivers/char/n_tty.ctty->num_overrun++;
tty318drivers/char/n_tty.cif (tty->overrun_time < (jiffies - HZ)) {
tty319drivers/char/n_tty.cprintk("%s: %d input overrun(s)\n", _tty_name(tty, buf),
tty320drivers/char/n_tty.ctty->num_overrun);
tty321drivers/char/n_tty.ctty->overrun_time = jiffies;
tty322drivers/char/n_tty.ctty->num_overrun = 0;
tty326drivers/char/n_tty.cstatic inline void n_tty_receive_parity_error(struct tty_struct *tty,
tty329drivers/char/n_tty.cif (I_IGNPAR(tty)) {
tty332drivers/char/n_tty.cif (I_PARMRK(tty)) {
tty333drivers/char/n_tty.cput_tty_queue('\377', tty);
tty334drivers/char/n_tty.cput_tty_queue('\0', tty);
tty335drivers/char/n_tty.cput_tty_queue(c, tty);
tty337drivers/char/n_tty.cput_tty_queue('\0', tty);
tty338drivers/char/n_tty.cwake_up_interruptible(&tty->read_wait);
tty341drivers/char/n_tty.cstatic inline void n_tty_receive_char(struct tty_struct *tty, unsigned char c)
tty343drivers/char/n_tty.cif (tty->raw) {
tty344drivers/char/n_tty.cput_tty_queue(c, tty);
tty348drivers/char/n_tty.cif (tty->stopped && I_IXON(tty) && I_IXANY(tty)) {
tty349drivers/char/n_tty.cstart_tty(tty);
tty353drivers/char/n_tty.cif (I_ISTRIP(tty))
tty355drivers/char/n_tty.cif (I_IUCLC(tty) && L_IEXTEN(tty))
tty358drivers/char/n_tty.cif (tty->closing) {
tty359drivers/char/n_tty.cif (I_IXON(tty)) {
tty360drivers/char/n_tty.cif (c == START_CHAR(tty))
tty361drivers/char/n_tty.cstart_tty(tty);
tty362drivers/char/n_tty.celse if (c == STOP_CHAR(tty))
tty363drivers/char/n_tty.cstop_tty(tty);
tty374drivers/char/n_tty.cif (!test_bit(c, &tty->process_char_map) || tty->lnext) {
tty375drivers/char/n_tty.cfinish_erasing(tty);
tty376drivers/char/n_tty.ctty->lnext = 0;
tty377drivers/char/n_tty.cif (L_ECHO(tty)) {
tty378drivers/char/n_tty.cif (tty->read_cnt >= N_TTY_BUF_SIZE-1) {
tty379drivers/char/n_tty.cput_char('\a', tty); /* beep if no space */
tty383drivers/char/n_tty.cif (tty->canon_head == tty->read_head)
tty384drivers/char/n_tty.ctty->canon_column = tty->column;
tty385drivers/char/n_tty.cecho_char(c, tty);
tty387drivers/char/n_tty.cif (I_PARMRK(tty) && c == (unsigned char) '\377')
tty388drivers/char/n_tty.cput_tty_queue(c, tty);
tty389drivers/char/n_tty.cput_tty_queue(c, tty);
tty394drivers/char/n_tty.cif (I_IGNCR(tty))
tty396drivers/char/n_tty.cif (I_ICRNL(tty))
tty398drivers/char/n_tty.c} else if (c == '\n' && I_INLCR(tty))
tty400drivers/char/n_tty.cif (I_IXON(tty)) {
tty401drivers/char/n_tty.cif (c == START_CHAR(tty)) {
tty402drivers/char/n_tty.cstart_tty(tty);
tty405drivers/char/n_tty.cif (c == STOP_CHAR(tty)) {
tty406drivers/char/n_tty.cstop_tty(tty);
tty410drivers/char/n_tty.cif (L_ISIG(tty)) {
tty411drivers/char/n_tty.cif (c == INTR_CHAR(tty)) {
tty412drivers/char/n_tty.cisig(SIGINT, tty);
tty415drivers/char/n_tty.cif (c == QUIT_CHAR(tty)) {
tty416drivers/char/n_tty.cisig(SIGQUIT, tty);
tty419drivers/char/n_tty.cif (c == SUSP_CHAR(tty)) {
tty420drivers/char/n_tty.cif (!is_orphaned_pgrp(tty->pgrp))
tty421drivers/char/n_tty.cisig(SIGTSTP, tty);
tty425drivers/char/n_tty.cif (L_ICANON(tty)) {
tty426drivers/char/n_tty.cif (c == ERASE_CHAR(tty) || c == KILL_CHAR(tty) ||
tty427drivers/char/n_tty.c(c == WERASE_CHAR(tty) && L_IEXTEN(tty))) {
tty428drivers/char/n_tty.ceraser(c, tty);
tty431drivers/char/n_tty.cif (c == LNEXT_CHAR(tty) && L_IEXTEN(tty)) {
tty432drivers/char/n_tty.ctty->lnext = 1;
tty433drivers/char/n_tty.cif (L_ECHO(tty)) {
tty434drivers/char/n_tty.cfinish_erasing(tty);
tty435drivers/char/n_tty.cif (L_ECHOCTL(tty)) {
tty436drivers/char/n_tty.cput_char('^', tty);
tty437drivers/char/n_tty.cput_char('\b', tty);
tty442drivers/char/n_tty.cif (c == REPRINT_CHAR(tty) && L_ECHO(tty) &&
tty443drivers/char/n_tty.cL_IEXTEN(tty)) {
tty444drivers/char/n_tty.cunsigned long tail = tty->canon_head;
tty446drivers/char/n_tty.cfinish_erasing(tty);
tty447drivers/char/n_tty.cecho_char(c, tty);
tty448drivers/char/n_tty.copost('\n', tty);
tty449drivers/char/n_tty.cwhile (tail != tty->read_head) {
tty450drivers/char/n_tty.cecho_char(tty->read_buf[tail], tty);
tty456drivers/char/n_tty.cif (L_ECHO(tty) || L_ECHONL(tty)) {
tty457drivers/char/n_tty.cif (tty->read_cnt >= N_TTY_BUF_SIZE-1) {
tty458drivers/char/n_tty.cput_char('\a', tty);
tty461drivers/char/n_tty.copost('\n', tty);
tty465drivers/char/n_tty.cif (c == EOF_CHAR(tty)) {
tty466drivers/char/n_tty.cif (tty->canon_head != tty->read_head)
tty467drivers/char/n_tty.cset_bit(TTY_PUSH, &tty->flags);
tty471drivers/char/n_tty.cif ((c == EOL_CHAR(tty)) ||
tty472drivers/char/n_tty.c(c == EOL2_CHAR(tty) && L_IEXTEN(tty))) {
tty476drivers/char/n_tty.cif (L_ECHO(tty)) {
tty477drivers/char/n_tty.cif (tty->read_cnt >= N_TTY_BUF_SIZE-1) {
tty478drivers/char/n_tty.cput_char('\a', tty);
tty482drivers/char/n_tty.cif (tty->canon_head == tty->read_head)
tty483drivers/char/n_tty.ctty->canon_column = tty->column;
tty484drivers/char/n_tty.cecho_char(c, tty);
tty490drivers/char/n_tty.cif (I_PARMRK(tty) && c == (unsigned char) '\377')
tty491drivers/char/n_tty.cput_tty_queue(c, tty);
tty494drivers/char/n_tty.cset_bit(tty->read_head, &tty->read_flags);
tty495drivers/char/n_tty.cput_tty_queue(c, tty);
tty496drivers/char/n_tty.ctty->canon_head = tty->read_head;
tty497drivers/char/n_tty.ctty->canon_data++;
tty498drivers/char/n_tty.cif (tty->fasync)
tty499drivers/char/n_tty.ckill_fasync(tty->fasync, SIGIO);
tty500drivers/char/n_tty.cif (tty->read_wait)
tty501drivers/char/n_tty.cwake_up_interruptible(&tty->read_wait);
tty506drivers/char/n_tty.cfinish_erasing(tty);
tty507drivers/char/n_tty.cif (L_ECHO(tty)) {
tty508drivers/char/n_tty.cif (tty->read_cnt >= N_TTY_BUF_SIZE-1) {
tty509drivers/char/n_tty.cput_char('\a', tty); /* beep if no space */
tty513drivers/char/n_tty.copost('\n', tty);
tty516drivers/char/n_tty.cif (tty->canon_head == tty->read_head)
tty517drivers/char/n_tty.ctty->canon_column = tty->column;
tty518drivers/char/n_tty.cecho_char(c, tty);
tty522drivers/char/n_tty.cif (I_PARMRK(tty) && c == (unsigned char) '\377')
tty523drivers/char/n_tty.cput_tty_queue(c, tty);
tty525drivers/char/n_tty.cput_tty_queue(c, tty);
tty528drivers/char/n_tty.cstatic void n_tty_receive_buf(struct tty_struct *tty, const unsigned char *cp,
tty535drivers/char/n_tty.cif (!tty->read_buf)
tty538drivers/char/n_tty.cif (tty->real_raw) {
tty539drivers/char/n_tty.ci = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt,
tty540drivers/char/n_tty.cN_TTY_BUF_SIZE - tty->read_head));
tty541drivers/char/n_tty.cmemcpy(tty->read_buf + tty->read_head, cp, i);
tty542drivers/char/n_tty.ctty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1);
tty543drivers/char/n_tty.ctty->read_cnt += i;
tty547drivers/char/n_tty.ci = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt,
tty548drivers/char/n_tty.cN_TTY_BUF_SIZE - tty->read_head));
tty549drivers/char/n_tty.cmemcpy(tty->read_buf + tty->read_head, cp, i);
tty550drivers/char/n_tty.ctty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1);
tty551drivers/char/n_tty.ctty->read_cnt += i;
tty558drivers/char/n_tty.cn_tty_receive_char(tty, *p);
tty561drivers/char/n_tty.cn_tty_receive_break(tty);
tty565drivers/char/n_tty.cn_tty_receive_parity_error(tty, *p);
tty568drivers/char/n_tty.cn_tty_receive_overrun(tty);
tty571drivers/char/n_tty.cprintk("%s: unknown flag %d\n", tty_name(tty),
tty576drivers/char/n_tty.cif (tty->driver.flush_chars)
tty577drivers/char/n_tty.ctty->driver.flush_chars(tty);
tty580drivers/char/n_tty.cif (!tty->icanon && (tty->read_cnt >= tty->minimum_to_wake)) {
tty581drivers/char/n_tty.cif (tty->fasync)
tty582drivers/char/n_tty.ckill_fasync(tty->fasync, SIGIO);
tty583drivers/char/n_tty.cif (tty->read_wait)
tty584drivers/char/n_tty.cwake_up_interruptible(&tty->read_wait);
tty587drivers/char/n_tty.cif ((tty->read_cnt >= TTY_THRESHOLD_THROTTLE) &&
tty588drivers/char/n_tty.ctty->driver.throttle &&
tty589drivers/char/n_tty.c!set_bit(TTY_THROTTLED, &tty->flags))
tty590drivers/char/n_tty.ctty->driver.throttle(tty);
tty593drivers/char/n_tty.cstatic int n_tty_receive_room(struct tty_struct *tty)
tty595drivers/char/n_tty.cint  left = N_TTY_BUF_SIZE - tty->read_cnt - 1;
tty603drivers/char/n_tty.cif (tty->icanon && !tty->canon_data)
tty617drivers/char/n_tty.cstatic void n_tty_set_termios(struct tty_struct *tty, struct termios * old)
tty619drivers/char/n_tty.cif (!tty)
tty622drivers/char/n_tty.ctty->icanon = (L_ICANON(tty) != 0);
tty623drivers/char/n_tty.cif (I_ISTRIP(tty) || I_IUCLC(tty) || I_IGNCR(tty) ||
tty624drivers/char/n_tty.cI_ICRNL(tty) || I_INLCR(tty) || L_ICANON(tty) ||
tty625drivers/char/n_tty.cI_IXON(tty) || L_ISIG(tty) || L_ECHO(tty) ||
tty626drivers/char/n_tty.cI_PARMRK(tty)) {
tty628drivers/char/n_tty.cmemset(tty->process_char_map, 0, 256/8);
tty630drivers/char/n_tty.cif (I_IGNCR(tty) || I_ICRNL(tty))
tty631drivers/char/n_tty.cset_bit('\r', &tty->process_char_map);
tty632drivers/char/n_tty.cif (I_INLCR(tty))
tty633drivers/char/n_tty.cset_bit('\n', &tty->process_char_map);
tty635drivers/char/n_tty.cif (L_ICANON(tty)) {
tty636drivers/char/n_tty.cset_bit(ERASE_CHAR(tty), &tty->process_char_map);
tty637drivers/char/n_tty.cset_bit(KILL_CHAR(tty), &tty->process_char_map);
tty638drivers/char/n_tty.cset_bit(EOF_CHAR(tty), &tty->process_char_map);
tty639drivers/char/n_tty.cset_bit('\n', &tty->process_char_map);
tty640drivers/char/n_tty.cset_bit(EOL_CHAR(tty), &tty->process_char_map);
tty641drivers/char/n_tty.cif (L_IEXTEN(tty)) {
tty642drivers/char/n_tty.cset_bit(WERASE_CHAR(tty),
tty643drivers/char/n_tty.c&tty->process_char_map);
tty644drivers/char/n_tty.cset_bit(LNEXT_CHAR(tty),
tty645drivers/char/n_tty.c&tty->process_char_map);
tty646drivers/char/n_tty.cset_bit(EOL2_CHAR(tty),
tty647drivers/char/n_tty.c&tty->process_char_map);
tty648drivers/char/n_tty.cif (L_ECHO(tty))
tty649drivers/char/n_tty.cset_bit(REPRINT_CHAR(tty),
tty650drivers/char/n_tty.c&tty->process_char_map);
tty653drivers/char/n_tty.cif (I_IXON(tty)) {
tty654drivers/char/n_tty.cset_bit(START_CHAR(tty), &tty->process_char_map);
tty655drivers/char/n_tty.cset_bit(STOP_CHAR(tty), &tty->process_char_map);
tty657drivers/char/n_tty.cif (L_ISIG(tty)) {
tty658drivers/char/n_tty.cset_bit(INTR_CHAR(tty), &tty->process_char_map);
tty659drivers/char/n_tty.cset_bit(QUIT_CHAR(tty), &tty->process_char_map);
tty660drivers/char/n_tty.cset_bit(SUSP_CHAR(tty), &tty->process_char_map);
tty662drivers/char/n_tty.cclear_bit(__DISABLED_CHAR, &tty->process_char_map);
tty664drivers/char/n_tty.ctty->raw = 0;
tty665drivers/char/n_tty.ctty->real_raw = 0;
tty667drivers/char/n_tty.ctty->raw = 1;
tty668drivers/char/n_tty.cif ((I_IGNBRK(tty) || (!I_BRKINT(tty) && !I_PARMRK(tty))) &&
tty669drivers/char/n_tty.c(I_IGNPAR(tty) || !I_INPCK(tty)) &&
tty670drivers/char/n_tty.c(tty->driver.flags & TTY_DRIVER_REAL_RAW))
tty671drivers/char/n_tty.ctty->real_raw = 1;
tty673drivers/char/n_tty.ctty->real_raw = 0;
tty677drivers/char/n_tty.cstatic void n_tty_close(struct tty_struct *tty)
tty679drivers/char/n_tty.cn_tty_flush_buffer(tty);
tty680drivers/char/n_tty.cif (tty->read_buf) {
tty681drivers/char/n_tty.cfree_page((unsigned long) tty->read_buf);
tty682drivers/char/n_tty.ctty->read_buf = 0;
tty686drivers/char/n_tty.cstatic int n_tty_open(struct tty_struct *tty)
tty688drivers/char/n_tty.cif (!tty)
tty691drivers/char/n_tty.cif (!tty->read_buf) {
tty692drivers/char/n_tty.ctty->read_buf = (unsigned char *)
tty694drivers/char/n_tty.cif (!tty->read_buf)
tty697drivers/char/n_tty.cmemset(tty->read_buf, 0, N_TTY_BUF_SIZE);
tty698drivers/char/n_tty.ctty->read_head = tty->read_tail = tty->read_cnt = 0;
tty699drivers/char/n_tty.cmemset(tty->read_flags, 0, sizeof(tty->read_flags));
tty700drivers/char/n_tty.cn_tty_set_termios(tty, 0);
tty701drivers/char/n_tty.ctty->minimum_to_wake = 1;
tty702drivers/char/n_tty.ctty->closing = 0;
tty706drivers/char/n_tty.cstatic inline int input_available_p(struct tty_struct *tty, int amt)
tty708drivers/char/n_tty.cif (L_ICANON(tty)) {
tty709drivers/char/n_tty.cif (tty->canon_data)
tty711drivers/char/n_tty.c} else if (tty->read_cnt >= (amt ? amt : 1))
tty725drivers/char/n_tty.cstatic inline void copy_from_read_buf(struct tty_struct *tty,
tty732drivers/char/n_tty.cn = MIN(*nr, MIN(tty->read_cnt, N_TTY_BUF_SIZE - tty->read_tail));
tty735drivers/char/n_tty.cmemcpy_tofs(*b, &tty->read_buf[tty->read_tail], n);
tty736drivers/char/n_tty.ctty->read_tail = (tty->read_tail + n) & (N_TTY_BUF_SIZE-1);
tty737drivers/char/n_tty.ctty->read_cnt -= n;
tty742drivers/char/n_tty.cstatic int read_chan(struct tty_struct *tty, struct file *file,
tty754drivers/char/n_tty.cif (!tty->read_buf) {
tty765drivers/char/n_tty.ccurrent->tty == tty) {
tty766drivers/char/n_tty.cif (tty->pgrp <= 0)
tty768drivers/char/n_tty.celse if (current->pgrp != tty->pgrp) {
tty777drivers/char/n_tty.cif (L_ICANON(tty)) {
tty781drivers/char/n_tty.ctime = (HZ / 10) * TIME_CHAR(tty);
tty782drivers/char/n_tty.cminimum = MIN_CHAR(tty);
tty786drivers/char/n_tty.ctty->minimum_to_wake = 1;
tty787drivers/char/n_tty.celse if (!tty->read_wait ||
tty788drivers/char/n_tty.c(tty->minimum_to_wake > minimum))
tty789drivers/char/n_tty.ctty->minimum_to_wake = minimum;
tty796drivers/char/n_tty.ctty->minimum_to_wake = minimum = 1;
tty800drivers/char/n_tty.cadd_wait_queue(&tty->read_wait, &wait);
tty803drivers/char/n_tty.cif (tty->packet && tty->link->ctrl_status) {
tty806drivers/char/n_tty.cput_user(tty->link->ctrl_status, b++);
tty807drivers/char/n_tty.ctty->link->ctrl_status = 0;
tty815drivers/char/n_tty.cif (((minimum - (b - buf)) < tty->minimum_to_wake) &&
tty817drivers/char/n_tty.ctty->minimum_to_wake = (minimum - (b - buf));
tty819drivers/char/n_tty.cif (!input_available_p(tty, 0)) {
tty820drivers/char/n_tty.cif (tty->flags & (1 << TTY_SLAVE_CLOSED)) {
tty842drivers/char/n_tty.cif (tty->packet && b == buf) {
tty847drivers/char/n_tty.cif (L_ICANON(tty)) {
tty852drivers/char/n_tty.cif (!tty->read_cnt) {
tty856drivers/char/n_tty.ceol = clear_bit(tty->read_tail,
tty857drivers/char/n_tty.c&tty->read_flags);
tty858drivers/char/n_tty.cc = tty->read_buf[tty->read_tail];
tty859drivers/char/n_tty.ctty->read_tail = ((tty->read_tail+1) &
tty861drivers/char/n_tty.ctty->read_cnt--;
tty869drivers/char/n_tty.cif (--tty->canon_data < 0) {
tty870drivers/char/n_tty.ctty->canon_data = 0;
tty880drivers/char/n_tty.ccopy_from_read_buf(tty, &b, &nr);
tty881drivers/char/n_tty.ccopy_from_read_buf(tty, &b, &nr);
tty887drivers/char/n_tty.cif (tty->driver.unthrottle &&
tty888drivers/char/n_tty.c(tty->read_cnt <= TTY_THRESHOLD_UNTHROTTLE)
tty889drivers/char/n_tty.c&& clear_bit(TTY_THROTTLED, &tty->flags))
tty890drivers/char/n_tty.ctty->driver.unthrottle(tty);
tty897drivers/char/n_tty.cremove_wait_queue(&tty->read_wait, &wait);
tty899drivers/char/n_tty.cif (!tty->read_wait)
tty900drivers/char/n_tty.ctty->minimum_to_wake = minimum;
tty906drivers/char/n_tty.cclear_bit(TTY_PUSH, &tty->flags);
tty907drivers/char/n_tty.cif (!size && clear_bit(TTY_PUSH, &tty->flags))
tty910drivers/char/n_tty.cclear_bit(TTY_PUSH, &tty->flags);
tty914drivers/char/n_tty.cstatic int write_chan(struct tty_struct * tty, struct file * file,
tty923drivers/char/n_tty.cif (L_TOSTOP(tty) && file->f_inode->i_rdev != CONSOLE_DEV) {
tty924drivers/char/n_tty.cretval = tty_check_change(tty);
tty929drivers/char/n_tty.cadd_wait_queue(&tty->write_wait, &wait);
tty936drivers/char/n_tty.cif (tty_hung_up_p(file) || (tty->link && !tty->link->count)) {
tty940drivers/char/n_tty.cif (O_OPOST(tty)) {
tty943drivers/char/n_tty.cif (opost(c, tty) < 0)
tty947drivers/char/n_tty.cif (tty->driver.flush_chars)
tty948drivers/char/n_tty.ctty->driver.flush_chars(tty);
tty950drivers/char/n_tty.cc = tty->driver.write(tty, 1, b, nr);
tty963drivers/char/n_tty.cremove_wait_queue(&tty->write_wait, &wait);
tty967drivers/char/n_tty.cstatic int normal_select(struct tty_struct * tty, struct inode * inode,
tty972drivers/char/n_tty.cif (input_available_p(tty, TIME_CHAR(tty) ? 0 :
tty973drivers/char/n_tty.cMIN_CHAR(tty)))
tty977drivers/char/n_tty.cif (tty->packet && tty->link->ctrl_status)
tty979drivers/char/n_tty.cif (tty->flags & (1 << TTY_SLAVE_CLOSED))
tty983drivers/char/n_tty.cif (!tty->read_wait) {
tty984drivers/char/n_tty.cif (MIN_CHAR(tty) && !TIME_CHAR(tty))
tty985drivers/char/n_tty.ctty->minimum_to_wake = MIN_CHAR(tty);
tty987drivers/char/n_tty.ctty->minimum_to_wake = 1;
tty989drivers/char/n_tty.cselect_wait(&tty->read_wait, wait);
tty992drivers/char/n_tty.cif (tty->driver.chars_in_buffer(tty) < WAKEUP_CHARS)
tty994drivers/char/n_tty.cselect_wait(&tty->write_wait, wait);
tty63drivers/char/pty.cstatic void pty_close(struct tty_struct * tty, struct file * filp)
tty65drivers/char/pty.cif (!tty)
tty67drivers/char/pty.cif (tty->driver.subtype == PTY_TYPE_MASTER) {
tty68drivers/char/pty.cif (tty->count > 1)
tty69drivers/char/pty.cprintk("master pty_close: count = %d!!\n", tty->count);
tty71drivers/char/pty.cif (tty->count > 2)
tty74drivers/char/pty.cwake_up_interruptible(&tty->read_wait);
tty75drivers/char/pty.cwake_up_interruptible(&tty->write_wait);
tty76drivers/char/pty.cif (!tty->link)
tty78drivers/char/pty.cwake_up_interruptible(&tty->link->read_wait);
tty79drivers/char/pty.cwake_up_interruptible(&tty->link->write_wait);
tty80drivers/char/pty.cif (tty->driver.subtype == PTY_TYPE_MASTER)
tty81drivers/char/pty.ctty_hangup(tty->link);
tty83drivers/char/pty.cstart_tty(tty);
tty84drivers/char/pty.cset_bit(TTY_SLAVE_CLOSED, &tty->link->flags);
tty98drivers/char/pty.cstatic void pty_unthrottle(struct tty_struct * tty)
tty100drivers/char/pty.cstruct tty_struct *o_tty = tty->link;
tty109drivers/char/pty.cset_bit(TTY_THROTTLED, &tty->flags);
tty112drivers/char/pty.cstatic int pty_write(struct tty_struct * tty, int from_user,
tty115drivers/char/pty.cstruct tty_struct *to = tty->link;
tty119drivers/char/pty.cif (!to || tty->stopped)
tty125drivers/char/pty.c((tty->driver.subtype-1) * PTY_BUF_SIZE);
tty146drivers/char/pty.cstatic int pty_write_room(struct tty_struct *tty)
tty148drivers/char/pty.cstruct tty_struct *to = tty->link;
tty150drivers/char/pty.cif (!to || tty->stopped)
tty156drivers/char/pty.cstatic int pty_chars_in_buffer(struct tty_struct *tty)
tty158drivers/char/pty.cstruct tty_struct *to = tty->link;
tty166drivers/char/pty.cstatic void pty_flush_buffer(struct tty_struct *tty)
tty168drivers/char/pty.cstruct tty_struct *to = tty->link;
tty177drivers/char/pty.ctty->ctrl_status |= TIOCPKT_FLUSHWRITE;
tty182drivers/char/pty.cint pty_open(struct tty_struct *tty, struct file * filp)
tty187drivers/char/pty.cif (!tty || !tty->link)
tty189drivers/char/pty.cline = MINOR(tty->device) - tty->driver.minor_start;
tty193drivers/char/pty.ctty->driver_data = pty;
tty201drivers/char/pty.cif (tty->driver.subtype == PTY_TYPE_SLAVE)
tty202drivers/char/pty.cclear_bit(TTY_SLAVE_CLOSED, &tty->link->flags);
tty204drivers/char/pty.cset_bit(TTY_THROTTLED, &tty->flags);
tty207drivers/char/pty.cwhile (!tty->link->count && !(current->signal & ~current->blocked))
tty209drivers/char/pty.cif (!tty->link->count)
tty163drivers/char/scc.cint scc_open(struct tty_struct *tty, struct file *filp);
tty164drivers/char/scc.cstatic void scc_close(struct tty_struct *tty, struct file *filp);
tty165drivers/char/scc.cint scc_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count);
tty166drivers/char/scc.cstatic void scc_put_char(struct tty_struct *tty, unsigned char ch);
tty167drivers/char/scc.cstatic void scc_flush_chars(struct tty_struct *tty);
tty168drivers/char/scc.cstatic int scc_write_room(struct tty_struct *tty);
tty169drivers/char/scc.cstatic int scc_chars_in_buffer(struct tty_struct *tty);
tty170drivers/char/scc.cstatic void scc_flush_buffer(struct tty_struct *tty);
tty171drivers/char/scc.cstatic int scc_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg);
tty172drivers/char/scc.cstatic void scc_set_termios(struct tty_struct *tty, struct termios *old_termios);
tty173drivers/char/scc.cstatic void scc_throttle(struct tty_struct *tty);
tty174drivers/char/scc.cstatic void scc_unthrottle(struct tty_struct *tty);
tty175drivers/char/scc.cstatic void scc_start(struct tty_struct *tty);
tty176drivers/char/scc.cstatic void scc_stop(struct tty_struct *tty);
tty570drivers/char/scc.cif (!scc->tty) break;
tty611drivers/char/scc.cif (!scc->tty) break;
tty1109drivers/char/scc.cif (scc2 == scc || !(scc2->tty && grp2)) 
tty1277drivers/char/scc.cif (scc->tty && scc->init)
tty1548drivers/char/scc.cstruct tty_struct * tty = scc->tty;
tty1560drivers/char/scc.cwhile(tty->flip.count < TTY_FLIPBUF_SIZE-3)
tty1568drivers/char/scc.ctty_insert_flip_char(tty, FEND, 0);
tty1571drivers/char/scc.ctty_insert_flip_char(tty, 0, 0);
tty1579drivers/char/scc.ctty_insert_flip_char(tty, FESC, 0);
tty1580drivers/char/scc.ctty_insert_flip_char(tty, TFEND, 0);
tty1583drivers/char/scc.ctty_insert_flip_char(tty, FESC, 0);
tty1584drivers/char/scc.ctty_insert_flip_char(tty, TFESC, 0);
tty1587drivers/char/scc.ctty_insert_flip_char(tty, ch, 0);
tty1612drivers/char/scc.ctty_insert_flip_char(tty, FEND, 0); /* send FEND for old frame */
tty1617drivers/char/scc.cqueue_task(&tty->flip.tqueue, &tq_timer);
tty1628drivers/char/scc.cqueue_task(&tty->flip.tqueue, &tq_timer); /* kick it... */
tty1713drivers/char/scc.cint scc_open(struct tty_struct *tty, struct file * filp)
tty1718drivers/char/scc.cchan = MINOR(tty->device) - tty->driver.minor_start;
tty1724drivers/char/scc.ctty->driver_data = scc;
tty1725drivers/char/scc.ctty->termios->c_cflag &= ~CBAUD; 
tty1732drivers/char/scc.cprintk("ERROR: scc_open(): bad magic number for device (%d, %d)", MAJOR(tty->device), MINOR(tty->device));
tty1736drivers/char/scc.cif(scc->tty != NULL)
tty1744drivers/char/scc.cscc->tty = tty;
tty1763drivers/char/scc.cscc_close(struct tty_struct *tty, struct file * filp)
tty1765drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty1777drivers/char/scc.ctty->driver_data = NULLBUF;
tty1785drivers/char/scc.cscc->tty = NULL;
tty1788drivers/char/scc.ctty->stopped = 0;    
tty1801drivers/char/scc.cif (scc->tty == NULL)
tty1804drivers/char/scc.cscc->modem.speed = baud_table[scc->tty->termios->c_cflag & CBAUD];
tty1830drivers/char/scc.cscc_ioctl(struct tty_struct *tty, struct file * file, unsigned int cmd, unsigned long arg)
tty1832drivers/char/scc.cstruct scc_channel * scc = tty->driver_data;
tty1842drivers/char/scc.cMAJOR(tty->device), MINOR(tty->device));
tty1977drivers/char/scc.cmemcpy_tofs((void *) arg, scc->tty->termios, sizeof(struct termios));
tty1988drivers/char/scc.cmemcpy_fromfs(scc->tty->termios, (void *) arg, sizeof(struct termios));
tty2099drivers/char/scc.cscc_set_termios(struct tty_struct * tty, struct termios * old_termios)
tty2101drivers/char/scc.cif (tty->termios->c_cflag == old_termios->c_cflag) 
tty2103drivers/char/scc.cscc_change_speed(tty->driver_data);
tty2141drivers/char/scc.cint scc_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count)
tty2143drivers/char/scc.cstruct scc_channel * scc = tty->driver_data;
tty2147drivers/char/scc.cif (!tty) return count;
tty2149drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_write"))
tty2187drivers/char/scc.cstatic void scc_put_char(struct tty_struct * tty, unsigned char ch)
tty2189drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2192drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_put_char"))
tty2196drivers/char/scc.cscc_write(tty, 0, &ch2, 1);  /* that's all */
tty2199drivers/char/scc.cstatic void scc_flush_chars(struct tty_struct * tty)
tty2201drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2203drivers/char/scc.cscc_paranoia_check(scc, tty->device, "scc_flush_chars"); /* just to annoy the user... */
tty2210drivers/char/scc.cstatic int scc_write_room(struct tty_struct *tty)
tty2212drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2214drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_write_room"))
tty2226drivers/char/scc.cstatic int scc_chars_in_buffer(struct tty_struct *tty)
tty2228drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2236drivers/char/scc.cstatic void scc_flush_buffer(struct tty_struct *tty)
tty2238drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2240drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_flush_buffer"))
tty2245drivers/char/scc.cwake_up_interruptible(&tty->write_wait);
tty2246drivers/char/scc.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
tty2247drivers/char/scc.ctty->ldisc.write_wakeup)
tty2248drivers/char/scc.c(tty->ldisc.write_wakeup)(tty);
tty2251drivers/char/scc.cstatic void scc_throttle(struct tty_struct *tty)
tty2253drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2255drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_throttle"))
tty2262drivers/char/scc.cstatic void scc_unthrottle(struct tty_struct *tty)
tty2264drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2266drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_unthrottle"))
tty2272drivers/char/scc.cstatic void scc_start(struct tty_struct *tty)
tty2274drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2276drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_start"))
tty2283drivers/char/scc.cstatic void scc_stop(struct tty_struct *tty)
tty2285drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2287drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_stop"))
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);
tty295drivers/char/serial.cstatic void rs_stop(struct tty_struct *tty)
tty297drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty300drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_stop"))
tty311drivers/char/serial.cstatic void rs_start(struct tty_struct *tty)
tty313drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty316drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_start"))
tty374drivers/char/serial.cstruct tty_struct *tty = info->tty;
tty385drivers/char/serial.cif (tty->flip.count >= TTY_FLIPBUF_SIZE)
tty387drivers/char/serial.ctty->flip.count++;
tty390drivers/char/serial.c*tty->flip.flag_buf_ptr++ = TTY_BREAK;
tty392drivers/char/serial.cdo_SAK(tty);
tty394drivers/char/serial.c*tty->flip.flag_buf_ptr++ = TTY_PARITY;
tty396drivers/char/serial.c*tty->flip.flag_buf_ptr++ = TTY_FRAME;
tty398drivers/char/serial.c*tty->flip.flag_buf_ptr++ = TTY_OVERRUN;
tty400drivers/char/serial.c*tty->flip.flag_buf_ptr++ = 0;
tty401drivers/char/serial.c*tty->flip.char_buf_ptr++ = ch;
tty405drivers/char/serial.cqueue_task_irq_off(&tty->flip.tqueue, &tq_timer);
tty422drivers/char/serial.cif ((info->xmit_cnt <= 0) || info->tty->stopped ||
tty423drivers/char/serial.cinfo->tty->hw_stopped) {
tty475drivers/char/serial.cif (info->tty->hw_stopped) {
tty480drivers/char/serial.cinfo->tty->hw_stopped = 0;
tty491drivers/char/serial.cinfo->tty->hw_stopped = 1;
tty524drivers/char/serial.cif (!info->tty ||
tty581drivers/char/serial.cif (!info || !info->tty)
tty642drivers/char/serial.cif (!info->tty ||
tty719drivers/char/serial.cstruct tty_struct  *tty;
tty721drivers/char/serial.ctty = info->tty;
tty722drivers/char/serial.cif (!tty)
tty726drivers/char/serial.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
tty727drivers/char/serial.ctty->ldisc.write_wakeup)
tty728drivers/char/serial.c(tty->ldisc.write_wakeup)(tty);
tty729drivers/char/serial.cwake_up_interruptible(&tty->write_wait);
tty745drivers/char/serial.cstruct tty_struct  *tty;
tty747drivers/char/serial.ctty = info->tty;
tty748drivers/char/serial.cif (!tty)
tty751drivers/char/serial.ctty_hangup(tty);
tty880drivers/char/serial.cif (info->tty)
tty881drivers/char/serial.cset_bit(TTY_IO_ERROR, &info->tty->flags);
tty920drivers/char/serial.cif (info->tty)
tty921drivers/char/serial.cset_bit(TTY_IO_ERROR, &info->tty->flags);
tty945drivers/char/serial.cif (info->tty)
tty947drivers/char/serial.c&info->tty->flags);
tty1002drivers/char/serial.cif (info->tty)
tty1003drivers/char/serial.cclear_bit(TTY_IO_ERROR, &info->tty->flags);
tty1090drivers/char/serial.cif (!info->tty || (info->tty->termios->c_cflag & HUPCL)) {
tty1101drivers/char/serial.cif (info->tty)
tty1102drivers/char/serial.cset_bit(TTY_IO_ERROR, &info->tty->flags);
tty1119drivers/char/serial.cif (!info->tty || !info->tty->termios)
tty1121drivers/char/serial.ccflag = info->tty->termios->c_cflag;
tty1128drivers/char/serial.cinfo->tty->termios->c_cflag &= ~CBAUDEX;
tty1221drivers/char/serial.cif (I_INPCK(info->tty))
tty1223drivers/char/serial.cif (I_BRKINT(info->tty) || I_PARMRK(info->tty))
tty1227drivers/char/serial.cif (I_IGNPAR(info->tty)) {
tty1231drivers/char/serial.cif (I_IGNBRK(info->tty)) {
tty1238drivers/char/serial.cif (I_IGNPAR(info->tty)) {
tty1253drivers/char/serial.cstatic void rs_put_char(struct tty_struct *tty, unsigned char ch)
tty1255drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1258drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_put_char"))
tty1261drivers/char/serial.cif (!tty || !info->xmit_buf)
tty1276drivers/char/serial.cstatic void rs_flush_chars(struct tty_struct *tty)
tty1278drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1281drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_flush_chars"))
tty1284drivers/char/serial.cif (info->xmit_cnt <= 0 || tty->stopped || tty->hw_stopped ||
tty1294drivers/char/serial.cstatic int rs_write(struct tty_struct * tty, int from_user,
tty1298drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1301drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_write"))
tty1304drivers/char/serial.cif (!tty || !info->xmit_buf || !tmp_buf)
tty1331drivers/char/serial.cif (info->xmit_cnt && !tty->stopped && !tty->hw_stopped &&
tty1340drivers/char/serial.cstatic int rs_write_room(struct tty_struct *tty)
tty1342drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1345drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_write_room"))
tty1353drivers/char/serial.cstatic int rs_chars_in_buffer(struct tty_struct *tty)
tty1355drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1357drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_chars_in_buffer"))
tty1362drivers/char/serial.cstatic void rs_flush_buffer(struct tty_struct *tty)
tty1364drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1366drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_flush_buffer"))
tty1371drivers/char/serial.cwake_up_interruptible(&tty->write_wait);
tty1372drivers/char/serial.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
tty1373drivers/char/serial.ctty->ldisc.write_wakeup)
tty1374drivers/char/serial.c(tty->ldisc.write_wakeup)(tty);
tty1385drivers/char/serial.cstatic void rs_throttle(struct tty_struct * tty)
tty1387drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1391drivers/char/serial.cprintk("throttle %s: %d....\n", _tty_name(tty, buf),
tty1392drivers/char/serial.ctty->ldisc.chars_in_buffer(tty));
tty1395drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_throttle"))
tty1398drivers/char/serial.cif (I_IXOFF(tty))
tty1399drivers/char/serial.cinfo->x_char = STOP_CHAR(tty);
tty1408drivers/char/serial.cstatic void rs_unthrottle(struct tty_struct * tty)
tty1410drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1414drivers/char/serial.cprintk("unthrottle %s: %d....\n", _tty_name(tty, buf),
tty1415drivers/char/serial.ctty->ldisc.chars_in_buffer(tty));
tty1418drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_unthrottle"))
tty1421drivers/char/serial.cif (I_IXOFF(tty)) {
tty1425drivers/char/serial.cinfo->x_char = START_CHAR(tty);
tty1840drivers/char/serial.cstatic int rs_ioctl(struct tty_struct *tty, struct file * file,
tty1844drivers/char/serial.cstruct async_struct * info = (struct async_struct *)tty->driver_data;
tty1847drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_ioctl"))
tty1853drivers/char/serial.cif (tty->flags & (1 << TTY_IO_ERROR))
tty1859drivers/char/serial.cretval = tty_check_change(tty);
tty1862drivers/char/serial.ctty_wait_until_sent(tty, 0);
tty1867drivers/char/serial.cretval = tty_check_change(tty);
tty1870drivers/char/serial.ctty_wait_until_sent(tty, 0);
tty1877drivers/char/serial.cput_fs_long(C_CLOCAL(tty) ? 1 : 0,
tty1882drivers/char/serial.ctty->termios->c_cflag =
tty1883drivers/char/serial.c((tty->termios->c_cflag & ~CLOCAL) |
tty1958drivers/char/serial.cstatic void rs_set_termios(struct tty_struct *tty, struct termios *old_termios)
tty1960drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1962drivers/char/serial.cif (tty->termios->c_cflag == old_termios->c_cflag)
tty1968drivers/char/serial.c!(tty->termios->c_cflag & CRTSCTS)) {
tty1969drivers/char/serial.ctty->hw_stopped = 0;
tty1970drivers/char/serial.crs_start(tty);
tty1981drivers/char/serial.c(tty->termios->c_cflag & CLOCAL))
tty1996drivers/char/serial.cstatic void rs_close(struct tty_struct *tty, struct file * filp)
tty1998drivers/char/serial.cstruct async_struct * info = (struct async_struct *)tty->driver_data;
tty2002drivers/char/serial.cif (!info || serial_paranoia_check(info, tty->device, "rs_close"))
tty2015drivers/char/serial.cif ((tty->count == 1) && (info->count != 1)) {
tty2042drivers/char/serial.cinfo->normal_termios = *tty->termios;
tty2044drivers/char/serial.cinfo->callout_termios = *tty->termios;
tty2049drivers/char/serial.ctty->closing = 1;
tty2051drivers/char/serial.ctty_wait_until_sent(tty, info->closing_wait);
tty2077drivers/char/serial.cif (tty->driver.flush_buffer)
tty2078drivers/char/serial.ctty->driver.flush_buffer(tty);
tty2079drivers/char/serial.cif (tty->ldisc.flush_buffer)
tty2080drivers/char/serial.ctty->ldisc.flush_buffer(tty);
tty2081drivers/char/serial.ctty->closing = 0;
tty2083drivers/char/serial.cinfo->tty = 0;
tty2084drivers/char/serial.cif (tty->ldisc.num != ldiscs[N_TTY].num) {
tty2085drivers/char/serial.cif (tty->ldisc.close)
tty2086drivers/char/serial.c(tty->ldisc.close)(tty);
tty2087drivers/char/serial.ctty->ldisc = ldiscs[N_TTY];
tty2088drivers/char/serial.ctty->termios->c_line = N_TTY;
tty2089drivers/char/serial.cif (tty->ldisc.open)
tty2090drivers/char/serial.c(tty->ldisc.open)(tty);
tty2109drivers/char/serial.cvoid rs_hangup(struct tty_struct *tty)
tty2111drivers/char/serial.cstruct async_struct * info = (struct async_struct *)tty->driver_data;
tty2113drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_hangup"))
tty2116drivers/char/serial.crs_flush_buffer(tty);
tty2121drivers/char/serial.cinfo->tty = 0;
tty2130drivers/char/serial.cstatic int block_til_ready(struct tty_struct *tty, struct file * filp,
tty2157drivers/char/serial.cif (tty->driver.subtype == SERIAL_TYPE_CALLOUT) {
tty2177drivers/char/serial.c(tty->flags & (1 << TTY_IO_ERROR))) {
tty2188drivers/char/serial.cif (tty->termios->c_cflag & CLOCAL)
tty2263drivers/char/serial.cint rs_open(struct tty_struct *tty, struct file * filp)
tty2268drivers/char/serial.cline = MINOR(tty->device) - tty->driver.minor_start;
tty2272drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_open"))
tty2276drivers/char/serial.cprintk("rs_open %s%d, count = %d\n", tty->driver.name, info->line,
tty2280drivers/char/serial.ctty->driver_data = info;
tty2281drivers/char/serial.cinfo->tty = tty;
tty2296drivers/char/serial.cretval = block_til_ready(tty, filp, info);
tty2306drivers/char/serial.cif (tty->driver.subtype == SERIAL_TYPE_NORMAL)
tty2307drivers/char/serial.c*tty->termios = info->normal_termios;
tty2309drivers/char/serial.c*tty->termios = info->callout_termios;
tty2648drivers/char/serial.cinfo->tty = 0;
tty2767drivers/char/serial.cif (info->tty)
tty2768drivers/char/serial.ctty_hangup(info->tty);
tty244drivers/char/stallion.cstruct tty_struct  *tty;
tty473drivers/char/stallion.cstatic int  stl_open(struct tty_struct *tty, struct file *filp);
tty474drivers/char/stallion.cstatic void  stl_close(struct tty_struct *tty, struct file *filp);
tty475drivers/char/stallion.cstatic int  stl_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count);
tty476drivers/char/stallion.cstatic void  stl_putchar(struct tty_struct *tty, unsigned char ch);
tty477drivers/char/stallion.cstatic void  stl_flushchars(struct tty_struct *tty);
tty478drivers/char/stallion.cstatic int  stl_writeroom(struct tty_struct *tty);
tty479drivers/char/stallion.cstatic int  stl_charsinbuffer(struct tty_struct *tty);
tty480drivers/char/stallion.cstatic int  stl_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg);
tty481drivers/char/stallion.cstatic void  stl_settermios(struct tty_struct *tty, struct termios *old);
tty482drivers/char/stallion.cstatic void  stl_throttle(struct tty_struct *tty);
tty483drivers/char/stallion.cstatic void  stl_unthrottle(struct tty_struct *tty);
tty484drivers/char/stallion.cstatic void  stl_stop(struct tty_struct *tty);
tty485drivers/char/stallion.cstatic void  stl_start(struct tty_struct *tty);
tty486drivers/char/stallion.cstatic void  stl_flushbuffer(struct tty_struct *tty);
tty487drivers/char/stallion.cstatic void  stl_hangup(struct tty_struct *tty);
tty586drivers/char/stallion.cif (portp->tty != (struct tty_struct *) NULL)
tty587drivers/char/stallion.cstl_hangup(portp->tty);
tty662drivers/char/stallion.cstatic int stl_open(struct tty_struct *tty, struct file *filp)
tty670drivers/char/stallion.cprintk("stl_open(tty=%x,filp=%x): device=%x\n", (int) tty, (int) filp, tty->device);
tty673drivers/char/stallion.cminordev = MINOR(tty->device);
tty701drivers/char/stallion.cportp->tty = tty;
tty702drivers/char/stallion.ctty->driver_data = portp;
tty713drivers/char/stallion.cstl_setport(portp, tty->termios);
tty718drivers/char/stallion.cclear_bit(TTY_IO_ERROR, &tty->flags);
tty740drivers/char/stallion.cif (tty->driver.subtype == STL_DRVTYPCALLOUT) {
tty764drivers/char/stallion.cif (tty->driver.subtype == STL_DRVTYPSERIAL)
tty765drivers/char/stallion.c*tty->termios = portp->normaltermios;
tty767drivers/char/stallion.c*tty->termios = portp->callouttermios;
tty768drivers/char/stallion.cstl_setport(portp, tty->termios);
tty812drivers/char/stallion.c((portp->tty->termios->c_cflag & CLOCAL) ||
tty833drivers/char/stallion.cstatic void stl_close(struct tty_struct *tty, struct file *filp)
tty839drivers/char/stallion.cprintk("stl_close(tty=%x,filp=%x)\n", (int) tty, (int) filp);
tty842drivers/char/stallion.cportp = tty->driver_data;
tty861drivers/char/stallion.cportp->normaltermios = *tty->termios;
tty863drivers/char/stallion.cportp->callouttermios = *tty->termios;
tty870drivers/char/stallion.ctty->closing = 1;
tty873drivers/char/stallion.ctty_wait_until_sent(tty, portp->closing_wait);
tty878drivers/char/stallion.cif (tty->termios->c_cflag & HUPCL)
tty881drivers/char/stallion.cstl_flushbuffer(tty);
tty889drivers/char/stallion.cset_bit(TTY_IO_ERROR, &tty->flags);
tty890drivers/char/stallion.cif (tty->ldisc.flush_buffer)
tty891drivers/char/stallion.c(tty->ldisc.flush_buffer)(tty);
tty893drivers/char/stallion.ctty->closing = 0;
tty894drivers/char/stallion.ctty->driver_data = (void *) NULL;
tty895drivers/char/stallion.cportp->tty = (struct tty_struct *) NULL;
tty935drivers/char/stallion.cstatic int stl_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count)
tty944drivers/char/stallion.cprintk("stl_write(tty=%x,from_user=%d,buf=%x,count=%d)\n", (int) tty, from_user, (int) buf, count);
tty947drivers/char/stallion.cif ((tty == (struct tty_struct *) NULL) || (stl_tmpwritebuf == (char *) NULL))
tty949drivers/char/stallion.cportp = tty->driver_data;
tty1012drivers/char/stallion.cstatic void stl_putchar(struct tty_struct *tty, unsigned char ch)
tty1019drivers/char/stallion.cprintk("stl_putchar(tty=%x,ch=%x)\n", (int) tty, (int) ch);
tty1022drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1024drivers/char/stallion.cportp = tty->driver_data;
tty1052drivers/char/stallion.cstatic void stl_flushchars(struct tty_struct *tty)
tty1057drivers/char/stallion.cprintk("stl_flushchars(tty=%x)\n", (int) tty);
tty1060drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1062drivers/char/stallion.cportp = tty->driver_data;
tty1069drivers/char/stallion.cif (tty->stopped || tty->hw_stopped || (portp->tx.head == portp->tx.tail))
tty1077drivers/char/stallion.cstatic int stl_writeroom(struct tty_struct *tty)
tty1083drivers/char/stallion.cprintk("stl_writeroom(tty=%x)\n", (int) tty);
tty1086drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1088drivers/char/stallion.cportp = tty->driver_data;
tty1110drivers/char/stallion.cstatic int stl_charsinbuffer(struct tty_struct *tty)
tty1117drivers/char/stallion.cprintk("stl_charsinbuffer(tty=%x)\n", (int) tty);
tty1120drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1122drivers/char/stallion.cportp = tty->driver_data;
tty1199drivers/char/stallion.cstl_setport(portp, portp->tty->termios);
tty1205drivers/char/stallion.cstatic int stl_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg)
tty1211drivers/char/stallion.cprintk("stl_ioctl(tty=%x,file=%x,cmd=%x,arg=%x)\n", (int) tty, (int) file, cmd, (int) arg);
tty1214drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1216drivers/char/stallion.cportp = tty->driver_data;
tty1224drivers/char/stallion.cif ((rc = tty_check_change(tty)) == 0) {
tty1225drivers/char/stallion.ctty_wait_until_sent(tty, 0);
tty1231drivers/char/stallion.cif ((rc = tty_check_change(tty)) == 0) {
tty1232drivers/char/stallion.ctty_wait_until_sent(tty, 0);
tty1238drivers/char/stallion.cput_fs_long(((tty->termios->c_cflag & CLOCAL) ? 1 : 0), (unsigned long *) arg);
tty1243drivers/char/stallion.ctty->termios->c_cflag = (tty->termios->c_cflag & ~CLOCAL) | (arg ? CLOCAL : 0);
tty1295drivers/char/stallion.cstatic void stl_settermios(struct tty_struct *tty, struct termios *old)
tty1301drivers/char/stallion.cprintk("stl_settermios(tty=%x,old=%x)\n", (int) tty, (int) old);
tty1304drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1306drivers/char/stallion.cportp = tty->driver_data;
tty1310drivers/char/stallion.ctiosp = tty->termios;
tty1317drivers/char/stallion.ctty->hw_stopped = 0;
tty1318drivers/char/stallion.cstl_start(tty);
tty1331drivers/char/stallion.cstatic void stl_throttle(struct tty_struct *tty)
tty1337drivers/char/stallion.cprintk("stl_throttle(tty=%x)\n", (int) tty);
tty1340drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1342drivers/char/stallion.cportp = tty->driver_data;
tty1350drivers/char/stallion.cif (tty->termios->c_iflag & IXOFF) {
tty1355drivers/char/stallion.cif (tty->termios->c_cflag & CRTSCTS) {
tty1369drivers/char/stallion.cstatic void stl_unthrottle(struct tty_struct *tty)
tty1375drivers/char/stallion.cprintk("stl_unthrottle(tty=%x)\n", (int) tty);
tty1378drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1380drivers/char/stallion.cportp = tty->driver_data;
tty1388drivers/char/stallion.cif (tty->termios->c_iflag & IXOFF) {
tty1399drivers/char/stallion.cif (tty->termios->c_cflag & CRTSCTS) {
tty1414drivers/char/stallion.cstatic void stl_stop(struct tty_struct *tty)
tty1419drivers/char/stallion.cprintk("stl_stop(tty=%x)\n", (int) tty);
tty1422drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1424drivers/char/stallion.cportp = tty->driver_data;
tty1437drivers/char/stallion.cstatic void stl_start(struct tty_struct *tty)
tty1442drivers/char/stallion.cprintk("stl_start(tty=%x)\n", (int) tty);
tty1445drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1447drivers/char/stallion.cportp = tty->driver_data;
tty1462drivers/char/stallion.cstatic void stl_hangup(struct tty_struct *tty)
tty1467drivers/char/stallion.cprintk("stl_hangup(tty=%x)\n", (int) tty);
tty1470drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1472drivers/char/stallion.cportp = tty->driver_data;
tty1478drivers/char/stallion.cif (tty->termios->c_cflag & HUPCL)
tty1481drivers/char/stallion.cstl_flushbuffer(tty);
tty1483drivers/char/stallion.cset_bit(TTY_IO_ERROR, &tty->flags);
tty1490drivers/char/stallion.ctty->driver_data = (void *) NULL;
tty1491drivers/char/stallion.cportp->tty = (struct tty_struct *) NULL;
tty1499drivers/char/stallion.cstatic void stl_flushbuffer(struct tty_struct *tty)
tty1505drivers/char/stallion.cprintk("stl_flushbuffer(tty=%x)\n", (int) tty);
tty1508drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1510drivers/char/stallion.cportp = tty->driver_data;
tty1525drivers/char/stallion.cwake_up_interruptible(&tty->write_wait);
tty1526drivers/char/stallion.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && tty->ldisc.write_wakeup)
tty1527drivers/char/stallion.c(tty->ldisc.write_wakeup)(tty);
tty1670drivers/char/stallion.cstruct tty_struct  *tty;
tty1686drivers/char/stallion.ctty = portp->tty;
tty1691drivers/char/stallion.cif ((tty == (struct tty_struct *) NULL) || (tty->flip.char_buf_ptr == (char *) NULL) ||
tty1692drivers/char/stallion.c((buflen = TTY_FLIPBUF_SIZE - tty->flip.count) == 0)) {
tty1699drivers/char/stallion.cinsb((ioaddr + EREG_DATA), tty->flip.char_buf_ptr, len);
tty1700drivers/char/stallion.cmemset(tty->flip.flag_buf_ptr, 0, len);
tty1701drivers/char/stallion.ctty->flip.flag_buf_ptr += len;
tty1702drivers/char/stallion.ctty->flip.char_buf_ptr += len;
tty1703drivers/char/stallion.ctty->flip.count += len;
tty1704drivers/char/stallion.ctty_schedule_flip(tty);
tty1711drivers/char/stallion.cif ((tty != (struct tty_struct *) NULL) && ((portp->rxignoremsk & status) == 0)) {
tty1717drivers/char/stallion.cdo_SAK(tty);
tty1731drivers/char/stallion.cif (tty->flip.char_buf_ptr != (char *) NULL) {
tty1732drivers/char/stallion.cif (tty->flip.count < TTY_FLIPBUF_SIZE) {
tty1733drivers/char/stallion.c*tty->flip.flag_buf_ptr++ = status;
tty1734drivers/char/stallion.c*tty->flip.char_buf_ptr++ = ch;
tty1735drivers/char/stallion.ctty->flip.count++;
tty1737drivers/char/stallion.ctty_schedule_flip(tty);
tty1936drivers/char/stallion.cstruct tty_struct  *tty;
tty1946drivers/char/stallion.ctty = portp->tty;
tty1947drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1951drivers/char/stallion.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && tty->ldisc.write_wakeup)
tty1952drivers/char/stallion.c(tty->ldisc.write_wakeup)(tty);
tty1953drivers/char/stallion.cwake_up_interruptible(&tty->write_wait);
tty1964drivers/char/stallion.ctty_hangup(tty);
tty96drivers/char/tty_io.cstatic void initialize_tty_struct(struct tty_struct *tty);
tty119drivers/char/tty_io.cchar *_tty_name(struct tty_struct *tty, char *buf)
tty121drivers/char/tty_io.cif (tty)
tty122drivers/char/tty_io.csprintf(buf, "%s%d", tty->driver.name,
tty123drivers/char/tty_io.cMINOR(tty->device) - tty->driver.minor_start +
tty124drivers/char/tty_io.ctty->driver.name_base);
tty130drivers/char/tty_io.cchar *tty_name(struct tty_struct *tty)
tty134drivers/char/tty_io.creturn(_tty_name(tty, buf));
tty137drivers/char/tty_io.cinline int tty_paranoia_check(struct tty_struct *tty, dev_t device,
tty146drivers/char/tty_io.cif (!tty) {
tty150drivers/char/tty_io.cif (tty->magic != TTY_MAGIC) {
tty158drivers/char/tty_io.cstatic int check_tty_count(struct tty_struct *tty, const char *routine)
tty167drivers/char/tty_io.cif (f->private_data == tty) {
tty171drivers/char/tty_io.cif (tty->driver.type == TTY_DRIVER_TYPE_PTY &&
tty172drivers/char/tty_io.ctty->driver.subtype == PTY_TYPE_SLAVE &&
tty173drivers/char/tty_io.ctty->link && tty->link->count)
tty175drivers/char/tty_io.cif (tty->count != count) {
tty177drivers/char/tty_io.cMAJOR(tty->device), MINOR(tty->device), tty->count,
tty201drivers/char/tty_io.cstatic int tty_set_ldisc(struct tty_struct *tty, int ldisc)
tty210drivers/char/tty_io.cif (tty->ldisc.num == ldisc)
tty212drivers/char/tty_io.co_ldisc = tty->ldisc;
tty214drivers/char/tty_io.ctty_wait_until_sent(tty, 0);
tty217drivers/char/tty_io.cif (tty->ldisc.close)
tty218drivers/char/tty_io.c(tty->ldisc.close)(tty);
tty221drivers/char/tty_io.ctty->ldisc = ldiscs[ldisc];
tty222drivers/char/tty_io.ctty->termios->c_line = ldisc;
tty223drivers/char/tty_io.cif (tty->ldisc.open)
tty224drivers/char/tty_io.cretval = (tty->ldisc.open)(tty);
tty226drivers/char/tty_io.ctty->ldisc = o_ldisc;
tty227drivers/char/tty_io.ctty->termios->c_line = tty->ldisc.num;
tty228drivers/char/tty_io.cif (tty->ldisc.open && (tty->ldisc.open(tty) < 0)) {
tty229drivers/char/tty_io.ctty->ldisc = ldiscs[N_TTY];
tty230drivers/char/tty_io.ctty->termios->c_line = N_TTY;
tty231drivers/char/tty_io.cif (tty->ldisc.open) {
tty232drivers/char/tty_io.cint r = tty->ldisc.open(tty);
tty237drivers/char/tty_io.ctty_name(tty), r);
tty241drivers/char/tty_io.cif (tty->ldisc.num != o_ldisc.num && tty->driver.set_ldisc)
tty242drivers/char/tty_io.ctty->driver.set_ldisc(tty);
tty274drivers/char/tty_io.cint tty_check_change(struct tty_struct * tty)
tty276drivers/char/tty_io.cif (current->tty != tty)
tty278drivers/char/tty_io.cif (tty->pgrp <= 0) {
tty282drivers/char/tty_io.cif (current->pgrp == tty->pgrp)
tty346drivers/char/tty_io.cvoid do_tty_hangup(struct tty_struct * tty, struct file_operations *fops)
tty352drivers/char/tty_io.cif (!tty)
tty354drivers/char/tty_io.ccheck_tty_count(tty, "do_tty_hangup");
tty358drivers/char/tty_io.cif (filp->private_data != tty)
tty368drivers/char/tty_io.cif (tty->ldisc.flush_buffer)
tty369drivers/char/tty_io.ctty->ldisc.flush_buffer(tty);
tty370drivers/char/tty_io.cif (tty->driver.flush_buffer)
tty371drivers/char/tty_io.ctty->driver.flush_buffer(tty);
tty372drivers/char/tty_io.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
tty373drivers/char/tty_io.ctty->ldisc.write_wakeup)
tty374drivers/char/tty_io.c(tty->ldisc.write_wakeup)(tty);
tty375drivers/char/tty_io.cwake_up_interruptible(&tty->write_wait);
tty376drivers/char/tty_io.cwake_up_interruptible(&tty->read_wait);
tty382drivers/char/tty_io.cif (tty->ldisc.num != ldiscs[N_TTY].num) {
tty383drivers/char/tty_io.cif (tty->ldisc.close)
tty384drivers/char/tty_io.c(tty->ldisc.close)(tty);
tty385drivers/char/tty_io.ctty->ldisc = ldiscs[N_TTY];
tty386drivers/char/tty_io.ctty->termios->c_line = N_TTY;
tty387drivers/char/tty_io.cif (tty->ldisc.open) {
tty388drivers/char/tty_io.ci = (tty->ldisc.open)(tty);
tty396drivers/char/tty_io.cif ((tty->session > 0) && (p->session == tty->session) &&
tty400drivers/char/tty_io.cif (tty->pgrp > 0)
tty401drivers/char/tty_io.cp->tty_old_pgrp = tty->pgrp;
tty403drivers/char/tty_io.cif (p->tty == tty)
tty404drivers/char/tty_io.cp->tty = NULL;
tty406drivers/char/tty_io.ctty->flags = 0;
tty407drivers/char/tty_io.ctty->session = 0;
tty408drivers/char/tty_io.ctty->pgrp = -1;
tty409drivers/char/tty_io.ctty->ctrl_status = 0;
tty410drivers/char/tty_io.cif (tty->driver.flags & TTY_DRIVER_RESET_TERMIOS)
tty411drivers/char/tty_io.c*tty->termios = tty->driver.init_termios;
tty412drivers/char/tty_io.cif (tty->driver.hangup)
tty413drivers/char/tty_io.c(tty->driver.hangup)(tty);
tty416drivers/char/tty_io.cvoid tty_hangup(struct tty_struct * tty)
tty419drivers/char/tty_io.cprintk("%s hangup...\n", tty_name(tty));
tty421drivers/char/tty_io.cdo_tty_hangup(tty, &hung_up_tty_fops);
tty424drivers/char/tty_io.cvoid tty_vhangup(struct tty_struct * tty)
tty427drivers/char/tty_io.cprintk("%s vhangup...\n", tty_name(tty));
tty429drivers/char/tty_io.cdo_tty_hangup(tty, &hung_up_tty_fops);
tty449drivers/char/tty_io.cstruct tty_struct *tty = current->tty;
tty452drivers/char/tty_io.cif (!tty) {
tty459drivers/char/tty_io.cif (tty->pgrp > 0) {
tty460drivers/char/tty_io.ckill_pg(tty->pgrp, SIGHUP, priv);
tty461drivers/char/tty_io.ckill_pg(tty->pgrp, SIGCONT, priv);
tty465drivers/char/tty_io.ctty->session = 0;
tty466drivers/char/tty_io.ctty->pgrp = -1;
tty470drivers/char/tty_io.cp->tty = NULL;
tty656drivers/char/tty_io.cvoid stop_tty(struct tty_struct *tty)
tty658drivers/char/tty_io.cif (tty->stopped)
tty660drivers/char/tty_io.ctty->stopped = 1;
tty661drivers/char/tty_io.cif (tty->link && tty->link->packet) {
tty662drivers/char/tty_io.ctty->ctrl_status &= ~TIOCPKT_START;
tty663drivers/char/tty_io.ctty->ctrl_status |= TIOCPKT_STOP;
tty664drivers/char/tty_io.cwake_up_interruptible(&tty->link->read_wait);
tty666drivers/char/tty_io.cif (tty->driver.stop)
tty667drivers/char/tty_io.c(tty->driver.stop)(tty);
tty670drivers/char/tty_io.cvoid start_tty(struct tty_struct *tty)
tty672drivers/char/tty_io.cif (!tty->stopped)
tty674drivers/char/tty_io.ctty->stopped = 0;
tty675drivers/char/tty_io.cif (tty->link && tty->link->packet) {
tty676drivers/char/tty_io.ctty->ctrl_status &= ~TIOCPKT_STOP;
tty677drivers/char/tty_io.ctty->ctrl_status |= TIOCPKT_START;
tty678drivers/char/tty_io.cwake_up_interruptible(&tty->link->read_wait);
tty680drivers/char/tty_io.cif (tty->driver.start)
tty681drivers/char/tty_io.c(tty->driver.start)(tty);
tty682drivers/char/tty_io.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
tty683drivers/char/tty_io.ctty->ldisc.write_wakeup)
tty684drivers/char/tty_io.c(tty->ldisc.write_wakeup)(tty);
tty685drivers/char/tty_io.cwake_up_interruptible(&tty->write_wait);
tty691drivers/char/tty_io.cstruct tty_struct * tty;
tty693drivers/char/tty_io.ctty = (struct tty_struct *)file->private_data;
tty694drivers/char/tty_io.cif (tty_paranoia_check(tty, inode->i_rdev, "tty_read"))
tty696drivers/char/tty_io.cif (!tty || (tty->flags & (1 << TTY_IO_ERROR)))
tty705drivers/char/tty_io.c(tty->pgrp > 0) &&
tty706drivers/char/tty_io.c(current->tty == tty) &&
tty707drivers/char/tty_io.c(tty->pgrp != current->pgrp))
tty715drivers/char/tty_io.cif (tty->ldisc.read)
tty717drivers/char/tty_io.ci = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count);
tty728drivers/char/tty_io.cstruct tty_struct * tty;
tty733drivers/char/tty_io.ctty = redirect;
tty735drivers/char/tty_io.ctty = (struct tty_struct *)file->private_data;
tty736drivers/char/tty_io.cif (tty_paranoia_check(tty, inode->i_rdev, "tty_write"))
tty738drivers/char/tty_io.cif (!tty || !tty->driver.write || (tty->flags & (1 << TTY_IO_ERROR)))
tty741drivers/char/tty_io.cif (!is_console && L_TOSTOP(tty) && (tty->pgrp > 0) &&
tty742drivers/char/tty_io.c(current->tty == tty) && (tty->pgrp != current->pgrp)) {
tty751drivers/char/tty_io.cif (tty->ldisc.write)
tty753drivers/char/tty_io.ci = (tty->ldisc.write)(tty,file,(const unsigned char *)buf,(unsigned int)count);
tty768drivers/char/tty_io.cstruct tty_struct *tty, **tty_loc, *o_tty, **o_tty_loc;
tty780drivers/char/tty_io.ctty = o_tty = NULL;
tty797drivers/char/tty_io.cif (!*tty_loc && !tty) {
tty798drivers/char/tty_io.cif (!(tty = (struct tty_struct*) get_free_page(GFP_KERNEL)))
tty800drivers/char/tty_io.cinitialize_tty_struct(tty);
tty801drivers/char/tty_io.ctty->device = device;
tty802drivers/char/tty_io.ctty->driver = *driver;
tty868drivers/char/tty_io.ctty->termios = *tp_loc;
tty869drivers/char/tty_io.ctty->termios_locked = *ltp_loc;
tty870drivers/char/tty_io.c*tty_loc = tty;
tty873drivers/char/tty_io.cif (tty->ldisc.open) {
tty874drivers/char/tty_io.cretval = (tty->ldisc.open)(tty);
tty877drivers/char/tty_io.ctty = NULL;
tty881drivers/char/tty_io.ctty = NULL;
tty924drivers/char/tty_io.cif (tty)
tty925drivers/char/tty_io.cfree_page((unsigned long) tty);
tty946drivers/char/tty_io.cstruct tty_struct *tty, *o_tty;
tty951drivers/char/tty_io.ctty = (struct tty_struct *)filp->private_data;
tty952drivers/char/tty_io.cif (tty_paranoia_check(tty, filp->f_inode->i_rdev, "release_dev"))
tty955drivers/char/tty_io.ccheck_tty_count(tty, "release_dev");
tty959drivers/char/tty_io.ctp = tty->termios;
tty960drivers/char/tty_io.cltp = tty->termios_locked;
tty962drivers/char/tty_io.cidx = MINOR(tty->device) - tty->driver.minor_start;
tty964drivers/char/tty_io.cif (idx < 0 || idx >= tty->driver.num) {
tty966drivers/char/tty_io.cMAJOR(tty->device), MINOR(tty->device));
tty969drivers/char/tty_io.cif (tty != tty->driver.table[idx]) {
tty971drivers/char/tty_io.cidx, MAJOR(tty->device), MINOR(tty->device));
tty974drivers/char/tty_io.cif (tp != tty->driver.termios[idx]) {
tty976drivers/char/tty_io.cidx, MAJOR(tty->device), MINOR(tty->device));
tty979drivers/char/tty_io.cif (ltp != tty->driver.termios_locked[idx]) {
tty981drivers/char/tty_io.cidx, MAJOR(tty->device), MINOR(tty->device));
tty987drivers/char/tty_io.cprintk("release_dev of %s (tty count=%d)...", tty_name(tty),
tty988drivers/char/tty_io.ctty->count);
tty991drivers/char/tty_io.co_tty = tty->link;
tty996drivers/char/tty_io.cif (tty->driver.other) {
tty997drivers/char/tty_io.cif (o_tty != tty->driver.other->table[idx]) {
tty999drivers/char/tty_io.cidx, MAJOR(tty->device), MINOR(tty->device));
tty1002drivers/char/tty_io.cif (o_tp != tty->driver.other->termios[idx]) {
tty1004drivers/char/tty_io.cidx, MAJOR(tty->device), MINOR(tty->device));
tty1007drivers/char/tty_io.cif (o_ltp != tty->driver.other->termios_locked[idx]) {
tty1009drivers/char/tty_io.cidx, MAJOR(tty->device), MINOR(tty->device));
tty1013drivers/char/tty_io.cif (o_tty->link != tty) {
tty1020drivers/char/tty_io.cif (tty->driver.close)
tty1021drivers/char/tty_io.ctty->driver.close(tty, filp);
tty1022drivers/char/tty_io.cif (tty->driver.type == TTY_DRIVER_TYPE_PTY &&
tty1023drivers/char/tty_io.ctty->driver.subtype == PTY_TYPE_MASTER) {
tty1024drivers/char/tty_io.cif (--tty->link->count < 0) {
tty1026drivers/char/tty_io.ctty->count, tty_name(tty));
tty1027drivers/char/tty_io.ctty->link->count = 0;
tty1030drivers/char/tty_io.cif (--tty->count < 0) {
tty1032drivers/char/tty_io.ctty->count, tty_name(tty));
tty1033drivers/char/tty_io.ctty->count = 0;
tty1035drivers/char/tty_io.cif (tty->count)
tty1044drivers/char/tty_io.ctty->driver.other->table[idx] = NULL;
tty1045drivers/char/tty_io.ctty->driver.other->termios[idx] = NULL;
tty1052drivers/char/tty_io.ctty->flags |= (1 << TTY_CLOSING);
tty1061drivers/char/tty_io.cif ((*p)->tty == tty)
tty1062drivers/char/tty_io.c(*p)->tty = NULL;
tty1063drivers/char/tty_io.cif (o_tty && (*p)->tty == o_tty)
tty1064drivers/char/tty_io.c(*p)->tty = NULL;
tty1071drivers/char/tty_io.cif (tty->ldisc.close)
tty1072drivers/char/tty_io.c(tty->ldisc.close)(tty);
tty1073drivers/char/tty_io.ctty->ldisc = ldiscs[N_TTY];
tty1074drivers/char/tty_io.ctty->termios->c_line = N_TTY;
tty1081drivers/char/tty_io.ctty->driver.table[idx] = NULL;
tty1082drivers/char/tty_io.cif (tty->driver.flags & TTY_DRIVER_RESET_TERMIOS) {
tty1083drivers/char/tty_io.ctty->driver.termios[idx] = NULL;
tty1086drivers/char/tty_io.cif (tty == redirect || o_tty == redirect)
tty1093drivers/char/tty_io.cif (tty->flip.tqueue.sync) {
tty1097drivers/char/tty_io.cif (tq == &tty->flip.tqueue) {
tty1107drivers/char/tty_io.ctty->magic = 0;
tty1108drivers/char/tty_io.c(*tty->driver.refcount)--;
tty1109drivers/char/tty_io.cfree_page((unsigned long) tty);
tty1132drivers/char/tty_io.cstruct tty_struct *tty;
tty1141drivers/char/tty_io.cif (!current->tty)
tty1143drivers/char/tty_io.cdevice = current->tty->device;
tty1152drivers/char/tty_io.cretval = init_dev(device, &tty);
tty1155drivers/char/tty_io.cfilp->private_data = tty;
tty1156drivers/char/tty_io.ccheck_tty_count(tty, "tty_open");
tty1157drivers/char/tty_io.cif (tty->driver.type == TTY_DRIVER_TYPE_PTY &&
tty1158drivers/char/tty_io.ctty->driver.subtype == PTY_TYPE_MASTER)
tty1161drivers/char/tty_io.cprintk("opening %s...", tty_name(tty));
tty1163drivers/char/tty_io.cif (tty->driver.open)
tty1164drivers/char/tty_io.cretval = tty->driver.open(tty, filp);
tty1168drivers/char/tty_io.cif (!retval && test_bit(TTY_EXCLUSIVE, &tty->flags) && !suser())
tty1173drivers/char/tty_io.cprintk("error %d in opening %s...", retval, tty_name(tty));
tty1190drivers/char/tty_io.c!current->tty &&
tty1191drivers/char/tty_io.ctty->session == 0) {
tty1192drivers/char/tty_io.ccurrent->tty = tty;
tty1194drivers/char/tty_io.ctty->session = current->session;
tty1195drivers/char/tty_io.ctty->pgrp = current->pgrp;
tty1212drivers/char/tty_io.cstruct tty_struct * tty;
tty1214drivers/char/tty_io.ctty = (struct tty_struct *)filp->private_data;
tty1215drivers/char/tty_io.cif (tty_paranoia_check(tty, inode->i_rdev, "tty_select"))
tty1218drivers/char/tty_io.cif (tty->ldisc.select)
tty1219drivers/char/tty_io.creturn (tty->ldisc.select)(tty, inode, filp, sel_type, wait);
tty1265drivers/char/tty_io.cstruct tty_struct * tty;
tty1268drivers/char/tty_io.ctty = (struct tty_struct *)filp->private_data;
tty1269drivers/char/tty_io.cif (tty_paranoia_check(tty, inode->i_rdev, "tty_fasync"))
tty1272drivers/char/tty_io.cretval = fasync_helper(inode, filp, on, &tty->fasync);
tty1277drivers/char/tty_io.cif (!tty->read_wait)
tty1278drivers/char/tty_io.ctty->minimum_to_wake = 1;
tty1280drivers/char/tty_io.cif (tty->pgrp)
tty1281drivers/char/tty_io.cfilp->f_owner = -tty->pgrp;
tty1286drivers/char/tty_io.cif (!tty->fasync && !tty->read_wait)
tty1287drivers/char/tty_io.ctty->minimum_to_wake = N_TTY_BUF_SIZE;
tty1330drivers/char/tty_io.cstruct tty_struct * tty;
tty1337drivers/char/tty_io.ctty = (struct tty_struct *)file->private_data;
tty1338drivers/char/tty_io.cif (tty_paranoia_check(tty, inode->i_rdev, "tty_ioctl"))
tty1341drivers/char/tty_io.cif (tty->driver.type == TTY_DRIVER_TYPE_PTY &&
tty1342drivers/char/tty_io.ctty->driver.subtype == PTY_TYPE_MASTER)
tty1343drivers/char/tty_io.creal_tty = tty->link;
tty1345drivers/char/tty_io.creal_tty = tty;
tty1349drivers/char/tty_io.cif ((current->tty != tty) && !suser())
tty1355drivers/char/tty_io.ctty->ldisc.receive_buf(tty, &ch, &mbz, 1);
tty1362drivers/char/tty_io.cmemcpy_tofs((struct winsize *) arg, &tty->winsize,
tty1372drivers/char/tty_io.cif (memcmp(&tmp_ws, &tty->winsize,
tty1374drivers/char/tty_io.cif (tty->pgrp > 0)
tty1375drivers/char/tty_io.ckill_pg(tty->pgrp, SIGWINCH, 1);
tty1376drivers/char/tty_io.cif ((real_tty->pgrp != tty->pgrp) &&
tty1380drivers/char/tty_io.ctty->winsize = tmp_ws;
tty1384drivers/char/tty_io.cif (tty->driver.type == TTY_DRIVER_TYPE_CONSOLE) {
tty1405drivers/char/tty_io.cset_bit(TTY_EXCLUSIVE, &tty->flags);
tty1408drivers/char/tty_io.cclear_bit(TTY_EXCLUSIVE, &tty->flags);
tty1411drivers/char/tty_io.cif (current->tty != tty)
tty1415drivers/char/tty_io.ccurrent->tty = NULL;
tty1419drivers/char/tty_io.c(current->session == tty->session))
tty1425drivers/char/tty_io.cif (!current->leader || current->tty)
tty1427drivers/char/tty_io.cif (tty->session > 0) {
tty1439drivers/char/tty_io.cif (p->tty == tty)
tty1440drivers/char/tty_io.cp->tty = NULL;
tty1444drivers/char/tty_io.ccurrent->tty = tty;
tty1446drivers/char/tty_io.ctty->session = current->session;
tty1447drivers/char/tty_io.ctty->pgrp = current->pgrp;
tty1454drivers/char/tty_io.cif (tty == real_tty && current->tty != real_tty)
tty1466drivers/char/tty_io.cif (!current->tty ||
tty1467drivers/char/tty_io.c(current->tty != real_tty) ||
tty1482drivers/char/tty_io.cput_user(tty->ldisc.num, (int *) arg);
tty1485drivers/char/tty_io.cretval = tty_check_change(tty);
tty1489drivers/char/tty_io.creturn tty_set_ldisc(tty, arg);
tty1491drivers/char/tty_io.cif (tty->driver.type != TTY_DRIVER_TYPE_CONSOLE)
tty1493drivers/char/tty_io.cif (current->tty != tty && !suser())
tty1511drivers/char/tty_io.creturn set_selection(arg, tty);
tty1513drivers/char/tty_io.creturn paste_selection(tty);
tty1544drivers/char/tty_io.ctty, sizeof(struct tty_struct));
tty1547drivers/char/tty_io.cif (tty->driver.ioctl) {
tty1548drivers/char/tty_io.cretval = (tty->driver.ioctl)(tty, file,
tty1553drivers/char/tty_io.cif (tty->ldisc.ioctl) {
tty1554drivers/char/tty_io.cretval = (tty->ldisc.ioctl)(tty, file,
tty1576drivers/char/tty_io.cvoid do_SAK( struct tty_struct *tty)
tty1579drivers/char/tty_io.ctty_hangup(tty);
tty1586drivers/char/tty_io.cif (!tty)
tty1588drivers/char/tty_io.csession  = tty->session;
tty1589drivers/char/tty_io.cif (tty->ldisc.flush_buffer)
tty1590drivers/char/tty_io.ctty->ldisc.flush_buffer(tty);
tty1591drivers/char/tty_io.cif (tty->driver.flush_buffer)
tty1592drivers/char/tty_io.ctty->driver.flush_buffer(tty);
tty1596drivers/char/tty_io.cif (((*p)->tty == tty) ||
tty1603drivers/char/tty_io.c(filp->private_data == tty)) {
tty1619drivers/char/tty_io.cstruct tty_struct *tty = (struct tty_struct *) private_;
tty1624drivers/char/tty_io.cif (tty->flip.buf_num) {
tty1625drivers/char/tty_io.ccp = tty->flip.char_buf + TTY_FLIPBUF_SIZE;
tty1626drivers/char/tty_io.cfp = tty->flip.flag_buf + TTY_FLIPBUF_SIZE;
tty1627drivers/char/tty_io.ctty->flip.buf_num = 0;
tty1630drivers/char/tty_io.ctty->flip.char_buf_ptr = tty->flip.char_buf;
tty1631drivers/char/tty_io.ctty->flip.flag_buf_ptr = tty->flip.flag_buf;
tty1633drivers/char/tty_io.ccp = tty->flip.char_buf;
tty1634drivers/char/tty_io.cfp = tty->flip.flag_buf;
tty1635drivers/char/tty_io.ctty->flip.buf_num = 1;
tty1638drivers/char/tty_io.ctty->flip.char_buf_ptr = tty->flip.char_buf + TTY_FLIPBUF_SIZE;
tty1639drivers/char/tty_io.ctty->flip.flag_buf_ptr = tty->flip.flag_buf + TTY_FLIPBUF_SIZE;
tty1641drivers/char/tty_io.ccount = tty->flip.count;
tty1642drivers/char/tty_io.ctty->flip.count = 0;
tty1646drivers/char/tty_io.cif (count > tty->max_flip_cnt)
tty1647drivers/char/tty_io.ctty->max_flip_cnt = count;
tty1649drivers/char/tty_io.ctty->ldisc.receive_buf(tty, cp, fp, count);
tty1655drivers/char/tty_io.cstatic void initialize_tty_struct(struct tty_struct *tty)
tty1657drivers/char/tty_io.cmemset(tty, 0, sizeof(struct tty_struct));
tty1658drivers/char/tty_io.ctty->magic = TTY_MAGIC;
tty1659drivers/char/tty_io.ctty->ldisc = ldiscs[N_TTY];
tty1660drivers/char/tty_io.ctty->pgrp = -1;
tty1661drivers/char/tty_io.ctty->flip.char_buf_ptr = tty->flip.char_buf;
tty1662drivers/char/tty_io.ctty->flip.flag_buf_ptr = tty->flip.flag_buf;
tty1663drivers/char/tty_io.ctty->flip.tqueue.routine = flush_to_ldisc;
tty1664drivers/char/tty_io.ctty->flip.tqueue.data = tty;
tty1670drivers/char/tty_io.cvoid tty_default_put_char(struct tty_struct *tty, unsigned char ch)
tty1672drivers/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);
tty120drivers/char/vt.cif ( p->tty && MAJOR(p->tty->device) == TTY_MAJOR &&
tty121drivers/char/vt.cMINOR(p->tty->device) <= MAX_NR_CONSOLES && MINOR(p->tty->device) )
tty183drivers/char/vt.cint vt_ioctl(struct tty_struct *tty, struct file * file,
tty190drivers/char/vt.cstruct vt_struct *vt = (struct vt_struct *)tty->driver_data;
tty202drivers/char/vt.cif (current->tty == tty || suser())
tty321drivers/char/vt.cif (tty->ldisc.flush_buffer)
tty322drivers/char/vt.ctty->ldisc.flush_buffer(tty);
tty107drivers/net/ppp.c#define ppp_find(tty) ((struct ppp *) tty->disc_data)
tty147drivers/net/ppp.cstatic int ppp_select(struct tty_struct *tty, struct inode * inode,
tty153drivers/net/ppp.cstatic int ppp_receive_room(struct tty_struct *tty);
tty154drivers/net/ppp.cstatic void ppp_receive_buf(struct tty_struct *tty, const unsigned char *cp,
tty156drivers/net/ppp.cstatic void ppp_write_wakeup(struct tty_struct *tty);
tty264drivers/net/ppp.cppp->tty   = NULL;
tty465drivers/net/ppp.cif (ppp->tty != NULL && ppp->tty->disc_data == ppp)
tty466drivers/net/ppp.cppp->tty->disc_data = NULL; /* Break the tty->ppp link */
tty490drivers/net/ppp.cppp->tty   = NULL;
tty494drivers/net/ppp.cppp_close(struct tty_struct *tty)
tty496drivers/net/ppp.cstruct ppp *ppp = ppp_find(tty);
tty513drivers/net/ppp.cppp_open(struct tty_struct *tty)
tty515drivers/net/ppp.cstruct ppp *ppp = ppp_find(tty);
tty532drivers/net/ppp.cppp->tty = tty;
tty535drivers/net/ppp.ctty->disc_data = ppp;
tty536drivers/net/ppp.cif (tty->driver.flush_buffer)
tty537drivers/net/ppp.ctty->driver.flush_buffer(tty);
tty538drivers/net/ppp.cif (tty->ldisc.flush_buffer)
tty539drivers/net/ppp.ctty->ldisc.flush_buffer(tty);
tty541drivers/net/ppp.ctty_read_flush (tty);
tty542drivers/net/ppp.ctty_write_flush (tty);
tty589drivers/net/ppp.cif (ppp->tty == NULL) {
tty607drivers/net/ppp.cif (ppp->tty == NULL) {
tty685drivers/net/ppp.canswer = tty_write_data (ppp->tty,
tty709drivers/net/ppp.cactual = ppp->tty->driver.write(ppp->tty, 0, ppp->xbuff, count);
tty715drivers/net/ppp.cppp->tty->flags |= (1 << TTY_DO_WRITE_WAKEUP);
tty719drivers/net/ppp.cstatic void ppp_write_wakeup(struct tty_struct *tty)
tty722drivers/net/ppp.cstruct ppp *ppp = ppp_find(tty);
tty744drivers/net/ppp.cactual = tty->driver.write(tty, 0, ppp->xtail, count);
tty748drivers/net/ppp.ctty->flags &= ~TTY_DO_WRITE_WAKEUP;
tty793drivers/net/ppp.cppp_dump_inqueue(struct tty_struct *tty)
tty795drivers/net/ppp.cint  head = tty->read_q.head,
tty796drivers/net/ppp.ctail = tty->read_q.tail,
tty801drivers/net/ppp.c(unsigned int) tty->termios->c_iflag))
tty807drivers/net/ppp.cbuffer [count] = tty->read_q.buf[i];
tty820drivers/net/ppp.cvoid ppp_tty_input_ready(struct tty_struct *tty)
tty822drivers/net/ppp.cstruct ppp *ppp = ppp_find(tty);
tty837drivers/net/ppp.cppp_dump_inqueue(ppp->tty);
tty840drivers/net/ppp.cn = tty_read_raw_data(tty, buff, 128);
tty915drivers/net/ppp.cstatic int ppp_receive_room(struct tty_struct *tty)
tty921drivers/net/ppp.cstatic void ppp_receive_buf(struct tty_struct *tty, const unsigned char *cp,
tty924drivers/net/ppp.cregister struct ppp *ppp = ppp_find (tty);
tty1206drivers/net/ppp.ckill_fasync(ppp->tty->fasync, SIGIO);
tty1241drivers/net/ppp.cppp_read(struct tty_struct *tty, struct file *file, unsigned char *buf, unsigned int nr)
tty1243drivers/net/ppp.cstruct ppp *ppp = ppp_find(tty);
tty1320drivers/net/ppp.cppp = ppp_find(tty);
tty1353drivers/net/ppp.cppp_write(struct tty_struct *tty, struct file *file, const unsigned char *buf, unsigned int nr)
tty1355drivers/net/ppp.cstruct ppp *ppp = ppp_find(tty);
tty1390drivers/net/ppp.cppp = ppp_find(tty);
tty1438drivers/net/ppp.cppp_ioctl(struct tty_struct *tty, struct file *file, unsigned int i,
tty1441drivers/net/ppp.cstruct ppp *ppp = ppp_find(tty);
tty1637drivers/net/ppp.cerror = n_tty_ioctl(tty, file, i, l);
tty1660drivers/net/ppp.cppp_select (struct tty_struct *tty, struct inode * inode,
tty1663drivers/net/ppp.cstruct ppp *ppp = ppp_find (tty);
tty1687drivers/net/ppp.cif (tty->packet && tty->link->ctrl_status)
tty1691drivers/net/ppp.cif (tty->flags & (1 << TTY_SLAVE_CLOSED))
tty1726drivers/net/ppp.cstruct tty_struct *tty;
tty1740drivers/net/ppp.ctty   = ppp->tty;
tty1755drivers/net/ppp.cif (tty == NULL) {
tty1938drivers/net/ppp.cppp_find(struct tty_struct *tty)
tty1942drivers/net/ppp.cif (ppp_ctrl[i].inuse && (ppp_ctrl[i].tty == tty)) return &ppp_ctrl[i];
tty143drivers/net/slip.cslp->ctrl.tty         = NULL;
tty441drivers/net/slip.csl->tty->flags |= (1 << TTY_DO_WRITE_WAKEUP);
tty442drivers/net/slip.cactual = sl->tty->driver.write(sl->tty, 0, sl->xbuff, count);
tty454drivers/net/slip.cstatic void slip_write_wakeup(struct tty_struct *tty)
tty457drivers/net/slip.cstruct slip *sl = (struct slip *) tty->disc_data;
tty468drivers/net/slip.ctty->flags &= ~(1 << TTY_DO_WRITE_WAKEUP);
tty474drivers/net/slip.cactual = tty->driver.write(tty, 0, sl->xhead, sl->xleft);
tty509drivers/net/slip.c(sl->tty->driver.chars_in_buffer(sl->tty) || sl->xleft) ?
tty512drivers/net/slip.csl->tty->flags &= ~(1 << TTY_DO_WRITE_WAKEUP);
tty574drivers/net/slip.cif (sl->tty == NULL) {
tty657drivers/net/slip.cif (sl->tty == NULL) {
tty660drivers/net/slip.csl->tty->flags &= ~(1 << TTY_DO_WRITE_WAKEUP);
tty670drivers/net/slip.cslip_receive_room(struct tty_struct *tty)
tty682drivers/net/slip.cslip_receive_buf(struct tty_struct *tty, const unsigned char *cp, char *fp, int count)
tty684drivers/net/slip.cstruct slip *sl = (struct slip *) tty->disc_data;
tty727drivers/net/slip.cslip_open(struct tty_struct *tty)
tty729drivers/net/slip.cstruct slip *sl = (struct slip *) tty->disc_data;
tty742drivers/net/slip.csl->tty = tty;
tty743drivers/net/slip.ctty->disc_data = sl;
tty744drivers/net/slip.cif (tty->driver.flush_buffer)  {
tty745drivers/net/slip.ctty->driver.flush_buffer(tty);
tty747drivers/net/slip.cif (tty->ldisc.flush_buffer)  {
tty748drivers/net/slip.ctty->ldisc.flush_buffer(tty);
tty780drivers/net/slip.cslip_close(struct tty_struct *tty)
tty782drivers/net/slip.cstruct slip *sl = (struct slip *) tty->disc_data;
tty791drivers/net/slip.ctty->disc_data = 0;
tty792drivers/net/slip.csl->tty = NULL;
tty1016drivers/net/slip.cslip_ioctl(struct tty_struct *tty, void *file, int cmd, void *arg)
tty1018drivers/net/slip.cstruct slip *sl = (struct slip *) tty->disc_data;
tty1098drivers/net/slip.creturn n_tty_ioctl(tty, (struct file *) file, cmd, (unsigned long) arg);
tty1108drivers/net/slip.cif(sl->tty==NULL)
tty50drivers/net/slip.hstruct tty_struct  *tty;    /* ptr to TTY structure    */
tty589fs/open.cif (current->tty)
tty590fs/open.ctty_vhangup(current->tty);
tty436fs/proc/array.cif (tsk->tty)
tty437fs/proc/array.ctty_pgrp = tsk->tty->pgrp;
tty449fs/proc/array.ctsk->tty ? tsk->tty->device : 0,
tty56include/linux/cyclades.hstruct tty_struct   *tty;
tty193include/linux/if_ppp.hstruct tty_struct  *tty;    /* ptr to TTY structure    */
tty229include/linux/scc.hstruct tty_struct *tty; /* link to tty control structure */
tty202include/linux/sched.hstruct tty_struct *tty; /* NULL if no tty */
tty118include/linux/serial.hstruct tty_struct   *tty;
tty105include/linux/tty.h#define INTR_CHAR(tty) ((tty)->termios->c_cc[VINTR])
tty106include/linux/tty.h#define QUIT_CHAR(tty) ((tty)->termios->c_cc[VQUIT])
tty107include/linux/tty.h#define ERASE_CHAR(tty) ((tty)->termios->c_cc[VERASE])
tty108include/linux/tty.h#define KILL_CHAR(tty) ((tty)->termios->c_cc[VKILL])
tty109include/linux/tty.h#define EOF_CHAR(tty) ((tty)->termios->c_cc[VEOF])
tty110include/linux/tty.h#define TIME_CHAR(tty) ((tty)->termios->c_cc[VTIME])
tty111include/linux/tty.h#define MIN_CHAR(tty) ((tty)->termios->c_cc[VMIN])
tty112include/linux/tty.h#define SWTC_CHAR(tty) ((tty)->termios->c_cc[VSWTC])
tty113include/linux/tty.h#define START_CHAR(tty) ((tty)->termios->c_cc[VSTART])
tty114include/linux/tty.h#define STOP_CHAR(tty) ((tty)->termios->c_cc[VSTOP])
tty115include/linux/tty.h#define SUSP_CHAR(tty) ((tty)->termios->c_cc[VSUSP])
tty116include/linux/tty.h#define EOL_CHAR(tty) ((tty)->termios->c_cc[VEOL])
tty117include/linux/tty.h#define REPRINT_CHAR(tty) ((tty)->termios->c_cc[VREPRINT])
tty118include/linux/tty.h#define DISCARD_CHAR(tty) ((tty)->termios->c_cc[VDISCARD])
tty119include/linux/tty.h#define WERASE_CHAR(tty) ((tty)->termios->c_cc[VWERASE])
tty120include/linux/tty.h#define LNEXT_CHAR(tty)  ((tty)->termios->c_cc[VLNEXT])
tty121include/linux/tty.h#define EOL2_CHAR(tty) ((tty)->termios->c_cc[VEOL2])
tty123include/linux/tty.h#define _I_FLAG(tty,f)  ((tty)->termios->c_iflag & (f))
tty124include/linux/tty.h#define _O_FLAG(tty,f)  ((tty)->termios->c_oflag & (f))
tty125include/linux/tty.h#define _C_FLAG(tty,f)  ((tty)->termios->c_cflag & (f))
tty126include/linux/tty.h#define _L_FLAG(tty,f)  ((tty)->termios->c_lflag & (f))
tty128include/linux/tty.h#define I_IGNBRK(tty)  _I_FLAG((tty),IGNBRK)
tty129include/linux/tty.h#define I_BRKINT(tty)  _I_FLAG((tty),BRKINT)
tty130include/linux/tty.h#define I_IGNPAR(tty)  _I_FLAG((tty),IGNPAR)
tty131include/linux/tty.h#define I_PARMRK(tty)  _I_FLAG((tty),PARMRK)
tty132include/linux/tty.h#define I_INPCK(tty)  _I_FLAG((tty),INPCK)
tty133include/linux/tty.h#define I_ISTRIP(tty)  _I_FLAG((tty),ISTRIP)
tty134include/linux/tty.h#define I_INLCR(tty)  _I_FLAG((tty),INLCR)
tty135include/linux/tty.h#define I_IGNCR(tty)  _I_FLAG((tty),IGNCR)
tty136include/linux/tty.h#define I_ICRNL(tty)  _I_FLAG((tty),ICRNL)
tty137include/linux/tty.h#define I_IUCLC(tty)  _I_FLAG((tty),IUCLC)
tty138include/linux/tty.h#define I_IXON(tty)  _I_FLAG((tty),IXON)
tty139include/linux/tty.h#define I_IXANY(tty)  _I_FLAG((tty),IXANY)
tty140include/linux/tty.h#define I_IXOFF(tty)  _I_FLAG((tty),IXOFF)
tty141include/linux/tty.h#define I_IMAXBEL(tty)  _I_FLAG((tty),IMAXBEL)
tty143include/linux/tty.h#define O_OPOST(tty)  _O_FLAG((tty),OPOST)
tty144include/linux/tty.h#define O_OLCUC(tty)  _O_FLAG((tty),OLCUC)
tty145include/linux/tty.h#define O_ONLCR(tty)  _O_FLAG((tty),ONLCR)
tty146include/linux/tty.h#define O_OCRNL(tty)  _O_FLAG((tty),OCRNL)
tty147include/linux/tty.h#define O_ONOCR(tty)  _O_FLAG((tty),ONOCR)
tty148include/linux/tty.h#define O_ONLRET(tty)  _O_FLAG((tty),ONLRET)
tty149include/linux/tty.h#define O_OFILL(tty)  _O_FLAG((tty),OFILL)
tty150include/linux/tty.h#define O_OFDEL(tty)  _O_FLAG((tty),OFDEL)
tty151include/linux/tty.h#define O_NLDLY(tty)  _O_FLAG((tty),NLDLY)
tty152include/linux/tty.h#define O_CRDLY(tty)  _O_FLAG((tty),CRDLY)
tty153include/linux/tty.h#define O_TABDLY(tty)  _O_FLAG((tty),TABDLY)
tty154include/linux/tty.h#define O_BSDLY(tty)  _O_FLAG((tty),BSDLY)
tty155include/linux/tty.h#define O_VTDLY(tty)  _O_FLAG((tty),VTDLY)
tty156include/linux/tty.h#define O_FFDLY(tty)  _O_FLAG((tty),FFDLY)
tty158include/linux/tty.h#define C_BAUD(tty)  _C_FLAG((tty),CBAUD)
tty159include/linux/tty.h#define C_CSIZE(tty)  _C_FLAG((tty),CSIZE)
tty160include/linux/tty.h#define C_CSTOPB(tty)  _C_FLAG((tty),CSTOPB)
tty161include/linux/tty.h#define C_CREAD(tty)  _C_FLAG((tty),CREAD)
tty162include/linux/tty.h#define C_PARENB(tty)  _C_FLAG((tty),PARENB)
tty163include/linux/tty.h#define C_PARODD(tty)  _C_FLAG((tty),PARODD)
tty164include/linux/tty.h#define C_HUPCL(tty)  _C_FLAG((tty),HUPCL)
tty165include/linux/tty.h#define C_CLOCAL(tty)  _C_FLAG((tty),CLOCAL)
tty166include/linux/tty.h#define C_CIBAUD(tty)  _C_FLAG((tty),CIBAUD)
tty167include/linux/tty.h#define C_CRTSCTS(tty)  _C_FLAG((tty),CRTSCTS)
tty169include/linux/tty.h#define L_ISIG(tty)  _L_FLAG((tty),ISIG)
tty170include/linux/tty.h#define L_ICANON(tty)  _L_FLAG((tty),ICANON)
tty171include/linux/tty.h#define L_XCASE(tty)  _L_FLAG((tty),XCASE)
tty172include/linux/tty.h#define L_ECHO(tty)  _L_FLAG((tty),ECHO)
tty173include/linux/tty.h#define L_ECHOE(tty)  _L_FLAG((tty),ECHOE)
tty174include/linux/tty.h#define L_ECHOK(tty)  _L_FLAG((tty),ECHOK)
tty175include/linux/tty.h#define L_ECHONL(tty)  _L_FLAG((tty),ECHONL)
tty176include/linux/tty.h#define L_NOFLSH(tty)  _L_FLAG((tty),NOFLSH)
tty177include/linux/tty.h#define L_TOSTOP(tty)  _L_FLAG((tty),TOSTOP)
tty178include/linux/tty.h#define L_ECHOCTL(tty)  _L_FLAG((tty),ECHOCTL)
tty179include/linux/tty.h#define L_ECHOPRT(tty)  _L_FLAG((tty),ECHOPRT)
tty180include/linux/tty.h#define L_ECHOKE(tty)  _L_FLAG((tty),ECHOKE)
tty181include/linux/tty.h#define L_FLUSHO(tty)  _L_FLAG((tty),FLUSHO)
tty182include/linux/tty.h#define L_PENDIN(tty)  _L_FLAG((tty),PENDIN)
tty183include/linux/tty.h#define L_IEXTEN(tty)  _L_FLAG((tty),IEXTEN)
tty265include/linux/tty.h#define TTY_WRITE_FLUSH(tty) tty_write_flush((tty))
tty291include/linux/tty.hextern int tty_paranoia_check(struct tty_struct *tty, dev_t device,
tty293include/linux/tty.hextern char *_tty_name(struct tty_struct *tty, char *buf);
tty294include/linux/tty.hextern char *tty_name(struct tty_struct *tty);
tty295include/linux/tty.hextern void tty_wait_until_sent(struct tty_struct * tty, int timeout);
tty296include/linux/tty.hextern int tty_check_change(struct tty_struct * tty);
tty297include/linux/tty.hextern void stop_tty(struct tty_struct * tty);
tty298include/linux/tty.hextern void start_tty(struct tty_struct * tty);
tty302include/linux/tty.hextern int tty_read_raw_data(struct tty_struct *tty, unsigned char *bufp,
tty307include/linux/tty.hextern int tty_signal(int sig, struct tty_struct *tty);
tty308include/linux/tty.hextern void tty_hangup(struct tty_struct * tty);
tty309include/linux/tty.hextern void tty_vhangup(struct tty_struct * tty);
tty312include/linux/tty.hextern void do_SAK(struct tty_struct *tty);
tty319include/linux/tty.hextern int n_tty_ioctl(struct tty_struct * tty, struct file * file,
tty324include/linux/tty.hextern int  rs_open(struct tty_struct * tty, struct file * filp);
tty328include/linux/tty.hextern int  pty_open(struct tty_struct * tty, struct file * filp);
tty332include/linux/tty.hextern int con_open(struct tty_struct * tty, struct file * filp);
tty337include/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,
tty536kernel/sys.ccurrent->tty = NULL;