taglinefilesource code
tty931drivers/char/console.cstatic void respond_string(const char * p, struct tty_struct * tty)
tty934drivers/char/console.ctty_insert_flip_char(tty, *p, 0);
tty937drivers/char/console.ctty_schedule_flip(tty);
tty940drivers/char/console.cstatic void cursor_report(int currcons, struct tty_struct * tty)
tty945drivers/char/console.crespond_string(buf, tty);
tty948drivers/char/console.cstatic inline void status_report(struct tty_struct * tty)
tty950drivers/char/console.crespond_string("\033[0n", tty);  /* Terminal ok */
tty953drivers/char/console.cstatic inline void respond_ID(struct tty_struct * tty)
tty955drivers/char/console.crespond_string(VT102ID, tty);
tty958drivers/char/console.cvoid mouse_report(struct tty_struct * tty, int butt, int mrx, int mry)
tty964drivers/char/console.crespond_string(buf, tty);
tty1341drivers/char/console.cstatic void con_stop(struct tty_struct *tty)
tty1344drivers/char/console.cif (!tty)
tty1346drivers/char/console.cconsole_num = MINOR(tty->device) - (tty->driver.minor_start);
tty1356drivers/char/console.cstatic void con_start(struct tty_struct *tty)
tty1359drivers/char/console.cif (!tty)
tty1361drivers/char/console.cconsole_num = MINOR(tty->device) - (tty->driver.minor_start);
tty1368drivers/char/console.cstatic int con_write(struct tty_struct * tty, int from_user,
tty1373drivers/char/console.cstruct vt_struct *vt = (struct vt_struct *)tty->driver_data;
tty1390drivers/char/console.cwhile (!tty->stopped &&  count) {
tty1558drivers/char/console.crespond_ID(tty);
tty1649drivers/char/console.cstatus_report(tty);
tty1651drivers/char/console.ccursor_report(currcons,tty);
tty1713drivers/char/console.crespond_ID(tty);
tty1827drivers/char/console.cstatic int con_write_room(struct tty_struct *tty)
tty1829drivers/char/console.cif (tty->stopped)
tty1834drivers/char/console.cstatic int con_chars_in_buffer(struct tty_struct *tty)
tty1907drivers/char/console.cstatic void con_throttle(struct tty_struct *tty)
tty1911drivers/char/console.cstatic void con_unthrottle(struct tty_struct *tty)
tty1913drivers/char/console.cstruct vt_struct *vt = (struct vt_struct *) tty->driver_data;
tty2247drivers/char/console.cint con_open(struct tty_struct *tty, struct file * filp)
tty2252drivers/char/console.cidx = MINOR(tty->device) - tty->driver.minor_start;
tty2259drivers/char/console.ctty->driver_data = vt_cons[idx];
tty2261drivers/char/console.cif (!tty->winsize.ws_row && !tty->winsize.ws_col) {
tty2262drivers/char/console.ctty->winsize.ws_row = video_num_lines;
tty2263drivers/char/console.ctty->winsize.ws_col = video_num_columns;
tty521drivers/char/cyclades.ccy_stop(struct tty_struct *tty)
tty524drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty533drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_stop"))
tty553drivers/char/cyclades.ccy_start(struct tty_struct *tty)
tty556drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty565drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_start"))
tty642drivers/char/cyclades.cstruct tty_struct *tty;
tty697drivers/char/cyclades.cif(info->tty == 0){
tty708drivers/char/cyclades.ctty = info->tty;
tty715drivers/char/cyclades.cif (tty->flip.count < TTY_FLIPBUF_SIZE){
tty716drivers/char/cyclades.ctty->flip.count++;
tty719drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ =
tty721drivers/char/cyclades.c*tty->flip.char_buf_ptr++ =
tty724drivers/char/cyclades.cdo_SAK(tty);
tty727drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ =
tty729drivers/char/cyclades.c*tty->flip.char_buf_ptr++ =
tty732drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ =
tty734drivers/char/cyclades.c*tty->flip.char_buf_ptr++ =
tty737drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ =
tty739drivers/char/cyclades.c*tty->flip.char_buf_ptr++ = 0;
tty744drivers/char/cyclades.cif(tty->flip.count < TTY_FLIPBUF_SIZE){
tty745drivers/char/cyclades.ctty->flip.count++;
tty746drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ =
tty748drivers/char/cyclades.c*tty->flip.char_buf_ptr++ =
tty756drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ = 0;
tty757drivers/char/cyclades.c*tty->flip.char_buf_ptr++ = 0;
tty760drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ = 0;
tty761drivers/char/cyclades.c*tty->flip.char_buf_ptr++ = 0;
tty779drivers/char/cyclades.cif (tty->flip.count >= TTY_FLIPBUF_SIZE){
tty782drivers/char/cyclades.ctty->flip.count++;
tty784drivers/char/cyclades.c*tty->flip.flag_buf_ptr++ = TTY_NORMAL;
tty785drivers/char/cyclades.c*tty->flip.char_buf_ptr++ = data;
tty791drivers/char/cyclades.cqueue_task_irq_off(&tty->flip.tqueue, &tq_timer);
tty817drivers/char/cyclades.cif(info->tty == 0){
tty862drivers/char/cyclades.cif (info->tty->stopped || info->tty->hw_stopped){
tty920drivers/char/cyclades.cif(info->tty == 0){ /* nowhere to put the data, ignore it */
tty936drivers/char/cyclades.cif(info->tty->stopped){
tty939drivers/char/cyclades.cinfo->tty->stopped = 0;
tty946drivers/char/cyclades.cinfo->tty->stopped = 1;
tty1001drivers/char/cyclades.cstruct tty_struct    *tty;
tty1003drivers/char/cyclades.ctty = info->tty;
tty1004drivers/char/cyclades.cif (!tty)
tty1008drivers/char/cyclades.ctty_hangup(info->tty);
tty1017drivers/char/cyclades.cif((tty->flags & (1<< TTY_DO_WRITE_WAKEUP))
tty1018drivers/char/cyclades.c&& tty->ldisc.write_wakeup){
tty1019drivers/char/cyclades.c(tty->ldisc.write_wakeup)(tty);
tty1021drivers/char/cyclades.cwake_up_interruptible(&tty->write_wait);
tty1193drivers/char/cyclades.cif (info->tty){
tty1194drivers/char/cyclades.cset_bit(TTY_IO_ERROR, &info->tty->flags);
tty1242drivers/char/cyclades.cif (info->tty){
tty1243drivers/char/cyclades.cclear_bit(TTY_IO_ERROR, &info->tty->flags);
tty1320drivers/char/cyclades.cif (!info->tty || (info->tty->termios->c_cflag & HUPCL)) {
tty1332drivers/char/cyclades.cif (info->tty){
tty1333drivers/char/cyclades.cset_bit(TTY_IO_ERROR, &info->tty->flags);
tty1356drivers/char/cyclades.cif (!info->tty || !info->tty->termios){
tty1362drivers/char/cyclades.ccflag = info->tty->termios->c_cflag;
tty1385drivers/char/cyclades.cinfo->tty->termios->c_cflag &= ~CBAUDEX;
tty1488drivers/char/cyclades.cbase_addr[CySCHR1<<index] = START_CHAR(info->tty);
tty1489drivers/char/cyclades.cbase_addr[CySCHR2<<index] = STOP_CHAR(info->tty);
tty1504drivers/char/cyclades.cif (C_CLOCAL(info->tty)) {
tty1532drivers/char/cyclades.cif (info->tty){
tty1533drivers/char/cyclades.cclear_bit(TTY_IO_ERROR, &info->tty->flags);
tty1542drivers/char/cyclades.ccy_put_char(struct tty_struct *tty, unsigned char ch)
tty1544drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1551drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_put_char"))
tty1554drivers/char/cyclades.cif (!tty || !info->xmit_buf)
tty1571drivers/char/cyclades.ccy_flush_chars(struct tty_struct *tty)
tty1573drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1582drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_flush_chars"))
tty1585drivers/char/cyclades.cif (info->xmit_cnt <= 0 || tty->stopped
tty1586drivers/char/cyclades.c|| tty->hw_stopped || !info->xmit_buf)
tty1611drivers/char/cyclades.ccy_write(struct tty_struct * tty, int from_user,
tty1614drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1622drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_write")){
tty1626drivers/char/cyclades.cif (!tty || !info->xmit_buf || !tmp_buf){
tty1658drivers/char/cyclades.c&& !tty->stopped
tty1659drivers/char/cyclades.c&& !tty->hw_stopped ) {
tty1667drivers/char/cyclades.ccy_write_room(struct tty_struct *tty)
tty1669drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1676drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_write_room"))
tty1686drivers/char/cyclades.ccy_chars_in_buffer(struct tty_struct *tty)
tty1688drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1694drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_chars_in_buffer"))
tty1702drivers/char/cyclades.ccy_flush_buffer(struct tty_struct *tty)
tty1704drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1711drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_flush_buffer"))
tty1716drivers/char/cyclades.cwake_up_interruptible(&tty->write_wait);
tty1717drivers/char/cyclades.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP))
tty1718drivers/char/cyclades.c&& tty->ldisc.write_wakeup)
tty1719drivers/char/cyclades.c(tty->ldisc.write_wakeup)(tty);
tty1728drivers/char/cyclades.ccy_throttle(struct tty_struct * tty)
tty1730drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1738drivers/char/cyclades.cprintk("throttle %s: %d....\n", _tty_name(tty, buf),
tty1739drivers/char/cyclades.ctty->ldisc.chars_in_buffer(tty));
tty1743drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_nthrottle")){
tty1747drivers/char/cyclades.cif (I_IXOFF(tty)) {
tty1748drivers/char/cyclades.cinfo->x_char = STOP_CHAR(tty);
tty1770drivers/char/cyclades.ccy_unthrottle(struct tty_struct * tty)
tty1772drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty1780drivers/char/cyclades.cprintk("throttle %s: %d....\n", _tty_name(tty, buf),
tty1781drivers/char/cyclades.ctty->ldisc.chars_in_buffer(tty));
tty1785drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_nthrottle")){
tty1789drivers/char/cyclades.cif (I_IXOFF(tty)) {
tty1790drivers/char/cyclades.cinfo->x_char = START_CHAR(tty);
tty2137drivers/char/cyclades.ccy_ioctl(struct tty_struct *tty, struct file * file,
tty2141drivers/char/cyclades.cstruct cyclades_port * info = (struct cyclades_port *)tty->driver_data;
tty2207drivers/char/cyclades.cret_val = tty_check_change(tty);
tty2210drivers/char/cyclades.ctty_wait_until_sent(tty,0);
tty2215drivers/char/cyclades.cret_val = tty_check_change(tty);
tty2218drivers/char/cyclades.ctty_wait_until_sent(tty,0);
tty2235drivers/char/cyclades.cput_fs_long(C_CLOCAL(tty) ? 1 : 0,
tty2240drivers/char/cyclades.ctty->termios->c_cflag =
tty2241drivers/char/cyclades.c((tty->termios->c_cflag & ~CLOCAL) |
tty2282drivers/char/cyclades.ccy_set_termios(struct tty_struct *tty, struct termios * old_termios)
tty2284drivers/char/cyclades.cstruct cyclades_port *info = (struct cyclades_port *)tty->driver_data;
tty2290drivers/char/cyclades.cif (tty->termios->c_cflag == old_termios->c_cflag)
tty2295drivers/char/cyclades.c!(tty->termios->c_cflag & CRTSCTS)) {
tty2296drivers/char/cyclades.ctty->stopped = 0;
tty2297drivers/char/cyclades.ccy_start(tty);
tty2301drivers/char/cyclades.c(tty->termios->c_cflag & CLOCAL))
tty2310drivers/char/cyclades.ccy_close(struct tty_struct * tty, struct file * filp)
tty2312drivers/char/cyclades.cstruct cyclades_port * info = (struct cyclades_port *)tty->driver_data;
tty2321drivers/char/cyclades.c|| serial_paranoia_check(info, tty->device, "cy_close")){
tty2336drivers/char/cyclades.cif ((tty->count == 1) && (info->count != 1)) {
tty2369drivers/char/cyclades.cinfo->normal_termios = *tty->termios;
tty2371drivers/char/cyclades.cinfo->callout_termios = *tty->termios;
tty2373drivers/char/cyclades.ctty_wait_until_sent(tty, 3000); /* 30 seconds timeout */
tty2375drivers/char/cyclades.cif (tty->driver.flush_buffer)
tty2376drivers/char/cyclades.ctty->driver.flush_buffer(tty);
tty2377drivers/char/cyclades.cif (tty->ldisc.flush_buffer)
tty2378drivers/char/cyclades.ctty->ldisc.flush_buffer(tty);
tty2380drivers/char/cyclades.cinfo->tty = 0;
tty2406drivers/char/cyclades.ccy_hangup(struct tty_struct *tty)
tty2408drivers/char/cyclades.cstruct cyclades_port * info = (struct cyclades_port *)tty->driver_data;
tty2414drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_hangup"))
tty2423drivers/char/cyclades.cinfo->tty = 0;
tty2437drivers/char/cyclades.cblock_til_ready(struct tty_struct *tty, struct file * filp,
tty2464drivers/char/cyclades.cif (tty->driver.subtype == SERIAL_TYPE_CALLOUT) {
tty2548drivers/char/cyclades.c&& (C_CLOCAL(tty)
tty2588drivers/char/cyclades.ccy_open(struct tty_struct *tty, struct file * filp)
tty2594drivers/char/cyclades.cline = MINOR(tty->device) - tty->driver.minor_start;
tty2605drivers/char/cyclades.cif (serial_paranoia_check(info, tty->device, "cy_open")){
tty2615drivers/char/cyclades.ctty->driver_data = info;
tty2616drivers/char/cyclades.cinfo->tty = tty;
tty2626drivers/char/cyclades.cif (tty->driver.subtype == SERIAL_TYPE_NORMAL)
tty2627drivers/char/cyclades.c*tty->termios = info->normal_termios;
tty2629drivers/char/cyclades.c*tty->termios = info->callout_termios;
tty2639drivers/char/cyclades.cretval = block_til_ready(tty, filp, info);
tty2871drivers/char/cyclades.cinfo->tty = 0;
tty3143drivers/char/cyclades.c(long)info->tty, info->read_status_mask,
tty265drivers/char/istallion.cstruct tty_struct  *tty;
tty619drivers/char/istallion.cstatic int  stli_open(struct tty_struct *tty, struct file *filp);
tty620drivers/char/istallion.cstatic void  stli_close(struct tty_struct *tty, struct file *filp);
tty621drivers/char/istallion.cstatic int  stli_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count);
tty622drivers/char/istallion.cstatic void  stli_putchar(struct tty_struct *tty, unsigned char ch);
tty623drivers/char/istallion.cstatic void  stli_flushchars(struct tty_struct *tty);
tty624drivers/char/istallion.cstatic int  stli_writeroom(struct tty_struct *tty);
tty625drivers/char/istallion.cstatic int  stli_charsinbuffer(struct tty_struct *tty);
tty626drivers/char/istallion.cstatic int  stli_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg);
tty627drivers/char/istallion.cstatic void  stli_settermios(struct tty_struct *tty, struct termios *old);
tty628drivers/char/istallion.cstatic void  stli_throttle(struct tty_struct *tty);
tty629drivers/char/istallion.cstatic void  stli_unthrottle(struct tty_struct *tty);
tty630drivers/char/istallion.cstatic void  stli_stop(struct tty_struct *tty);
tty631drivers/char/istallion.cstatic void  stli_start(struct tty_struct *tty);
tty632drivers/char/istallion.cstatic void  stli_flushbuffer(struct tty_struct *tty);
tty633drivers/char/istallion.cstatic void  stli_hangup(struct tty_struct *tty);
tty816drivers/char/istallion.cif (portp->tty != (struct tty_struct *) NULL)
tty817drivers/char/istallion.ctty_hangup(portp->tty);
tty852drivers/char/istallion.cstatic int stli_open(struct tty_struct *tty, struct file *filp)
tty860drivers/char/istallion.cprintk("stli_open(tty=%x,filp=%x): device=%x\n", (int) tty, (int) filp, tty->device);
tty863drivers/char/istallion.cminordev = MINOR(tty->device);
tty901drivers/char/istallion.cportp->tty = tty;
tty902drivers/char/istallion.ctty->driver_data = portp;
tty915drivers/char/istallion.cclear_bit(TTY_IO_ERROR, &tty->flags);
tty941drivers/char/istallion.cif (tty->driver.subtype == STL_DRVTYPCALLOUT) {
tty965drivers/char/istallion.cif (tty->driver.subtype == STL_DRVTYPSERIAL)
tty966drivers/char/istallion.c*tty->termios = portp->normaltermios;
tty968drivers/char/istallion.c*tty->termios = portp->callouttermios;
tty979drivers/char/istallion.cstatic void stli_close(struct tty_struct *tty, struct file *filp)
tty986drivers/char/istallion.cprintk("stli_close(tty=%x,filp=%x)\n", (int) tty, (int) filp);
tty989drivers/char/istallion.cportp = tty->driver_data;
tty1007drivers/char/istallion.cportp->normaltermios = *tty->termios;
tty1009drivers/char/istallion.cportp->callouttermios = *tty->termios;
tty1017drivers/char/istallion.cif (tty == stli_txcooktty)
tty1018drivers/char/istallion.cstli_flushchars(tty);
tty1019drivers/char/istallion.ctty->closing = 1;
tty1022drivers/char/istallion.ctty_wait_until_sent(tty, portp->closing_wait);
tty1028drivers/char/istallion.cif (tty->termios->c_cflag & HUPCL) {
tty1037drivers/char/istallion.cset_bit(TTY_IO_ERROR, &tty->flags);
tty1038drivers/char/istallion.cif (tty->ldisc.flush_buffer)
tty1039drivers/char/istallion.c(tty->ldisc.flush_buffer)(tty);
tty1041drivers/char/istallion.cstli_flushbuffer(tty);
tty1043drivers/char/istallion.ctty->closing = 0;
tty1044drivers/char/istallion.ctty->driver_data = (void *) NULL;
tty1045drivers/char/istallion.cportp->tty = (struct tty_struct *) NULL;
tty1070drivers/char/istallion.cstruct tty_struct  *tty;
tty1088drivers/char/istallion.ctty = portp->tty;
tty1089drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1091drivers/char/istallion.cstli_mkasyport(portp, &aport, tty->termios);
tty1324drivers/char/istallion.cif (portp->tty == (struct tty_struct *) NULL)
tty1332drivers/char/istallion.cstli_mkasyport(portp, &aport, portp->tty->termios);
tty1395drivers/char/istallion.c((portp->tty->termios->c_cflag & CLOCAL) ||
tty1422drivers/char/istallion.cstatic int stli_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count)
tty1434drivers/char/istallion.cprintk("stli_write(tty=%x,from_user=%d,buf=%x,count=%d)\n", (int) tty, from_user, (int) buf, count);
tty1437drivers/char/istallion.cif ((tty == (struct tty_struct *) NULL) || (stli_tmpwritebuf == (char *) NULL))
tty1439drivers/char/istallion.cif (tty == stli_txcooktty)
tty1440drivers/char/istallion.cstli_flushchars(tty);
tty1441drivers/char/istallion.cportp = tty->driver_data;
tty1547drivers/char/istallion.cstatic void stli_putchar(struct tty_struct *tty, unsigned char ch)
tty1550drivers/char/istallion.cprintk("stli_putchar(tty=%x,ch=%x)\n", (int) tty, (int) ch);
tty1553drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1555drivers/char/istallion.cif (tty != stli_txcooktty) {
tty1558drivers/char/istallion.cstli_txcooktty = tty;
tty1574drivers/char/istallion.cstatic void stli_flushchars(struct tty_struct *tty)
tty1587drivers/char/istallion.cprintk("stli_flushchars(tty=%x)\n", (int) tty);
tty1596drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1600drivers/char/istallion.cif (tty != cooktty)
tty1601drivers/char/istallion.ctty = cooktty;
tty1605drivers/char/istallion.cportp = tty->driver_data;
tty1669drivers/char/istallion.cstatic int stli_writeroom(struct tty_struct *tty)
tty1678drivers/char/istallion.cprintk("stli_writeroom(tty=%x)\n", (int) tty);
tty1681drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1683drivers/char/istallion.cif (tty == stli_txcooktty) {
tty1690drivers/char/istallion.cportp = tty->driver_data;
tty1712drivers/char/istallion.cif (tty == stli_txcooktty) {
tty1729drivers/char/istallion.cstatic int stli_charsinbuffer(struct tty_struct *tty)
tty1738drivers/char/istallion.cprintk("stli_charsinbuffer(tty=%x)\n", (int) tty);
tty1741drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1743drivers/char/istallion.cif (tty == stli_txcooktty)
tty1744drivers/char/istallion.cstli_flushchars(tty);
tty1745drivers/char/istallion.cportp = tty->driver_data;
tty1843drivers/char/istallion.cstatic int stli_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg)
tty1851drivers/char/istallion.cprintk("stli_ioctl(tty=%x,file=%x,cmd=%x,arg=%x)\n", (int) tty, (int) file, cmd, (int) arg);
tty1854drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1856drivers/char/istallion.cportp = tty->driver_data;
tty1869drivers/char/istallion.cif ((rc = tty_check_change(tty)) == 0) {
tty1870drivers/char/istallion.ctty_wait_until_sent(tty, 0);
tty1878drivers/char/istallion.cif ((rc = tty_check_change(tty)) == 0) {
tty1879drivers/char/istallion.ctty_wait_until_sent(tty, 0);
tty1886drivers/char/istallion.cput_fs_long(((tty->termios->c_cflag & CLOCAL) ? 1 : 0), (unsigned long *) arg);
tty1891drivers/char/istallion.ctty->termios->c_cflag = (tty->termios->c_cflag & ~CLOCAL) | (arg ? CLOCAL : 0);
tty1963drivers/char/istallion.cstatic void stli_settermios(struct tty_struct *tty, struct termios *old)
tty1971drivers/char/istallion.cprintk("stli_settermios(tty=%x,old=%x)\n", (int) tty, (int) old);
tty1974drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty1976drivers/char/istallion.cportp = tty->driver_data;
tty1985drivers/char/istallion.ctiosp = tty->termios;
tty1994drivers/char/istallion.ctty->hw_stopped = 0;
tty2011drivers/char/istallion.cstatic void stli_throttle(struct tty_struct *tty)
tty2016drivers/char/istallion.cprintk("stli_throttle(tty=%x)\n", (int) tty);
tty2019drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty2021drivers/char/istallion.cportp = tty->driver_data;
tty2036drivers/char/istallion.cstatic void stli_unthrottle(struct tty_struct *tty)
tty2041drivers/char/istallion.cprintk("stli_unthrottle(tty=%x)\n", (int) tty);
tty2044drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty2046drivers/char/istallion.cportp = tty->driver_data;
tty2060drivers/char/istallion.cstatic void stli_stop(struct tty_struct *tty)
tty2067drivers/char/istallion.cprintk("stli_stop(tty=%x)\n", (int) tty);
tty2070drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty2072drivers/char/istallion.cportp = tty->driver_data;
tty2094drivers/char/istallion.cstatic void stli_start(struct tty_struct *tty)
tty2101drivers/char/istallion.cprintk("stli_start(tty=%x)\n", (int) tty);
tty2104drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty2106drivers/char/istallion.cportp = tty->driver_data;
tty2144drivers/char/istallion.cif (portp->tty == (struct tty_struct *) NULL)
tty2146drivers/char/istallion.ctty_hangup(portp->tty);
tty2158drivers/char/istallion.cstatic void stli_hangup(struct tty_struct *tty)
tty2165drivers/char/istallion.cprintk("stli_hangup(tty=%x)\n", (int) tty);
tty2168drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty2170drivers/char/istallion.cportp = tty->driver_data;
tty2185drivers/char/istallion.cif (tty->termios->c_cflag & HUPCL) {
tty2199drivers/char/istallion.cset_bit(TTY_IO_ERROR, &tty->flags);
tty2200drivers/char/istallion.ctty->driver_data = (void *) NULL;
tty2201drivers/char/istallion.cportp->tty = (struct tty_struct *) NULL;
tty2216drivers/char/istallion.cstatic void stli_flushbuffer(struct tty_struct *tty)
tty2223drivers/char/istallion.cprintk("stli_flushbuffer(tty=%x)\n", (int) tty);
tty2226drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty2228drivers/char/istallion.cportp = tty->driver_data;
tty2239drivers/char/istallion.cif (tty == stli_txcooktty) {
tty2256drivers/char/istallion.cwake_up_interruptible(&tty->write_wait);
tty2257drivers/char/istallion.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && tty->ldisc.write_wakeup)
tty2258drivers/char/istallion.c(tty->ldisc.write_wakeup)(tty);
tty2327drivers/char/istallion.cstruct tty_struct  *tty;
tty2337drivers/char/istallion.ctty = portp->tty;
tty2338drivers/char/istallion.cif (tty == (struct tty_struct *) NULL)
tty2355drivers/char/istallion.clen = MIN(len, (TTY_FLIPBUF_SIZE - tty->flip.count));
tty2360drivers/char/istallion.cmemcpy(tty->flip.char_buf_ptr, (char *) (shbuf + tail), stlen);
tty2361drivers/char/istallion.cmemset(tty->flip.flag_buf_ptr, 0, stlen);
tty2362drivers/char/istallion.ctty->flip.char_buf_ptr += stlen;
tty2363drivers/char/istallion.ctty->flip.flag_buf_ptr += stlen;
tty2364drivers/char/istallion.ctty->flip.count += stlen;
tty2379drivers/char/istallion.ctty_schedule_flip(tty);
tty2436drivers/char/istallion.cstruct tty_struct  *tty;
tty2511drivers/char/istallion.ctty = portp->tty;
tty2522drivers/char/istallion.cif (tty != (struct tty_struct *) NULL)
tty2531drivers/char/istallion.cif (tty != (struct tty_struct *) NULL) {
tty2532drivers/char/istallion.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && tty->ldisc.write_wakeup)
tty2533drivers/char/istallion.c(tty->ldisc.write_wakeup)(tty);
tty2534drivers/char/istallion.cwake_up_interruptible(&tty->write_wait);
tty2539drivers/char/istallion.cif (tty != (struct tty_struct *) NULL) {
tty2540drivers/char/istallion.cif (tty->flip.count < TTY_FLIPBUF_SIZE) {
tty2541drivers/char/istallion.ctty->flip.count++;
tty2542drivers/char/istallion.c*tty->flip.flag_buf_ptr++ = TTY_BREAK;
tty2543drivers/char/istallion.c*tty->flip.char_buf_ptr++ = 0;
tty2546drivers/char/istallion.cdo_SAK(tty);
tty2548drivers/char/istallion.ctty_schedule_flip(tty);
tty116drivers/char/keyboard.cstatic struct tty_struct * tty = NULL;
tty381drivers/char/keyboard.ctty = ttytab[fg_console];
tty530drivers/char/keyboard.c(vc_kbd_mode(kbd,VC_REPEAT) && tty &&
tty531drivers/char/keyboard.c(L_ECHO(tty) || (tty->driver.chars_in_buffer(tty) == 0)))) {
tty582drivers/char/keyboard.cif (tty) {
tty583drivers/char/keyboard.ctty_insert_flip_char(tty, ch, 0);
tty584drivers/char/keyboard.ctty_schedule_flip(tty);
tty591drivers/char/keyboard.cif (!tty)
tty595drivers/char/keyboard.ctty_insert_flip_char(tty, *cp, 0);
tty598drivers/char/keyboard.ctty_schedule_flip(tty);
tty639drivers/char/keyboard.cif (rep || !tty)
tty647drivers/char/keyboard.cif (tty->stopped)
tty648drivers/char/keyboard.cstart_tty(tty);
tty650drivers/char/keyboard.cstop_tty(tty);
tty707drivers/char/keyboard.cif (!tty)
tty709drivers/char/keyboard.ctty_insert_flip_char(tty, 0, TTY_BREAK);
tty710drivers/char/keyboard.ctty_schedule_flip(tty);
tty744drivers/char/keyboard.cdo_SAK(tty);
tty58drivers/char/n_tty.cstatic inline void put_tty_queue(unsigned char c, struct tty_struct *tty)
tty60drivers/char/n_tty.cif (tty->read_cnt < N_TTY_BUF_SIZE) {
tty61drivers/char/n_tty.ctty->read_buf[tty->read_head] = c;
tty62drivers/char/n_tty.ctty->read_head = (tty->read_head + 1) & (N_TTY_BUF_SIZE-1);
tty63drivers/char/n_tty.ctty->read_cnt++;
tty70drivers/char/n_tty.cvoid n_tty_flush_buffer(struct tty_struct * tty)
tty72drivers/char/n_tty.ctty->read_head = tty->read_tail = tty->read_cnt = 0;
tty73drivers/char/n_tty.ctty->canon_head = tty->canon_data = tty->erasing = 0;
tty74drivers/char/n_tty.cmemset(&tty->read_flags, 0, sizeof tty->read_flags);
tty76drivers/char/n_tty.cif (!tty->link)
tty79drivers/char/n_tty.cif (tty->driver.unthrottle)
tty80drivers/char/n_tty.c(tty->driver.unthrottle)(tty);
tty81drivers/char/n_tty.cif (tty->link->packet) {
tty82drivers/char/n_tty.ctty->ctrl_status |= TIOCPKT_FLUSHREAD;
tty83drivers/char/n_tty.cwake_up_interruptible(&tty->link->read_wait);
tty90drivers/char/n_tty.cint n_tty_chars_in_buffer(struct tty_struct *tty)
tty92drivers/char/n_tty.creturn tty->read_cnt;
tty99drivers/char/n_tty.cstatic int opost(unsigned char c, struct tty_struct *tty)
tty103drivers/char/n_tty.cspace = tty->driver.write_room(tty);
tty107drivers/char/n_tty.cif (O_OPOST(tty)) {
tty110drivers/char/n_tty.cif (O_ONLRET(tty))
tty111drivers/char/n_tty.ctty->column = 0;
tty112drivers/char/n_tty.cif (O_ONLCR(tty)) {
tty115drivers/char/n_tty.ctty->driver.put_char(tty, '\r');
tty116drivers/char/n_tty.ctty->column = 0;
tty118drivers/char/n_tty.ctty->canon_column = tty->column;
tty121drivers/char/n_tty.cif (O_ONOCR(tty) && tty->column == 0)
tty123drivers/char/n_tty.cif (O_OCRNL(tty)) {
tty125drivers/char/n_tty.cif (O_ONLRET(tty))
tty126drivers/char/n_tty.ctty->canon_column = tty->column = 0;
tty129drivers/char/n_tty.ctty->canon_column = tty->column = 0;
tty132drivers/char/n_tty.cspaces = 8 - (tty->column & 7);
tty133drivers/char/n_tty.cif (O_TABDLY(tty) == XTABS) {
tty136drivers/char/n_tty.ctty->column += spaces;
tty137drivers/char/n_tty.ctty->driver.write(tty, 0, "        ", spaces);
tty140drivers/char/n_tty.ctty->column += spaces;
tty143drivers/char/n_tty.cif (tty->column > 0)
tty144drivers/char/n_tty.ctty->column--;
tty147drivers/char/n_tty.cif (O_OLCUC(tty))
tty150drivers/char/n_tty.ctty->column++;
tty154drivers/char/n_tty.ctty->driver.put_char(tty, c);
tty158drivers/char/n_tty.cstatic inline void put_char(unsigned char c, struct tty_struct *tty)
tty160drivers/char/n_tty.ctty->driver.put_char(tty, c);
tty165drivers/char/n_tty.cstatic void echo_char(unsigned char c, struct tty_struct *tty)
tty167drivers/char/n_tty.cif (L_ECHOCTL(tty) && iscntrl(c) && c != '\t') {
tty168drivers/char/n_tty.cput_char('^', tty);
tty169drivers/char/n_tty.cput_char(c ^ 0100, tty);
tty170drivers/char/n_tty.ctty->column += 2;
tty172drivers/char/n_tty.copost(c, tty);
tty175drivers/char/n_tty.cstatic inline void finish_erasing(struct tty_struct *tty)
tty177drivers/char/n_tty.cif (tty->erasing) {
tty178drivers/char/n_tty.cput_char('/', tty);
tty179drivers/char/n_tty.ctty->column += 2;
tty180drivers/char/n_tty.ctty->erasing = 0;
tty184drivers/char/n_tty.cstatic void eraser(unsigned char c, struct tty_struct *tty)
tty189drivers/char/n_tty.cif (tty->read_head == tty->canon_head) {
tty193drivers/char/n_tty.cif (c == ERASE_CHAR(tty))
tty195drivers/char/n_tty.celse if (c == WERASE_CHAR(tty))
tty198drivers/char/n_tty.cif (!L_ECHO(tty)) {
tty199drivers/char/n_tty.ctty->read_cnt -= ((tty->read_head - tty->canon_head) &
tty201drivers/char/n_tty.ctty->read_head = tty->canon_head;
tty204drivers/char/n_tty.cif (!L_ECHOK(tty) || !L_ECHOKE(tty)) {
tty205drivers/char/n_tty.ctty->read_cnt -= ((tty->read_head - tty->canon_head) &
tty207drivers/char/n_tty.ctty->read_head = tty->canon_head;
tty208drivers/char/n_tty.cfinish_erasing(tty);
tty209drivers/char/n_tty.cecho_char(KILL_CHAR(tty), tty);
tty211drivers/char/n_tty.cif (L_ECHOK(tty))
tty212drivers/char/n_tty.copost('\n', tty);
tty219drivers/char/n_tty.cwhile (tty->read_head != tty->canon_head) {
tty220drivers/char/n_tty.chead = (tty->read_head - 1) & (N_TTY_BUF_SIZE-1);
tty221drivers/char/n_tty.cc = tty->read_buf[head];
tty229drivers/char/n_tty.ctty->read_head = head;
tty230drivers/char/n_tty.ctty->read_cnt--;
tty231drivers/char/n_tty.cif (L_ECHO(tty)) {
tty232drivers/char/n_tty.cif (L_ECHOPRT(tty)) {
tty233drivers/char/n_tty.cif (!tty->erasing) {
tty234drivers/char/n_tty.cput_char('\\', tty);
tty235drivers/char/n_tty.ctty->column++;
tty236drivers/char/n_tty.ctty->erasing = 1;
tty238drivers/char/n_tty.cecho_char(c, tty);
tty239drivers/char/n_tty.c} else if (!L_ECHOE(tty)) {
tty240drivers/char/n_tty.cecho_char(ERASE_CHAR(tty), tty);
tty242drivers/char/n_tty.cunsigned int col = tty->canon_column;
tty243drivers/char/n_tty.cunsigned long tail = tty->canon_head;
tty246drivers/char/n_tty.cwhile (tail != tty->read_head) {
tty247drivers/char/n_tty.cc = tty->read_buf[tail];
tty251drivers/char/n_tty.cif (L_ECHOCTL(tty))
tty259drivers/char/n_tty.cif (tty->column > 0x80000000)
tty260drivers/char/n_tty.ctty->column = 0; 
tty263drivers/char/n_tty.cwhile (tty->column > col) {
tty265drivers/char/n_tty.cput_char('\b', tty);
tty266drivers/char/n_tty.cif (tty->column > 0)
tty267drivers/char/n_tty.ctty->column--;
tty270drivers/char/n_tty.cif (iscntrl(c) && L_ECHOCTL(tty)) {
tty271drivers/char/n_tty.cput_char('\b', tty);
tty272drivers/char/n_tty.cput_char(' ', tty);
tty273drivers/char/n_tty.cput_char('\b', tty);
tty274drivers/char/n_tty.cif (tty->column > 0)
tty275drivers/char/n_tty.ctty->column--;
tty277drivers/char/n_tty.cif (!iscntrl(c) || L_ECHOCTL(tty)) {
tty278drivers/char/n_tty.cput_char('\b', tty);
tty279drivers/char/n_tty.cput_char(' ', tty);
tty280drivers/char/n_tty.cput_char('\b', tty);
tty281drivers/char/n_tty.cif (tty->column > 0)
tty282drivers/char/n_tty.ctty->column--;
tty289drivers/char/n_tty.cif (tty->read_head == tty->canon_head)
tty290drivers/char/n_tty.cfinish_erasing(tty);
tty293drivers/char/n_tty.cstatic void isig(int sig, struct tty_struct *tty)
tty295drivers/char/n_tty.cif (tty->pgrp > 0)
tty296drivers/char/n_tty.ckill_pg(tty->pgrp, sig, 1);
tty297drivers/char/n_tty.cif (!L_NOFLSH(tty)) {
tty298drivers/char/n_tty.cn_tty_flush_buffer(tty);
tty299drivers/char/n_tty.cif (tty->driver.flush_buffer)
tty300drivers/char/n_tty.ctty->driver.flush_buffer(tty);
tty304drivers/char/n_tty.cstatic inline void n_tty_receive_break(struct tty_struct *tty)
tty306drivers/char/n_tty.cif (I_IGNBRK(tty))
tty308drivers/char/n_tty.cif (I_BRKINT(tty)) {
tty309drivers/char/n_tty.cisig(SIGINT, tty);
tty312drivers/char/n_tty.cif (I_PARMRK(tty)) {
tty313drivers/char/n_tty.cput_tty_queue('\377', tty);
tty314drivers/char/n_tty.cput_tty_queue('\0', tty);
tty316drivers/char/n_tty.cput_tty_queue('\0', tty);
tty317drivers/char/n_tty.cwake_up_interruptible(&tty->read_wait);
tty320drivers/char/n_tty.cstatic inline void n_tty_receive_overrun(struct tty_struct *tty)
tty324drivers/char/n_tty.ctty->num_overrun++;
tty325drivers/char/n_tty.cif (tty->overrun_time < (jiffies - HZ)) {
tty326drivers/char/n_tty.cprintk("%s: %d input overrun(s)\n", _tty_name(tty, buf),
tty327drivers/char/n_tty.ctty->num_overrun);
tty328drivers/char/n_tty.ctty->overrun_time = jiffies;
tty329drivers/char/n_tty.ctty->num_overrun = 0;
tty333drivers/char/n_tty.cstatic inline void n_tty_receive_parity_error(struct tty_struct *tty,
tty336drivers/char/n_tty.cif (I_IGNPAR(tty)) {
tty339drivers/char/n_tty.cif (I_PARMRK(tty)) {
tty340drivers/char/n_tty.cput_tty_queue('\377', tty);
tty341drivers/char/n_tty.cput_tty_queue('\0', tty);
tty342drivers/char/n_tty.cput_tty_queue(c, tty);
tty344drivers/char/n_tty.cput_tty_queue('\0', tty);
tty345drivers/char/n_tty.cwake_up_interruptible(&tty->read_wait);
tty348drivers/char/n_tty.cstatic inline void n_tty_receive_char(struct tty_struct *tty, unsigned char c)
tty350drivers/char/n_tty.cif (tty->raw) {
tty351drivers/char/n_tty.cput_tty_queue(c, tty);
tty355drivers/char/n_tty.cif (tty->stopped && I_IXON(tty) && I_IXANY(tty)) {
tty356drivers/char/n_tty.cstart_tty(tty);
tty360drivers/char/n_tty.cif (I_ISTRIP(tty))
tty362drivers/char/n_tty.cif (I_IUCLC(tty) && L_IEXTEN(tty))
tty365drivers/char/n_tty.cif (tty->closing) {
tty366drivers/char/n_tty.cif (I_IXON(tty)) {
tty367drivers/char/n_tty.cif (c == START_CHAR(tty))
tty368drivers/char/n_tty.cstart_tty(tty);
tty369drivers/char/n_tty.celse if (c == STOP_CHAR(tty))
tty370drivers/char/n_tty.cstop_tty(tty);
tty381drivers/char/n_tty.cif (!test_bit(c, &tty->process_char_map) || tty->lnext) {
tty382drivers/char/n_tty.cfinish_erasing(tty);
tty383drivers/char/n_tty.ctty->lnext = 0;
tty384drivers/char/n_tty.cif (L_ECHO(tty)) {
tty385drivers/char/n_tty.cif (tty->read_cnt >= N_TTY_BUF_SIZE-1) {
tty386drivers/char/n_tty.cput_char('\a', tty); /* beep if no space */
tty390drivers/char/n_tty.cif (tty->canon_head == tty->read_head)
tty391drivers/char/n_tty.ctty->canon_column = tty->column;
tty392drivers/char/n_tty.cecho_char(c, tty);
tty394drivers/char/n_tty.cif (I_PARMRK(tty) && c == (unsigned char) '\377')
tty395drivers/char/n_tty.cput_tty_queue(c, tty);
tty396drivers/char/n_tty.cput_tty_queue(c, tty);
tty401drivers/char/n_tty.cif (I_IGNCR(tty))
tty403drivers/char/n_tty.cif (I_ICRNL(tty))
tty405drivers/char/n_tty.c} else if (c == '\n' && I_INLCR(tty))
tty407drivers/char/n_tty.cif (I_IXON(tty)) {
tty408drivers/char/n_tty.cif (c == START_CHAR(tty)) {
tty409drivers/char/n_tty.cstart_tty(tty);
tty412drivers/char/n_tty.cif (c == STOP_CHAR(tty)) {
tty413drivers/char/n_tty.cstop_tty(tty);
tty417drivers/char/n_tty.cif (L_ISIG(tty)) {
tty418drivers/char/n_tty.cif (c == INTR_CHAR(tty)) {
tty419drivers/char/n_tty.cisig(SIGINT, tty);
tty422drivers/char/n_tty.cif (c == QUIT_CHAR(tty)) {
tty423drivers/char/n_tty.cisig(SIGQUIT, tty);
tty426drivers/char/n_tty.cif (c == SUSP_CHAR(tty)) {
tty427drivers/char/n_tty.cif (!is_orphaned_pgrp(tty->pgrp))
tty428drivers/char/n_tty.cisig(SIGTSTP, tty);
tty432drivers/char/n_tty.cif (L_ICANON(tty)) {
tty433drivers/char/n_tty.cif (c == ERASE_CHAR(tty) || c == KILL_CHAR(tty) ||
tty434drivers/char/n_tty.c(c == WERASE_CHAR(tty) && L_IEXTEN(tty))) {
tty435drivers/char/n_tty.ceraser(c, tty);
tty438drivers/char/n_tty.cif (c == LNEXT_CHAR(tty) && L_IEXTEN(tty)) {
tty439drivers/char/n_tty.ctty->lnext = 1;
tty440drivers/char/n_tty.cif (L_ECHO(tty)) {
tty441drivers/char/n_tty.cfinish_erasing(tty);
tty442drivers/char/n_tty.cif (L_ECHOCTL(tty)) {
tty443drivers/char/n_tty.cput_char('^', tty);
tty444drivers/char/n_tty.cput_char('\b', tty);
tty449drivers/char/n_tty.cif (c == REPRINT_CHAR(tty) && L_ECHO(tty) &&
tty450drivers/char/n_tty.cL_IEXTEN(tty)) {
tty451drivers/char/n_tty.cunsigned long tail = tty->canon_head;
tty453drivers/char/n_tty.cfinish_erasing(tty);
tty454drivers/char/n_tty.cecho_char(c, tty);
tty455drivers/char/n_tty.copost('\n', tty);
tty456drivers/char/n_tty.cwhile (tail != tty->read_head) {
tty457drivers/char/n_tty.cecho_char(tty->read_buf[tail], tty);
tty463drivers/char/n_tty.cif (L_ECHO(tty) || L_ECHONL(tty)) {
tty464drivers/char/n_tty.cif (tty->read_cnt >= N_TTY_BUF_SIZE-1) {
tty465drivers/char/n_tty.cput_char('\a', tty);
tty468drivers/char/n_tty.copost('\n', tty);
tty472drivers/char/n_tty.cif (c == EOF_CHAR(tty)) {
tty473drivers/char/n_tty.cif (tty->canon_head != tty->read_head)
tty474drivers/char/n_tty.cset_bit(TTY_PUSH, &tty->flags);
tty478drivers/char/n_tty.cif ((c == EOL_CHAR(tty)) ||
tty479drivers/char/n_tty.c(c == EOL2_CHAR(tty) && L_IEXTEN(tty))) {
tty483drivers/char/n_tty.cif (L_ECHO(tty)) {
tty484drivers/char/n_tty.cif (tty->read_cnt >= N_TTY_BUF_SIZE-1) {
tty485drivers/char/n_tty.cput_char('\a', tty);
tty489drivers/char/n_tty.cif (tty->canon_head == tty->read_head)
tty490drivers/char/n_tty.ctty->canon_column = tty->column;
tty491drivers/char/n_tty.cecho_char(c, tty);
tty497drivers/char/n_tty.cif (I_PARMRK(tty) && c == (unsigned char) '\377')
tty498drivers/char/n_tty.cput_tty_queue(c, tty);
tty501drivers/char/n_tty.cset_bit(tty->read_head, &tty->read_flags);
tty502drivers/char/n_tty.cput_tty_queue(c, tty);
tty503drivers/char/n_tty.ctty->canon_head = tty->read_head;
tty504drivers/char/n_tty.ctty->canon_data++;
tty505drivers/char/n_tty.cif (tty->fasync)
tty506drivers/char/n_tty.ckill_fasync(tty->fasync, SIGIO);
tty507drivers/char/n_tty.cif (tty->read_wait)
tty508drivers/char/n_tty.cwake_up_interruptible(&tty->read_wait);
tty513drivers/char/n_tty.cfinish_erasing(tty);
tty514drivers/char/n_tty.cif (L_ECHO(tty)) {
tty515drivers/char/n_tty.cif (tty->read_cnt >= N_TTY_BUF_SIZE-1) {
tty516drivers/char/n_tty.cput_char('\a', tty); /* beep if no space */
tty520drivers/char/n_tty.copost('\n', tty);
tty523drivers/char/n_tty.cif (tty->canon_head == tty->read_head)
tty524drivers/char/n_tty.ctty->canon_column = tty->column;
tty525drivers/char/n_tty.cecho_char(c, tty);
tty529drivers/char/n_tty.cif (I_PARMRK(tty) && c == (unsigned char) '\377')
tty530drivers/char/n_tty.cput_tty_queue(c, tty);
tty532drivers/char/n_tty.cput_tty_queue(c, tty);
tty535drivers/char/n_tty.cstatic void n_tty_receive_buf(struct tty_struct *tty, const unsigned char *cp,
tty542drivers/char/n_tty.cif (!tty->read_buf)
tty545drivers/char/n_tty.cif (tty->real_raw) {
tty546drivers/char/n_tty.ci = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt,
tty547drivers/char/n_tty.cN_TTY_BUF_SIZE - tty->read_head));
tty548drivers/char/n_tty.cmemcpy(tty->read_buf + tty->read_head, cp, i);
tty549drivers/char/n_tty.ctty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1);
tty550drivers/char/n_tty.ctty->read_cnt += i;
tty554drivers/char/n_tty.ci = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt,
tty555drivers/char/n_tty.cN_TTY_BUF_SIZE - tty->read_head));
tty556drivers/char/n_tty.cmemcpy(tty->read_buf + tty->read_head, cp, i);
tty557drivers/char/n_tty.ctty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1);
tty558drivers/char/n_tty.ctty->read_cnt += i;
tty565drivers/char/n_tty.cn_tty_receive_char(tty, *p);
tty568drivers/char/n_tty.cn_tty_receive_break(tty);
tty572drivers/char/n_tty.cn_tty_receive_parity_error(tty, *p);
tty575drivers/char/n_tty.cn_tty_receive_overrun(tty);
tty578drivers/char/n_tty.cprintk("%s: unknown flag %d\n", tty_name(tty),
tty583drivers/char/n_tty.cif (tty->driver.flush_chars)
tty584drivers/char/n_tty.ctty->driver.flush_chars(tty);
tty587drivers/char/n_tty.cif (!tty->icanon && (tty->read_cnt >= tty->minimum_to_wake)) {
tty588drivers/char/n_tty.cif (tty->fasync)
tty589drivers/char/n_tty.ckill_fasync(tty->fasync, SIGIO);
tty590drivers/char/n_tty.cif (tty->read_wait)
tty591drivers/char/n_tty.cwake_up_interruptible(&tty->read_wait);
tty594drivers/char/n_tty.cif ((tty->read_cnt >= TTY_THRESHOLD_THROTTLE) &&
tty595drivers/char/n_tty.ctty->driver.throttle &&
tty596drivers/char/n_tty.c!set_bit(TTY_THROTTLED, &tty->flags))
tty597drivers/char/n_tty.ctty->driver.throttle(tty);
tty600drivers/char/n_tty.cstatic int n_tty_receive_room(struct tty_struct *tty)
tty602drivers/char/n_tty.cint  left = N_TTY_BUF_SIZE - tty->read_cnt - 1;
tty610drivers/char/n_tty.cif (tty->icanon && !tty->canon_data)
tty624drivers/char/n_tty.cstatic void n_tty_set_termios(struct tty_struct *tty, struct termios * old)
tty626drivers/char/n_tty.cif (!tty)
tty629drivers/char/n_tty.ctty->icanon = (L_ICANON(tty) != 0);
tty630drivers/char/n_tty.cif (I_ISTRIP(tty) || I_IUCLC(tty) || I_IGNCR(tty) ||
tty631drivers/char/n_tty.cI_ICRNL(tty) || I_INLCR(tty) || L_ICANON(tty) ||
tty632drivers/char/n_tty.cI_IXON(tty) || L_ISIG(tty) || L_ECHO(tty) ||
tty633drivers/char/n_tty.cI_PARMRK(tty)) {
tty635drivers/char/n_tty.cmemset(tty->process_char_map, 0, 256/8);
tty637drivers/char/n_tty.cif (I_IGNCR(tty) || I_ICRNL(tty))
tty638drivers/char/n_tty.cset_bit('\r', &tty->process_char_map);
tty639drivers/char/n_tty.cif (I_INLCR(tty))
tty640drivers/char/n_tty.cset_bit('\n', &tty->process_char_map);
tty642drivers/char/n_tty.cif (L_ICANON(tty)) {
tty643drivers/char/n_tty.cset_bit(ERASE_CHAR(tty), &tty->process_char_map);
tty644drivers/char/n_tty.cset_bit(KILL_CHAR(tty), &tty->process_char_map);
tty645drivers/char/n_tty.cset_bit(EOF_CHAR(tty), &tty->process_char_map);
tty646drivers/char/n_tty.cset_bit('\n', &tty->process_char_map);
tty647drivers/char/n_tty.cset_bit(EOL_CHAR(tty), &tty->process_char_map);
tty648drivers/char/n_tty.cif (L_IEXTEN(tty)) {
tty649drivers/char/n_tty.cset_bit(WERASE_CHAR(tty),
tty650drivers/char/n_tty.c&tty->process_char_map);
tty651drivers/char/n_tty.cset_bit(LNEXT_CHAR(tty),
tty652drivers/char/n_tty.c&tty->process_char_map);
tty653drivers/char/n_tty.cset_bit(EOL2_CHAR(tty),
tty654drivers/char/n_tty.c&tty->process_char_map);
tty655drivers/char/n_tty.cif (L_ECHO(tty))
tty656drivers/char/n_tty.cset_bit(REPRINT_CHAR(tty),
tty657drivers/char/n_tty.c&tty->process_char_map);
tty660drivers/char/n_tty.cif (I_IXON(tty)) {
tty661drivers/char/n_tty.cset_bit(START_CHAR(tty), &tty->process_char_map);
tty662drivers/char/n_tty.cset_bit(STOP_CHAR(tty), &tty->process_char_map);
tty664drivers/char/n_tty.cif (L_ISIG(tty)) {
tty665drivers/char/n_tty.cset_bit(INTR_CHAR(tty), &tty->process_char_map);
tty666drivers/char/n_tty.cset_bit(QUIT_CHAR(tty), &tty->process_char_map);
tty667drivers/char/n_tty.cset_bit(SUSP_CHAR(tty), &tty->process_char_map);
tty669drivers/char/n_tty.cclear_bit(__DISABLED_CHAR, &tty->process_char_map);
tty671drivers/char/n_tty.ctty->raw = 0;
tty672drivers/char/n_tty.ctty->real_raw = 0;
tty674drivers/char/n_tty.ctty->raw = 1;
tty675drivers/char/n_tty.cif ((I_IGNBRK(tty) || (!I_BRKINT(tty) && !I_PARMRK(tty))) &&
tty676drivers/char/n_tty.c(I_IGNPAR(tty) || !I_INPCK(tty)) &&
tty677drivers/char/n_tty.c(tty->driver.flags & TTY_DRIVER_REAL_RAW))
tty678drivers/char/n_tty.ctty->real_raw = 1;
tty680drivers/char/n_tty.ctty->real_raw = 0;
tty684drivers/char/n_tty.cstatic void n_tty_close(struct tty_struct *tty)
tty686drivers/char/n_tty.cn_tty_flush_buffer(tty);
tty687drivers/char/n_tty.cif (tty->read_buf) {
tty688drivers/char/n_tty.cfree_page((unsigned long) tty->read_buf);
tty689drivers/char/n_tty.ctty->read_buf = 0;
tty693drivers/char/n_tty.cstatic int n_tty_open(struct tty_struct *tty)
tty695drivers/char/n_tty.cif (!tty)
tty698drivers/char/n_tty.cif (!tty->read_buf) {
tty699drivers/char/n_tty.ctty->read_buf = (unsigned char *)
tty701drivers/char/n_tty.cif (!tty->read_buf)
tty704drivers/char/n_tty.cmemset(tty->read_buf, 0, N_TTY_BUF_SIZE);
tty705drivers/char/n_tty.ctty->read_head = tty->read_tail = tty->read_cnt = 0;
tty706drivers/char/n_tty.ctty->canon_head = tty->canon_data = tty->erasing = 0;
tty707drivers/char/n_tty.ctty->column = 0;
tty708drivers/char/n_tty.cmemset(tty->read_flags, 0, sizeof(tty->read_flags));
tty709drivers/char/n_tty.cn_tty_set_termios(tty, 0);
tty710drivers/char/n_tty.ctty->minimum_to_wake = 1;
tty711drivers/char/n_tty.ctty->closing = 0;
tty715drivers/char/n_tty.cstatic inline int input_available_p(struct tty_struct *tty, int amt)
tty717drivers/char/n_tty.cif (L_ICANON(tty)) {
tty718drivers/char/n_tty.cif (tty->canon_data)
tty720drivers/char/n_tty.c} else if (tty->read_cnt >= (amt ? amt : 1))
tty734drivers/char/n_tty.cstatic inline void copy_from_read_buf(struct tty_struct *tty,
tty741drivers/char/n_tty.cn = MIN(*nr, MIN(tty->read_cnt, N_TTY_BUF_SIZE - tty->read_tail));
tty744drivers/char/n_tty.cmemcpy_tofs(*b, &tty->read_buf[tty->read_tail], n);
tty745drivers/char/n_tty.ctty->read_tail = (tty->read_tail + n) & (N_TTY_BUF_SIZE-1);
tty746drivers/char/n_tty.ctty->read_cnt -= n;
tty751drivers/char/n_tty.cstatic int read_chan(struct tty_struct *tty, struct file *file,
tty763drivers/char/n_tty.cif (!tty->read_buf) {
tty774drivers/char/n_tty.ccurrent->tty == tty) {
tty775drivers/char/n_tty.cif (tty->pgrp <= 0)
tty777drivers/char/n_tty.celse if (current->pgrp != tty->pgrp) {
tty786drivers/char/n_tty.cif (L_ICANON(tty)) {
tty790drivers/char/n_tty.ctime = (HZ / 10) * TIME_CHAR(tty);
tty791drivers/char/n_tty.cminimum = MIN_CHAR(tty);
tty795drivers/char/n_tty.ctty->minimum_to_wake = 1;
tty796drivers/char/n_tty.celse if (!tty->read_wait ||
tty797drivers/char/n_tty.c(tty->minimum_to_wake > minimum))
tty798drivers/char/n_tty.ctty->minimum_to_wake = minimum;
tty805drivers/char/n_tty.ctty->minimum_to_wake = minimum = 1;
tty809drivers/char/n_tty.cadd_wait_queue(&tty->read_wait, &wait);
tty812drivers/char/n_tty.cif (tty->packet && tty->link->ctrl_status) {
tty815drivers/char/n_tty.cput_user(tty->link->ctrl_status, b++);
tty816drivers/char/n_tty.ctty->link->ctrl_status = 0;
tty824drivers/char/n_tty.cif (((minimum - (b - buf)) < tty->minimum_to_wake) &&
tty826drivers/char/n_tty.ctty->minimum_to_wake = (minimum - (b - buf));
tty828drivers/char/n_tty.cif (!input_available_p(tty, 0)) {
tty829drivers/char/n_tty.cif (tty->flags & (1 << TTY_SLAVE_CLOSED)) {
tty851drivers/char/n_tty.cif (tty->packet && b == buf) {
tty856drivers/char/n_tty.cif (L_ICANON(tty)) {
tty861drivers/char/n_tty.cif (!tty->read_cnt) {
tty865drivers/char/n_tty.ceol = clear_bit(tty->read_tail,
tty866drivers/char/n_tty.c&tty->read_flags);
tty867drivers/char/n_tty.cc = tty->read_buf[tty->read_tail];
tty868drivers/char/n_tty.ctty->read_tail = ((tty->read_tail+1) &
tty870drivers/char/n_tty.ctty->read_cnt--;
tty878drivers/char/n_tty.cif (--tty->canon_data < 0) {
tty879drivers/char/n_tty.ctty->canon_data = 0;
tty889drivers/char/n_tty.ccopy_from_read_buf(tty, &b, &nr);
tty890drivers/char/n_tty.ccopy_from_read_buf(tty, &b, &nr);
tty896drivers/char/n_tty.cif (tty->driver.unthrottle &&
tty897drivers/char/n_tty.c(tty->read_cnt <= TTY_THRESHOLD_UNTHROTTLE)
tty898drivers/char/n_tty.c&& clear_bit(TTY_THROTTLED, &tty->flags))
tty899drivers/char/n_tty.ctty->driver.unthrottle(tty);
tty906drivers/char/n_tty.cremove_wait_queue(&tty->read_wait, &wait);
tty908drivers/char/n_tty.cif (!tty->read_wait)
tty909drivers/char/n_tty.ctty->minimum_to_wake = minimum;
tty915drivers/char/n_tty.cclear_bit(TTY_PUSH, &tty->flags);
tty916drivers/char/n_tty.cif (!size && clear_bit(TTY_PUSH, &tty->flags))
tty919drivers/char/n_tty.cclear_bit(TTY_PUSH, &tty->flags);
tty923drivers/char/n_tty.cstatic int write_chan(struct tty_struct * tty, struct file * file,
tty932drivers/char/n_tty.cif (L_TOSTOP(tty) && file->f_inode->i_rdev != CONSOLE_DEV) {
tty933drivers/char/n_tty.cretval = tty_check_change(tty);
tty938drivers/char/n_tty.cadd_wait_queue(&tty->write_wait, &wait);
tty945drivers/char/n_tty.cif (tty_hung_up_p(file) || (tty->link && !tty->link->count)) {
tty949drivers/char/n_tty.cif (O_OPOST(tty)) {
tty952drivers/char/n_tty.cif (opost(c, tty) < 0)
tty956drivers/char/n_tty.cif (tty->driver.flush_chars)
tty957drivers/char/n_tty.ctty->driver.flush_chars(tty);
tty959drivers/char/n_tty.cc = tty->driver.write(tty, 1, b, nr);
tty972drivers/char/n_tty.cremove_wait_queue(&tty->write_wait, &wait);
tty976drivers/char/n_tty.cstatic int normal_select(struct tty_struct * tty, struct inode * inode,
tty981drivers/char/n_tty.cif (input_available_p(tty, TIME_CHAR(tty) ? 0 :
tty982drivers/char/n_tty.cMIN_CHAR(tty)))
tty986drivers/char/n_tty.cif (tty->packet && tty->link->ctrl_status)
tty988drivers/char/n_tty.cif (tty->flags & (1 << TTY_SLAVE_CLOSED))
tty992drivers/char/n_tty.cif (!tty->read_wait) {
tty993drivers/char/n_tty.cif (MIN_CHAR(tty) && !TIME_CHAR(tty))
tty994drivers/char/n_tty.ctty->minimum_to_wake = MIN_CHAR(tty);
tty996drivers/char/n_tty.ctty->minimum_to_wake = 1;
tty998drivers/char/n_tty.cselect_wait(&tty->read_wait, wait);
tty1001drivers/char/n_tty.cif (tty->driver.chars_in_buffer(tty) < WAKEUP_CHARS)
tty1003drivers/char/n_tty.cselect_wait(&tty->write_wait, wait);
tty64drivers/char/pty.cstatic void pty_close(struct tty_struct * tty, struct file * filp)
tty66drivers/char/pty.cif (!tty)
tty68drivers/char/pty.cif (tty->driver.subtype == PTY_TYPE_MASTER) {
tty69drivers/char/pty.cif (tty->count > 1)
tty70drivers/char/pty.cprintk("master pty_close: count = %d!!\n", tty->count);
tty72drivers/char/pty.cif (tty->count > 2)
tty75drivers/char/pty.cwake_up_interruptible(&tty->read_wait);
tty76drivers/char/pty.cwake_up_interruptible(&tty->write_wait);
tty77drivers/char/pty.cif (!tty->link)
tty79drivers/char/pty.cwake_up_interruptible(&tty->link->read_wait);
tty80drivers/char/pty.cwake_up_interruptible(&tty->link->write_wait);
tty81drivers/char/pty.cif (tty->driver.subtype == PTY_TYPE_MASTER) {
tty82drivers/char/pty.ctty_hangup(tty->link);
tty83drivers/char/pty.cset_bit(TTY_SLAVE_CLOSED, &tty->flags);
tty85drivers/char/pty.cstart_tty(tty);
tty86drivers/char/pty.cset_bit(TTY_SLAVE_CLOSED, &tty->link->flags);
tty100drivers/char/pty.cstatic void pty_unthrottle(struct tty_struct * tty)
tty102drivers/char/pty.cstruct tty_struct *o_tty = tty->link;
tty111drivers/char/pty.cset_bit(TTY_THROTTLED, &tty->flags);
tty114drivers/char/pty.cstatic int pty_write(struct tty_struct * tty, int from_user,
tty117drivers/char/pty.cstruct tty_struct *to = tty->link;
tty121drivers/char/pty.cif (!to || tty->stopped)
tty127drivers/char/pty.c((tty->driver.subtype-1) * PTY_BUF_SIZE);
tty148drivers/char/pty.cstatic int pty_write_room(struct tty_struct *tty)
tty150drivers/char/pty.cstruct tty_struct *to = tty->link;
tty152drivers/char/pty.cif (!to || tty->stopped)
tty158drivers/char/pty.cstatic int pty_chars_in_buffer(struct tty_struct *tty)
tty160drivers/char/pty.cstruct tty_struct *to = tty->link;
tty168drivers/char/pty.cstatic void pty_flush_buffer(struct tty_struct *tty)
tty170drivers/char/pty.cstruct tty_struct *to = tty->link;
tty179drivers/char/pty.ctty->ctrl_status |= TIOCPKT_FLUSHWRITE;
tty184drivers/char/pty.cint pty_open(struct tty_struct *tty, struct file * filp)
tty189drivers/char/pty.cif (!tty || !tty->link)
tty191drivers/char/pty.cline = MINOR(tty->device) - tty->driver.minor_start;
tty195drivers/char/pty.ctty->driver_data = pty;
tty203drivers/char/pty.cif (tty->driver.subtype == PTY_TYPE_SLAVE)
tty204drivers/char/pty.cclear_bit(TTY_SLAVE_CLOSED, &tty->link->flags);
tty206drivers/char/pty.cset_bit(TTY_THROTTLED, &tty->flags);
tty209drivers/char/pty.cwhile (test_bit(TTY_SLAVE_CLOSED, &tty->link->flags) &&
tty212drivers/char/pty.cif (!tty->link->count)
tty214drivers/char/scc.cint scc_open(struct tty_struct *tty, struct file *filp);
tty215drivers/char/scc.cstatic void scc_close(struct tty_struct *tty, struct file *filp);
tty216drivers/char/scc.cint scc_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count);
tty217drivers/char/scc.cstatic void scc_put_char(struct tty_struct *tty, unsigned char ch);
tty218drivers/char/scc.cstatic void scc_flush_chars(struct tty_struct *tty);
tty219drivers/char/scc.cstatic int scc_write_room(struct tty_struct *tty);
tty220drivers/char/scc.cstatic int scc_chars_in_buffer(struct tty_struct *tty);
tty221drivers/char/scc.cstatic void scc_flush_buffer(struct tty_struct *tty);
tty222drivers/char/scc.cstatic int scc_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg);
tty223drivers/char/scc.cstatic void scc_set_termios(struct tty_struct *tty, struct termios *old_termios);
tty224drivers/char/scc.cstatic void scc_set_ldisc(struct tty_struct *tty);
tty225drivers/char/scc.cstatic void scc_throttle(struct tty_struct *tty);
tty226drivers/char/scc.cstatic void scc_unthrottle(struct tty_struct *tty);
tty227drivers/char/scc.cstatic void scc_start(struct tty_struct *tty);
tty228drivers/char/scc.cstatic void scc_stop(struct tty_struct *tty);
tty505drivers/char/scc.cprintk("z8530drv: %s: can't allocate memory for rx buffer pool", kdevname(scc->tty->device));
tty530drivers/char/scc.cprintk("z8530drv: %s: can't allocate memory for tx buffer pool", kdevname(scc->tty->device));
tty669drivers/char/scc.cprintk("z8530drv: scc_get_buffer(%s): tx buffer pool empty\n", kdevname(scc->tty->device));
tty685drivers/char/scc.cprintk("z8530drv: scc_get_buffer(%s): rx buffer pool empty\n", kdevname(scc->tty->device));
tty764drivers/char/scc.cif (!scc->tty) break;
tty805drivers/char/scc.cif (!scc->tty) break;
tty1365drivers/char/scc.cif (scc2 == scc || !(scc2->tty && grp2)) 
tty1499drivers/char/scc.cif (scc->tty && scc->init)
tty1544drivers/char/scc.ckdevname(scc->tty->device));
tty1785drivers/char/scc.cstruct tty_struct * tty = scc->tty;
tty1792drivers/char/scc.cwhile(tty->flip.count < TTY_FLIPBUF_SIZE-4)
tty1814drivers/char/scc.ctty_insert_flip_char(tty, FEND, 0);  /* send FEND for old frame */
tty1827drivers/char/scc.ctty_insert_flip_char(tty, FEND, 0);
tty1830drivers/char/scc.ctty_insert_flip_char(tty, 0, 0);
tty1838drivers/char/scc.ctty_insert_flip_char(tty, FESC, 0);
tty1839drivers/char/scc.ctty_insert_flip_char(tty, TFEND, 0);
tty1842drivers/char/scc.ctty_insert_flip_char(tty, FESC, 0);
tty1843drivers/char/scc.ctty_insert_flip_char(tty, TFESC, 0);
tty1846drivers/char/scc.ctty_insert_flip_char(tty, ch, 0);
tty1853drivers/char/scc.cqueue_task(&tty->flip.tqueue, &tq_timer); /* kick it... */
tty1955drivers/char/scc.cint scc_open(struct tty_struct *tty, struct file * filp)
tty1960drivers/char/scc.cchan = MINOR(tty->device) - tty->driver.minor_start;
tty1967drivers/char/scc.ctty->driver_data = &SCC_Info[0];
tty1974drivers/char/scc.ctty->driver_data = scc;
tty1975drivers/char/scc.ctty->termios->c_cflag &= ~CBAUD;
tty1980drivers/char/scc.ckdevname(tty->device));
tty1986drivers/char/scc.cif(scc->tty != NULL)
tty1992drivers/char/scc.cscc->tty = tty;
tty2010drivers/char/scc.cscc_close(struct tty_struct *tty, struct file * filp)
tty2012drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2026drivers/char/scc.ctty->driver_data = NULLBUF;
tty2037drivers/char/scc.cscc->tty = NULL;
tty2047drivers/char/scc.ctty->stopped = 0;
tty2060drivers/char/scc.cif (scc->tty == NULL)
tty2064drivers/char/scc.cspeed = baud_table[scc->tty->termios->c_cflag & CBAUD];
tty2092drivers/char/scc.cscc_ioctl(struct tty_struct *tty, struct file * file, unsigned int cmd, unsigned long arg)
tty2094drivers/char/scc.cstruct scc_channel * scc = tty->driver_data;
tty2106drivers/char/scc.ckdevname(tty->device));
tty2213drivers/char/scc.cscc->tty=tty;
tty2333drivers/char/scc.cmemcpy_tofs((void *) arg, scc->tty->termios, sizeof(struct termios));
tty2342drivers/char/scc.cmemcpy_fromfs(scc->tty->termios, (void *) arg, sizeof(struct termios));
tty2464drivers/char/scc.cint scc_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count)
tty2466drivers/char/scc.cstruct scc_channel * scc = tty->driver_data;
tty2471drivers/char/scc.cif (!tty) return count;
tty2473drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_write"))
tty2501drivers/char/scc.cwake_up_interruptible(&tty->write_wait);
tty2503drivers/char/scc.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
tty2504drivers/char/scc.ctty->ldisc.write_wakeup)
tty2505drivers/char/scc.c(tty->ldisc.write_wakeup)(tty);
tty2528drivers/char/scc.cstatic void scc_put_char(struct tty_struct * tty, unsigned char ch)
tty2530drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2533drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_put_char"))
tty2537drivers/char/scc.cscc_write(tty, 0, &ch2, 1);  /* that's all */
tty2540drivers/char/scc.cstatic void scc_flush_chars(struct tty_struct * tty)
tty2542drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2544drivers/char/scc.cscc_paranoia_check(scc, tty->device, "scc_flush_chars"); /* just to annoy the user... */
tty2550drivers/char/scc.cstatic int scc_write_room(struct tty_struct *tty)
tty2552drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2554drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_write_room"))
tty2560drivers/char/scc.cstatic int scc_chars_in_buffer(struct tty_struct *tty)
tty2562drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2570drivers/char/scc.cstatic void scc_flush_buffer(struct tty_struct *tty)
tty2572drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2574drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_flush_buffer"))
tty2576drivers/char/scc.cwake_up_interruptible(&tty->write_wait);
tty2577drivers/char/scc.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
tty2578drivers/char/scc.ctty->ldisc.write_wakeup)
tty2579drivers/char/scc.c(tty->ldisc.write_wakeup)(tty);
tty2582drivers/char/scc.cstatic void scc_throttle(struct tty_struct *tty)
tty2584drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2586drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_throttle"))
tty2590drivers/char/scc.cprintk("scc: scc_throttle() called for device %d\n", MINOR(tty->device));
tty2599drivers/char/scc.cstatic void scc_unthrottle(struct tty_struct *tty)
tty2601drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2603drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_unthrottle"))
tty2607drivers/char/scc.cprintk("scc: scc_unthrottle() called for device %d\n", MINOR(tty->device));
tty2616drivers/char/scc.cstatic void scc_start(struct tty_struct *tty)
tty2618drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2620drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_start"))
tty2623drivers/char/scc.cscc_unthrottle(tty);
tty2626drivers/char/scc.cstatic void scc_stop(struct tty_struct *tty)
tty2628drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2630drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_stop"))
tty2633drivers/char/scc.cscc_throttle(tty);
tty2637drivers/char/scc.cscc_set_termios(struct tty_struct * tty, struct termios * old_termios)
tty2639drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2641drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_set_termios"))
tty2644drivers/char/scc.cif (old_termios && (tty->termios->c_cflag == old_termios->c_cflag)) 
tty2651drivers/char/scc.cscc_set_ldisc(struct tty_struct * tty)
tty2653drivers/char/scc.cstruct scc_channel *scc = tty->driver_data;
tty2655drivers/char/scc.cif (scc_paranoia_check(scc, tty->device, "scc_set_ldisc"))
tty114drivers/char/selection.cint set_selection(const unsigned long arg, struct tty_struct *tty)
tty145drivers/char/selection.cmouse_report(tty, sel_mode & 15, xs, ys);
tty270drivers/char/selection.cint paste_selection(struct tty_struct *tty)
tty276drivers/char/selection.cstruct vt_struct *vt = (struct vt_struct *) tty->driver_data;
tty284drivers/char/selection.cif (test_bit(TTY_THROTTLED, &tty->flags)) {
tty288drivers/char/selection.cl = MIN(c, tty->ldisc.receive_room(tty));
tty289drivers/char/selection.ctty->ldisc.receive_buf(tty, bp, 0, l);
tty9drivers/char/selection.hextern int set_selection(const unsigned long arg, struct tty_struct *tty);
tty10drivers/char/selection.hextern int paste_selection(struct tty_struct *tty);
tty13drivers/char/selection.hextern void mouse_report(struct tty_struct * tty, int butt, int mrx, int mry);
tty297drivers/char/serial.cstatic void rs_stop(struct tty_struct *tty)
tty299drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty302drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_stop"))
tty313drivers/char/serial.cstatic void rs_start(struct tty_struct *tty)
tty315drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty318drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_start"))
tty376drivers/char/serial.cstruct tty_struct *tty = info->tty;
tty387drivers/char/serial.cif (tty->flip.count >= TTY_FLIPBUF_SIZE)
tty389drivers/char/serial.ctty->flip.count++;
tty392drivers/char/serial.c*tty->flip.flag_buf_ptr++ = TTY_BREAK;
tty394drivers/char/serial.cdo_SAK(tty);
tty396drivers/char/serial.c*tty->flip.flag_buf_ptr++ = TTY_PARITY;
tty398drivers/char/serial.c*tty->flip.flag_buf_ptr++ = TTY_FRAME;
tty400drivers/char/serial.c*tty->flip.flag_buf_ptr++ = TTY_OVERRUN;
tty402drivers/char/serial.c*tty->flip.flag_buf_ptr++ = 0;
tty403drivers/char/serial.c*tty->flip.char_buf_ptr++ = ch;
tty407drivers/char/serial.cqueue_task_irq_off(&tty->flip.tqueue, &tq_timer);
tty424drivers/char/serial.cif ((info->xmit_cnt <= 0) || info->tty->stopped ||
tty425drivers/char/serial.cinfo->tty->hw_stopped) {
tty490drivers/char/serial.cif (info->tty->hw_stopped) {
tty495drivers/char/serial.cinfo->tty->hw_stopped = 0;
tty506drivers/char/serial.cinfo->tty->hw_stopped = 1;
tty539drivers/char/serial.cif (!info->tty ||
tty596drivers/char/serial.cif (!info || !info->tty)
tty657drivers/char/serial.cif (!info->tty ||
tty734drivers/char/serial.cstruct tty_struct  *tty;
tty736drivers/char/serial.ctty = info->tty;
tty737drivers/char/serial.cif (!tty)
tty741drivers/char/serial.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
tty742drivers/char/serial.ctty->ldisc.write_wakeup)
tty743drivers/char/serial.c(tty->ldisc.write_wakeup)(tty);
tty744drivers/char/serial.cwake_up_interruptible(&tty->write_wait);
tty760drivers/char/serial.cstruct tty_struct  *tty;
tty762drivers/char/serial.ctty = info->tty;
tty763drivers/char/serial.cif (!tty)
tty766drivers/char/serial.ctty_hangup(tty);
tty906drivers/char/serial.cif (info->tty)
tty907drivers/char/serial.cset_bit(TTY_IO_ERROR, &info->tty->flags);
tty944drivers/char/serial.cif (info->tty)
tty945drivers/char/serial.cset_bit(TTY_IO_ERROR, &info->tty->flags);
tty969drivers/char/serial.cif (info->tty)
tty971drivers/char/serial.c&info->tty->flags);
tty1026drivers/char/serial.cif (info->tty)
tty1027drivers/char/serial.cclear_bit(TTY_IO_ERROR, &info->tty->flags);
tty1114drivers/char/serial.cif (!info->tty || (info->tty->termios->c_cflag & HUPCL)) {
tty1125drivers/char/serial.cif (info->tty)
tty1126drivers/char/serial.cset_bit(TTY_IO_ERROR, &info->tty->flags);
tty1143drivers/char/serial.cif (!info->tty || !info->tty->termios)
tty1145drivers/char/serial.ccflag = info->tty->termios->c_cflag;
tty1152drivers/char/serial.cinfo->tty->termios->c_cflag &= ~CBAUDEX;
tty1245drivers/char/serial.cif (I_INPCK(info->tty))
tty1247drivers/char/serial.cif (I_BRKINT(info->tty) || I_PARMRK(info->tty))
tty1251drivers/char/serial.cif (I_IGNPAR(info->tty)) {
tty1255drivers/char/serial.cif (I_IGNBRK(info->tty)) {
tty1262drivers/char/serial.cif (I_IGNPAR(info->tty)) {
tty1277drivers/char/serial.cstatic void rs_put_char(struct tty_struct *tty, unsigned char ch)
tty1279drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1282drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_put_char"))
tty1285drivers/char/serial.cif (!tty || !info->xmit_buf)
tty1300drivers/char/serial.cstatic void rs_flush_chars(struct tty_struct *tty)
tty1302drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1305drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_flush_chars"))
tty1308drivers/char/serial.cif (info->xmit_cnt <= 0 || tty->stopped || tty->hw_stopped ||
tty1318drivers/char/serial.cstatic int rs_write(struct tty_struct * tty, int from_user,
tty1322drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1325drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_write"))
tty1328drivers/char/serial.cif (!tty || !info->xmit_buf || !tmp_buf)
tty1357drivers/char/serial.cif (info->xmit_cnt && !tty->stopped && !tty->hw_stopped &&
tty1366drivers/char/serial.cstatic int rs_write_room(struct tty_struct *tty)
tty1368drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1371drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_write_room"))
tty1379drivers/char/serial.cstatic int rs_chars_in_buffer(struct tty_struct *tty)
tty1381drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1383drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_chars_in_buffer"))
tty1388drivers/char/serial.cstatic void rs_flush_buffer(struct tty_struct *tty)
tty1390drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1392drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_flush_buffer"))
tty1397drivers/char/serial.cwake_up_interruptible(&tty->write_wait);
tty1398drivers/char/serial.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
tty1399drivers/char/serial.ctty->ldisc.write_wakeup)
tty1400drivers/char/serial.c(tty->ldisc.write_wakeup)(tty);
tty1411drivers/char/serial.cstatic void rs_throttle(struct tty_struct * tty)
tty1413drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1417drivers/char/serial.cprintk("throttle %s: %d....\n", _tty_name(tty, buf),
tty1418drivers/char/serial.ctty->ldisc.chars_in_buffer(tty));
tty1421drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_throttle"))
tty1424drivers/char/serial.cif (I_IXOFF(tty))
tty1425drivers/char/serial.cinfo->x_char = STOP_CHAR(tty);
tty1434drivers/char/serial.cstatic void rs_unthrottle(struct tty_struct * tty)
tty1436drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty1440drivers/char/serial.cprintk("unthrottle %s: %d....\n", _tty_name(tty, buf),
tty1441drivers/char/serial.ctty->ldisc.chars_in_buffer(tty));
tty1444drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_unthrottle"))
tty1447drivers/char/serial.cif (I_IXOFF(tty)) {
tty1451drivers/char/serial.cinfo->x_char = START_CHAR(tty);
tty1866drivers/char/serial.cstatic int rs_ioctl(struct tty_struct *tty, struct file * file,
tty1870drivers/char/serial.cstruct async_struct * info = (struct async_struct *)tty->driver_data;
tty1875drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_ioctl"))
tty1882drivers/char/serial.cif (tty->flags & (1 << TTY_IO_ERROR))
tty1888drivers/char/serial.cretval = tty_check_change(tty);
tty1891drivers/char/serial.ctty_wait_until_sent(tty, 0);
tty1896drivers/char/serial.cretval = tty_check_change(tty);
tty1899drivers/char/serial.ctty_wait_until_sent(tty, 0);
tty1906drivers/char/serial.cput_fs_long(C_CLOCAL(tty) ? 1 : 0,
tty1911drivers/char/serial.ctty->termios->c_cflag =
tty1912drivers/char/serial.c((tty->termios->c_cflag & ~CLOCAL) |
tty2036drivers/char/serial.cstatic void rs_set_termios(struct tty_struct *tty, struct termios *old_termios)
tty2038drivers/char/serial.cstruct async_struct *info = (struct async_struct *)tty->driver_data;
tty2040drivers/char/serial.cif (tty->termios->c_cflag == old_termios->c_cflag)
tty2046drivers/char/serial.c!(tty->termios->c_cflag & CRTSCTS)) {
tty2047drivers/char/serial.ctty->hw_stopped = 0;
tty2048drivers/char/serial.crs_start(tty);
tty2059drivers/char/serial.c(tty->termios->c_cflag & CLOCAL))
tty2074drivers/char/serial.cstatic void rs_close(struct tty_struct *tty, struct file * filp)
tty2076drivers/char/serial.cstruct async_struct * info = (struct async_struct *)tty->driver_data;
tty2080drivers/char/serial.cif (!info || serial_paranoia_check(info, tty->device, "rs_close"))
tty2093drivers/char/serial.cif ((tty->count == 1) && (info->count != 1)) {
tty2120drivers/char/serial.cinfo->normal_termios = *tty->termios;
tty2122drivers/char/serial.cinfo->callout_termios = *tty->termios;
tty2127drivers/char/serial.ctty->closing = 1;
tty2129drivers/char/serial.ctty_wait_until_sent(tty, info->closing_wait);
tty2155drivers/char/serial.cif (tty->driver.flush_buffer)
tty2156drivers/char/serial.ctty->driver.flush_buffer(tty);
tty2157drivers/char/serial.cif (tty->ldisc.flush_buffer)
tty2158drivers/char/serial.ctty->ldisc.flush_buffer(tty);
tty2159drivers/char/serial.ctty->closing = 0;
tty2161drivers/char/serial.cinfo->tty = 0;
tty2162drivers/char/serial.cif (tty->ldisc.num != ldiscs[N_TTY].num) {
tty2163drivers/char/serial.cif (tty->ldisc.close)
tty2164drivers/char/serial.c(tty->ldisc.close)(tty);
tty2165drivers/char/serial.ctty->ldisc = ldiscs[N_TTY];
tty2166drivers/char/serial.ctty->termios->c_line = N_TTY;
tty2167drivers/char/serial.cif (tty->ldisc.open)
tty2168drivers/char/serial.c(tty->ldisc.open)(tty);
tty2187drivers/char/serial.cvoid rs_hangup(struct tty_struct *tty)
tty2189drivers/char/serial.cstruct async_struct * info = (struct async_struct *)tty->driver_data;
tty2191drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_hangup"))
tty2194drivers/char/serial.crs_flush_buffer(tty);
tty2199drivers/char/serial.cinfo->tty = 0;
tty2208drivers/char/serial.cstatic int block_til_ready(struct tty_struct *tty, struct file * filp,
tty2237drivers/char/serial.cif (tty->driver.subtype == SERIAL_TYPE_CALLOUT) {
tty2257drivers/char/serial.c(tty->flags & (1 << TTY_IO_ERROR))) {
tty2268drivers/char/serial.cif (tty->termios->c_cflag & CLOCAL)
tty2346drivers/char/serial.cint rs_open(struct tty_struct *tty, struct file * filp)
tty2352drivers/char/serial.cline = MINOR(tty->device) - tty->driver.minor_start;
tty2356drivers/char/serial.cif (serial_paranoia_check(info, tty->device, "rs_open"))
tty2360drivers/char/serial.cprintk("rs_open %s%d, count = %d\n", tty->driver.name, info->line,
tty2364drivers/char/serial.ctty->driver_data = info;
tty2365drivers/char/serial.cinfo->tty = tty;
tty2384drivers/char/serial.cretval = block_til_ready(tty, filp, info);
tty2394drivers/char/serial.cif (tty->driver.subtype == SERIAL_TYPE_NORMAL)
tty2395drivers/char/serial.c*tty->termios = info->normal_termios;
tty2397drivers/char/serial.c*tty->termios = info->callout_termios;
tty2736drivers/char/serial.cinfo->tty = 0;
tty2858drivers/char/serial.cif (info->tty)
tty2859drivers/char/serial.ctty_hangup(info->tty);
tty240drivers/char/stallion.cstruct tty_struct  *tty;
tty455drivers/char/stallion.cstatic int  stl_open(struct tty_struct *tty, struct file *filp);
tty456drivers/char/stallion.cstatic void  stl_close(struct tty_struct *tty, struct file *filp);
tty457drivers/char/stallion.cstatic int  stl_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count);
tty458drivers/char/stallion.cstatic void  stl_putchar(struct tty_struct *tty, unsigned char ch);
tty459drivers/char/stallion.cstatic void  stl_flushchars(struct tty_struct *tty);
tty460drivers/char/stallion.cstatic int  stl_writeroom(struct tty_struct *tty);
tty461drivers/char/stallion.cstatic int  stl_charsinbuffer(struct tty_struct *tty);
tty462drivers/char/stallion.cstatic int  stl_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg);
tty463drivers/char/stallion.cstatic void  stl_settermios(struct tty_struct *tty, struct termios *old);
tty464drivers/char/stallion.cstatic void  stl_throttle(struct tty_struct *tty);
tty465drivers/char/stallion.cstatic void  stl_unthrottle(struct tty_struct *tty);
tty466drivers/char/stallion.cstatic void  stl_stop(struct tty_struct *tty);
tty467drivers/char/stallion.cstatic void  stl_start(struct tty_struct *tty);
tty468drivers/char/stallion.cstatic void  stl_flushbuffer(struct tty_struct *tty);
tty469drivers/char/stallion.cstatic void  stl_hangup(struct tty_struct *tty);
tty568drivers/char/stallion.cif (portp->tty != (struct tty_struct *) NULL)
tty569drivers/char/stallion.cstl_hangup(portp->tty);
tty617drivers/char/stallion.cstatic int stl_open(struct tty_struct *tty, struct file *filp)
tty625drivers/char/stallion.cprintk("stl_open(tty=%x,filp=%x): device=%x\n", (int) tty, (int) filp, tty->device);
tty628drivers/char/stallion.cminordev = MINOR(tty->device);
tty656drivers/char/stallion.cportp->tty = tty;
tty657drivers/char/stallion.ctty->driver_data = portp;
tty668drivers/char/stallion.cstl_setport(portp, tty->termios);
tty673drivers/char/stallion.cclear_bit(TTY_IO_ERROR, &tty->flags);
tty695drivers/char/stallion.cif (tty->driver.subtype == STL_DRVTYPCALLOUT) {
tty719drivers/char/stallion.cif (tty->driver.subtype == STL_DRVTYPSERIAL)
tty720drivers/char/stallion.c*tty->termios = portp->normaltermios;
tty722drivers/char/stallion.c*tty->termios = portp->callouttermios;
tty723drivers/char/stallion.cstl_setport(portp, tty->termios);
tty767drivers/char/stallion.c((portp->tty->termios->c_cflag & CLOCAL) ||
tty788drivers/char/stallion.cstatic void stl_close(struct tty_struct *tty, struct file *filp)
tty794drivers/char/stallion.cprintk("stl_close(tty=%x,filp=%x)\n", (int) tty, (int) filp);
tty797drivers/char/stallion.cportp = tty->driver_data;
tty816drivers/char/stallion.cportp->normaltermios = *tty->termios;
tty818drivers/char/stallion.cportp->callouttermios = *tty->termios;
tty825drivers/char/stallion.ctty->closing = 1;
tty828drivers/char/stallion.ctty_wait_until_sent(tty, portp->closing_wait);
tty833drivers/char/stallion.cif (tty->termios->c_cflag & HUPCL)
tty836drivers/char/stallion.cstl_flushbuffer(tty);
tty844drivers/char/stallion.cset_bit(TTY_IO_ERROR, &tty->flags);
tty845drivers/char/stallion.cif (tty->ldisc.flush_buffer)
tty846drivers/char/stallion.c(tty->ldisc.flush_buffer)(tty);
tty848drivers/char/stallion.ctty->closing = 0;
tty849drivers/char/stallion.ctty->driver_data = (void *) NULL;
tty850drivers/char/stallion.cportp->tty = (struct tty_struct *) NULL;
tty890drivers/char/stallion.cstatic int stl_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count)
tty899drivers/char/stallion.cprintk("stl_write(tty=%x,from_user=%d,buf=%x,count=%d)\n", (int) tty, from_user, (int) buf, count);
tty902drivers/char/stallion.cif ((tty == (struct tty_struct *) NULL) || (stl_tmpwritebuf == (char *) NULL))
tty904drivers/char/stallion.cportp = tty->driver_data;
tty967drivers/char/stallion.cstatic void stl_putchar(struct tty_struct *tty, unsigned char ch)
tty974drivers/char/stallion.cprintk("stl_putchar(tty=%x,ch=%x)\n", (int) tty, (int) ch);
tty977drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty979drivers/char/stallion.cportp = tty->driver_data;
tty1007drivers/char/stallion.cstatic void stl_flushchars(struct tty_struct *tty)
tty1012drivers/char/stallion.cprintk("stl_flushchars(tty=%x)\n", (int) tty);
tty1015drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1017drivers/char/stallion.cportp = tty->driver_data;
tty1024drivers/char/stallion.cif (tty->stopped || tty->hw_stopped || (portp->tx.head == portp->tx.tail))
tty1032drivers/char/stallion.cstatic int stl_writeroom(struct tty_struct *tty)
tty1038drivers/char/stallion.cprintk("stl_writeroom(tty=%x)\n", (int) tty);
tty1041drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1043drivers/char/stallion.cportp = tty->driver_data;
tty1065drivers/char/stallion.cstatic int stl_charsinbuffer(struct tty_struct *tty)
tty1072drivers/char/stallion.cprintk("stl_charsinbuffer(tty=%x)\n", (int) tty);
tty1075drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1077drivers/char/stallion.cportp = tty->driver_data;
tty1154drivers/char/stallion.cstl_setport(portp, portp->tty->termios);
tty1160drivers/char/stallion.cstatic int stl_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg)
tty1166drivers/char/stallion.cprintk("stl_ioctl(tty=%x,file=%x,cmd=%x,arg=%x)\n", (int) tty, (int) file, cmd, (int) arg);
tty1169drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1171drivers/char/stallion.cportp = tty->driver_data;
tty1179drivers/char/stallion.cif ((rc = tty_check_change(tty)) == 0) {
tty1180drivers/char/stallion.ctty_wait_until_sent(tty, 0);
tty1186drivers/char/stallion.cif ((rc = tty_check_change(tty)) == 0) {
tty1187drivers/char/stallion.ctty_wait_until_sent(tty, 0);
tty1193drivers/char/stallion.cput_fs_long(((tty->termios->c_cflag & CLOCAL) ? 1 : 0), (unsigned long *) arg);
tty1198drivers/char/stallion.ctty->termios->c_cflag = (tty->termios->c_cflag & ~CLOCAL) | (arg ? CLOCAL : 0);
tty1250drivers/char/stallion.cstatic void stl_settermios(struct tty_struct *tty, struct termios *old)
tty1256drivers/char/stallion.cprintk("stl_settermios(tty=%x,old=%x)\n", (int) tty, (int) old);
tty1259drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1261drivers/char/stallion.cportp = tty->driver_data;
tty1265drivers/char/stallion.ctiosp = tty->termios;
tty1272drivers/char/stallion.ctty->hw_stopped = 0;
tty1273drivers/char/stallion.cstl_start(tty);
tty1286drivers/char/stallion.cstatic void stl_throttle(struct tty_struct *tty)
tty1292drivers/char/stallion.cprintk("stl_throttle(tty=%x)\n", (int) tty);
tty1295drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1297drivers/char/stallion.cportp = tty->driver_data;
tty1305drivers/char/stallion.cif (tty->termios->c_iflag & IXOFF) {
tty1310drivers/char/stallion.cif (tty->termios->c_cflag & CRTSCTS) {
tty1324drivers/char/stallion.cstatic void stl_unthrottle(struct tty_struct *tty)
tty1330drivers/char/stallion.cprintk("stl_unthrottle(tty=%x)\n", (int) tty);
tty1333drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1335drivers/char/stallion.cportp = tty->driver_data;
tty1343drivers/char/stallion.cif (tty->termios->c_iflag & IXOFF) {
tty1354drivers/char/stallion.cif (tty->termios->c_cflag & CRTSCTS) {
tty1369drivers/char/stallion.cstatic void stl_stop(struct tty_struct *tty)
tty1374drivers/char/stallion.cprintk("stl_stop(tty=%x)\n", (int) tty);
tty1377drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1379drivers/char/stallion.cportp = tty->driver_data;
tty1392drivers/char/stallion.cstatic void stl_start(struct tty_struct *tty)
tty1397drivers/char/stallion.cprintk("stl_start(tty=%x)\n", (int) tty);
tty1400drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1402drivers/char/stallion.cportp = tty->driver_data;
tty1417drivers/char/stallion.cstatic void stl_hangup(struct tty_struct *tty)
tty1422drivers/char/stallion.cprintk("stl_hangup(tty=%x)\n", (int) tty);
tty1425drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1427drivers/char/stallion.cportp = tty->driver_data;
tty1433drivers/char/stallion.cif (tty->termios->c_cflag & HUPCL)
tty1436drivers/char/stallion.cstl_flushbuffer(tty);
tty1438drivers/char/stallion.cset_bit(TTY_IO_ERROR, &tty->flags);
tty1445drivers/char/stallion.ctty->driver_data = (void *) NULL;
tty1446drivers/char/stallion.cportp->tty = (struct tty_struct *) NULL;
tty1454drivers/char/stallion.cstatic void stl_flushbuffer(struct tty_struct *tty)
tty1460drivers/char/stallion.cprintk("stl_flushbuffer(tty=%x)\n", (int) tty);
tty1463drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1465drivers/char/stallion.cportp = tty->driver_data;
tty1480drivers/char/stallion.cwake_up_interruptible(&tty->write_wait);
tty1481drivers/char/stallion.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && tty->ldisc.write_wakeup)
tty1482drivers/char/stallion.c(tty->ldisc.write_wakeup)(tty);
tty1625drivers/char/stallion.cstruct tty_struct  *tty;
tty1641drivers/char/stallion.ctty = portp->tty;
tty1646drivers/char/stallion.cif ((tty == (struct tty_struct *) NULL) || (tty->flip.char_buf_ptr == (char *) NULL) ||
tty1647drivers/char/stallion.c((buflen = TTY_FLIPBUF_SIZE - tty->flip.count) == 0)) {
tty1654drivers/char/stallion.cinsb((ioaddr + EREG_DATA), tty->flip.char_buf_ptr, len);
tty1655drivers/char/stallion.cmemset(tty->flip.flag_buf_ptr, 0, len);
tty1656drivers/char/stallion.ctty->flip.flag_buf_ptr += len;
tty1657drivers/char/stallion.ctty->flip.char_buf_ptr += len;
tty1658drivers/char/stallion.ctty->flip.count += len;
tty1659drivers/char/stallion.ctty_schedule_flip(tty);
tty1666drivers/char/stallion.cif ((tty != (struct tty_struct *) NULL) && ((portp->rxignoremsk & status) == 0)) {
tty1672drivers/char/stallion.cdo_SAK(tty);
tty1686drivers/char/stallion.cif (tty->flip.char_buf_ptr != (char *) NULL) {
tty1687drivers/char/stallion.cif (tty->flip.count < TTY_FLIPBUF_SIZE) {
tty1688drivers/char/stallion.c*tty->flip.flag_buf_ptr++ = status;
tty1689drivers/char/stallion.c*tty->flip.char_buf_ptr++ = ch;
tty1690drivers/char/stallion.ctty->flip.count++;
tty1692drivers/char/stallion.ctty_schedule_flip(tty);
tty1891drivers/char/stallion.cstruct tty_struct  *tty;
tty1901drivers/char/stallion.ctty = portp->tty;
tty1902drivers/char/stallion.cif (tty == (struct tty_struct *) NULL)
tty1906drivers/char/stallion.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && tty->ldisc.write_wakeup)
tty1907drivers/char/stallion.c(tty->ldisc.write_wakeup)(tty);
tty1908drivers/char/stallion.cwake_up_interruptible(&tty->write_wait);
tty1919drivers/char/stallion.ctty_hangup(tty);
tty111drivers/char/tty_io.cstatic void initialize_tty_struct(struct tty_struct *tty);
tty134drivers/char/tty_io.cchar *_tty_name(struct tty_struct *tty, char *buf)
tty136drivers/char/tty_io.cif (tty)
tty137drivers/char/tty_io.csprintf(buf, "%s%d", tty->driver.name,
tty138drivers/char/tty_io.cMINOR(tty->device) - tty->driver.minor_start +
tty139drivers/char/tty_io.ctty->driver.name_base);
tty145drivers/char/tty_io.cchar *tty_name(struct tty_struct *tty)
tty149drivers/char/tty_io.creturn(_tty_name(tty, buf));
tty152drivers/char/tty_io.cinline int tty_paranoia_check(struct tty_struct *tty, kdev_t device,
tty161drivers/char/tty_io.cif (!tty) {
tty165drivers/char/tty_io.cif (tty->magic != TTY_MAGIC) {
tty173drivers/char/tty_io.cstatic int check_tty_count(struct tty_struct *tty, const char *routine)
tty182drivers/char/tty_io.cif (f->private_data == tty) {
tty186drivers/char/tty_io.cif (tty->driver.type == TTY_DRIVER_TYPE_PTY &&
tty187drivers/char/tty_io.ctty->driver.subtype == PTY_TYPE_SLAVE &&
tty188drivers/char/tty_io.ctty->link && tty->link->count)
tty190drivers/char/tty_io.cif (tty->count != count) {
tty192drivers/char/tty_io.ckdevname(tty->device), tty->count, count, routine);
tty215drivers/char/tty_io.cstatic int tty_set_ldisc(struct tty_struct *tty, int ldisc)
tty233drivers/char/tty_io.cif (tty->ldisc.num == ldisc)
tty235drivers/char/tty_io.co_ldisc = tty->ldisc;
tty237drivers/char/tty_io.ctty_wait_until_sent(tty, 0);
tty240drivers/char/tty_io.cif (tty->ldisc.close)
tty241drivers/char/tty_io.c(tty->ldisc.close)(tty);
tty244drivers/char/tty_io.ctty->ldisc = ldiscs[ldisc];
tty245drivers/char/tty_io.ctty->termios->c_line = ldisc;
tty246drivers/char/tty_io.cif (tty->ldisc.open)
tty247drivers/char/tty_io.cretval = (tty->ldisc.open)(tty);
tty249drivers/char/tty_io.ctty->ldisc = o_ldisc;
tty250drivers/char/tty_io.ctty->termios->c_line = tty->ldisc.num;
tty251drivers/char/tty_io.cif (tty->ldisc.open && (tty->ldisc.open(tty) < 0)) {
tty252drivers/char/tty_io.ctty->ldisc = ldiscs[N_TTY];
tty253drivers/char/tty_io.ctty->termios->c_line = N_TTY;
tty254drivers/char/tty_io.cif (tty->ldisc.open) {
tty255drivers/char/tty_io.cint r = tty->ldisc.open(tty);
tty260drivers/char/tty_io.ctty_name(tty), r);
tty264drivers/char/tty_io.cif (tty->ldisc.num != o_ldisc.num && tty->driver.set_ldisc)
tty265drivers/char/tty_io.ctty->driver.set_ldisc(tty);
tty297drivers/char/tty_io.cint tty_check_change(struct tty_struct * tty)
tty299drivers/char/tty_io.cif (current->tty != tty)
tty301drivers/char/tty_io.cif (tty->pgrp <= 0) {
tty305drivers/char/tty_io.cif (current->pgrp == tty->pgrp)
tty369drivers/char/tty_io.cvoid do_tty_hangup(struct tty_struct * tty, struct file_operations *fops)
tty375drivers/char/tty_io.cif (!tty)
tty377drivers/char/tty_io.ccheck_tty_count(tty, "do_tty_hangup");
tty381drivers/char/tty_io.cif (filp->private_data != tty)
tty392drivers/char/tty_io.cif (tty->ldisc.flush_buffer)
tty393drivers/char/tty_io.ctty->ldisc.flush_buffer(tty);
tty394drivers/char/tty_io.cif (tty->driver.flush_buffer)
tty395drivers/char/tty_io.ctty->driver.flush_buffer(tty);
tty396drivers/char/tty_io.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
tty397drivers/char/tty_io.ctty->ldisc.write_wakeup)
tty398drivers/char/tty_io.c(tty->ldisc.write_wakeup)(tty);
tty399drivers/char/tty_io.cwake_up_interruptible(&tty->write_wait);
tty400drivers/char/tty_io.cwake_up_interruptible(&tty->read_wait);
tty406drivers/char/tty_io.cif (tty->ldisc.num != ldiscs[N_TTY].num) {
tty407drivers/char/tty_io.cif (tty->ldisc.close)
tty408drivers/char/tty_io.c(tty->ldisc.close)(tty);
tty409drivers/char/tty_io.ctty->ldisc = ldiscs[N_TTY];
tty410drivers/char/tty_io.ctty->termios->c_line = N_TTY;
tty411drivers/char/tty_io.cif (tty->ldisc.open) {
tty412drivers/char/tty_io.ci = (tty->ldisc.open)(tty);
tty420drivers/char/tty_io.cif ((tty->session > 0) && (p->session == tty->session) &&
tty424drivers/char/tty_io.cif (tty->pgrp > 0)
tty425drivers/char/tty_io.cp->tty_old_pgrp = tty->pgrp;
tty427drivers/char/tty_io.cif (p->tty == tty)
tty428drivers/char/tty_io.cp->tty = NULL;
tty430drivers/char/tty_io.ctty->flags = 0;
tty431drivers/char/tty_io.ctty->session = 0;
tty432drivers/char/tty_io.ctty->pgrp = -1;
tty433drivers/char/tty_io.ctty->ctrl_status = 0;
tty434drivers/char/tty_io.cif (tty->driver.flags & TTY_DRIVER_RESET_TERMIOS)
tty435drivers/char/tty_io.c*tty->termios = tty->driver.init_termios;
tty436drivers/char/tty_io.cif (tty->driver.hangup)
tty437drivers/char/tty_io.c(tty->driver.hangup)(tty);
tty440drivers/char/tty_io.cvoid tty_hangup(struct tty_struct * tty)
tty443drivers/char/tty_io.cprintk("%s hangup...\n", tty_name(tty));
tty445drivers/char/tty_io.cdo_tty_hangup(tty, &hung_up_tty_fops);
tty448drivers/char/tty_io.cvoid tty_vhangup(struct tty_struct * tty)
tty451drivers/char/tty_io.cprintk("%s vhangup...\n", tty_name(tty));
tty453drivers/char/tty_io.cdo_tty_hangup(tty, &hung_up_tty_fops);
tty476drivers/char/tty_io.cstruct tty_struct *tty = current->tty;
tty479drivers/char/tty_io.cif (tty) {
tty481drivers/char/tty_io.ctty_vhangup(tty);
tty489drivers/char/tty_io.cif (tty->pgrp > 0) {
tty490drivers/char/tty_io.ckill_pg(tty->pgrp, SIGHUP, on_exit);
tty491drivers/char/tty_io.ckill_pg(tty->pgrp, SIGCONT, on_exit);
tty495drivers/char/tty_io.ctty->session = 0;
tty496drivers/char/tty_io.ctty->pgrp = -1;
tty500drivers/char/tty_io.cp->tty = NULL;
tty686drivers/char/tty_io.cvoid stop_tty(struct tty_struct *tty)
tty688drivers/char/tty_io.cif (tty->stopped)
tty690drivers/char/tty_io.ctty->stopped = 1;
tty691drivers/char/tty_io.cif (tty->link && tty->link->packet) {
tty692drivers/char/tty_io.ctty->ctrl_status &= ~TIOCPKT_START;
tty693drivers/char/tty_io.ctty->ctrl_status |= TIOCPKT_STOP;
tty694drivers/char/tty_io.cwake_up_interruptible(&tty->link->read_wait);
tty696drivers/char/tty_io.cif (tty->driver.stop)
tty697drivers/char/tty_io.c(tty->driver.stop)(tty);
tty700drivers/char/tty_io.cvoid start_tty(struct tty_struct *tty)
tty702drivers/char/tty_io.cif (!tty->stopped)
tty704drivers/char/tty_io.ctty->stopped = 0;
tty705drivers/char/tty_io.cif (tty->link && tty->link->packet) {
tty706drivers/char/tty_io.ctty->ctrl_status &= ~TIOCPKT_STOP;
tty707drivers/char/tty_io.ctty->ctrl_status |= TIOCPKT_START;
tty708drivers/char/tty_io.cwake_up_interruptible(&tty->link->read_wait);
tty710drivers/char/tty_io.cif (tty->driver.start)
tty711drivers/char/tty_io.c(tty->driver.start)(tty);
tty712drivers/char/tty_io.cif ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
tty713drivers/char/tty_io.ctty->ldisc.write_wakeup)
tty714drivers/char/tty_io.c(tty->ldisc.write_wakeup)(tty);
tty715drivers/char/tty_io.cwake_up_interruptible(&tty->write_wait);
tty721drivers/char/tty_io.cstruct tty_struct * tty;
tty723drivers/char/tty_io.ctty = (struct tty_struct *)file->private_data;
tty724drivers/char/tty_io.cif (tty_paranoia_check(tty, inode->i_rdev, "tty_read"))
tty726drivers/char/tty_io.cif (!tty || (tty->flags & (1 << TTY_IO_ERROR)))
tty735drivers/char/tty_io.c(tty->pgrp > 0) &&
tty736drivers/char/tty_io.c(current->tty == tty) &&
tty737drivers/char/tty_io.c(tty->pgrp != current->pgrp))
tty745drivers/char/tty_io.cif (tty->ldisc.read)
tty747drivers/char/tty_io.ci = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count);
tty758drivers/char/tty_io.cstruct tty_struct * tty;
tty763drivers/char/tty_io.ctty = redirect;
tty765drivers/char/tty_io.ctty = (struct tty_struct *)file->private_data;
tty766drivers/char/tty_io.cif (tty_paranoia_check(tty, inode->i_rdev, "tty_write"))
tty768drivers/char/tty_io.cif (!tty || !tty->driver.write || (tty->flags & (1 << TTY_IO_ERROR)))
tty771drivers/char/tty_io.cif (!is_console && L_TOSTOP(tty) && (tty->pgrp > 0) &&
tty772drivers/char/tty_io.c(current->tty == tty) && (tty->pgrp != current->pgrp)) {
tty781drivers/char/tty_io.cif (tty->ldisc.write)
tty783drivers/char/tty_io.ci = (tty->ldisc.write)(tty,file,(const unsigned char *)buf,(unsigned int)count);
tty798drivers/char/tty_io.cstruct tty_struct *tty, **tty_loc, *o_tty, **o_tty_loc;
tty810drivers/char/tty_io.ctty = o_tty = NULL;
tty827drivers/char/tty_io.cif (!*tty_loc && !tty) {
tty828drivers/char/tty_io.cif (!(tty = (struct tty_struct*) get_free_page(GFP_KERNEL)))
tty830drivers/char/tty_io.cinitialize_tty_struct(tty);
tty831drivers/char/tty_io.ctty->device = device;
tty832drivers/char/tty_io.ctty->driver = *driver;
tty898drivers/char/tty_io.ctty->termios = *tp_loc;
tty899drivers/char/tty_io.ctty->termios_locked = *ltp_loc;
tty900drivers/char/tty_io.c*tty_loc = tty;
tty903drivers/char/tty_io.cif (tty->ldisc.open) {
tty904drivers/char/tty_io.cretval = (tty->ldisc.open)(tty);
tty907drivers/char/tty_io.ctty = NULL;
tty911drivers/char/tty_io.ctty = NULL;
tty954drivers/char/tty_io.cif (tty)
tty955drivers/char/tty_io.cfree_page((unsigned long) tty);
tty976drivers/char/tty_io.cstruct tty_struct *tty, *o_tty;
tty981drivers/char/tty_io.ctty = (struct tty_struct *)filp->private_data;
tty982drivers/char/tty_io.cif (tty_paranoia_check(tty, filp->f_inode->i_rdev, "release_dev"))
tty985drivers/char/tty_io.ccheck_tty_count(tty, "release_dev");
tty989drivers/char/tty_io.ctp = tty->termios;
tty990drivers/char/tty_io.cltp = tty->termios_locked;
tty992drivers/char/tty_io.cidx = MINOR(tty->device) - tty->driver.minor_start;
tty994drivers/char/tty_io.cif (idx < 0 || idx >= tty->driver.num) {
tty996drivers/char/tty_io.ckdevname(tty->device));
tty999drivers/char/tty_io.cif (tty != tty->driver.table[idx]) {
tty1001drivers/char/tty_io.cidx, kdevname(tty->device));
tty1004drivers/char/tty_io.cif (tp != tty->driver.termios[idx]) {
tty1007drivers/char/tty_io.cidx, kdevname(tty->device));
tty1010drivers/char/tty_io.cif (ltp != tty->driver.termios_locked[idx]) {
tty1013drivers/char/tty_io.cidx, kdevname(tty->device));
tty1019drivers/char/tty_io.cprintk("release_dev of %s (tty count=%d)...", tty_name(tty),
tty1020drivers/char/tty_io.ctty->count);
tty1023drivers/char/tty_io.co_tty = tty->link;
tty1028drivers/char/tty_io.cif (tty->driver.other) {
tty1029drivers/char/tty_io.cif (o_tty != tty->driver.other->table[idx]) {
tty1032drivers/char/tty_io.cidx, kdevname(tty->device));
tty1035drivers/char/tty_io.cif (o_tp != tty->driver.other->termios[idx]) {
tty1038drivers/char/tty_io.cidx, kdevname(tty->device));
tty1041drivers/char/tty_io.cif (o_ltp != tty->driver.other->termios_locked[idx]) {
tty1044drivers/char/tty_io.cidx, kdevname(tty->device));
tty1048drivers/char/tty_io.cif (o_tty->link != tty) {
tty1055drivers/char/tty_io.cif (tty->driver.close)
tty1056drivers/char/tty_io.ctty->driver.close(tty, filp);
tty1057drivers/char/tty_io.cif (tty->driver.type == TTY_DRIVER_TYPE_PTY &&
tty1058drivers/char/tty_io.ctty->driver.subtype == PTY_TYPE_MASTER) {
tty1059drivers/char/tty_io.cif (--tty->link->count < 0) {
tty1061drivers/char/tty_io.ctty->count, tty_name(tty));
tty1062drivers/char/tty_io.ctty->link->count = 0;
tty1065drivers/char/tty_io.cif (--tty->count < 0) {
tty1067drivers/char/tty_io.ctty->count, tty_name(tty));
tty1068drivers/char/tty_io.ctty->count = 0;
tty1070drivers/char/tty_io.cif (tty->count)
tty1079drivers/char/tty_io.ctty->driver.other->table[idx] = NULL;
tty1080drivers/char/tty_io.ctty->driver.other->termios[idx] = NULL;
tty1087drivers/char/tty_io.ctty->flags |= (1 << TTY_CLOSING);
tty1096drivers/char/tty_io.cif ((*p)->tty == tty)
tty1097drivers/char/tty_io.c(*p)->tty = NULL;
tty1098drivers/char/tty_io.cif (o_tty && (*p)->tty == o_tty)
tty1099drivers/char/tty_io.c(*p)->tty = NULL;
tty1106drivers/char/tty_io.cif (tty->ldisc.close)
tty1107drivers/char/tty_io.c(tty->ldisc.close)(tty);
tty1108drivers/char/tty_io.ctty->ldisc = ldiscs[N_TTY];
tty1109drivers/char/tty_io.ctty->termios->c_line = N_TTY;
tty1116drivers/char/tty_io.ctty->driver.table[idx] = NULL;
tty1117drivers/char/tty_io.cif (tty->driver.flags & TTY_DRIVER_RESET_TERMIOS) {
tty1118drivers/char/tty_io.ctty->driver.termios[idx] = NULL;
tty1121drivers/char/tty_io.cif (tty == redirect || o_tty == redirect)
tty1128drivers/char/tty_io.cif (tty->flip.tqueue.sync) {
tty1132drivers/char/tty_io.cif (tq == &tty->flip.tqueue) {
tty1142drivers/char/tty_io.ctty->magic = 0;
tty1143drivers/char/tty_io.c(*tty->driver.refcount)--;
tty1144drivers/char/tty_io.cfree_page((unsigned long) tty);
tty1167drivers/char/tty_io.cstruct tty_struct *tty;
tty1176drivers/char/tty_io.cif (!current->tty)
tty1178drivers/char/tty_io.cdevice = current->tty->device;
tty1187drivers/char/tty_io.cretval = init_dev(device, &tty);
tty1190drivers/char/tty_io.cfilp->private_data = tty;
tty1191drivers/char/tty_io.ccheck_tty_count(tty, "tty_open");
tty1192drivers/char/tty_io.cif (tty->driver.type == TTY_DRIVER_TYPE_PTY &&
tty1193drivers/char/tty_io.ctty->driver.subtype == PTY_TYPE_MASTER)
tty1196drivers/char/tty_io.cprintk("opening %s...", tty_name(tty));
tty1198drivers/char/tty_io.cif (tty->driver.open)
tty1199drivers/char/tty_io.cretval = tty->driver.open(tty, filp);
tty1203drivers/char/tty_io.cif (!retval && test_bit(TTY_EXCLUSIVE, &tty->flags) && !suser())
tty1208drivers/char/tty_io.cprintk("error %d in opening %s...", retval, tty_name(tty));
tty1225drivers/char/tty_io.c!current->tty &&
tty1226drivers/char/tty_io.ctty->session == 0) {
tty1227drivers/char/tty_io.ccurrent->tty = tty;
tty1229drivers/char/tty_io.ctty->session = current->session;
tty1230drivers/char/tty_io.ctty->pgrp = current->pgrp;
tty1247drivers/char/tty_io.cstruct tty_struct * tty;
tty1249drivers/char/tty_io.ctty = (struct tty_struct *)filp->private_data;
tty1250drivers/char/tty_io.cif (tty_paranoia_check(tty, inode->i_rdev, "tty_select"))
tty1253drivers/char/tty_io.cif (tty->ldisc.select)
tty1254drivers/char/tty_io.creturn (tty->ldisc.select)(tty, inode, filp, sel_type, wait);
tty1300drivers/char/tty_io.cstruct tty_struct * tty;
tty1303drivers/char/tty_io.ctty = (struct tty_struct *)filp->private_data;
tty1304drivers/char/tty_io.cif (tty_paranoia_check(tty, inode->i_rdev, "tty_fasync"))
tty1307drivers/char/tty_io.cretval = fasync_helper(inode, filp, on, &tty->fasync);
tty1312drivers/char/tty_io.cif (!tty->read_wait)
tty1313drivers/char/tty_io.ctty->minimum_to_wake = 1;
tty1315drivers/char/tty_io.cif (tty->pgrp)
tty1316drivers/char/tty_io.cfilp->f_owner = -tty->pgrp;
tty1321drivers/char/tty_io.cif (!tty->fasync && !tty->read_wait)
tty1322drivers/char/tty_io.ctty->minimum_to_wake = N_TTY_BUF_SIZE;
tty1365drivers/char/tty_io.cstruct tty_struct * tty;
tty1372drivers/char/tty_io.ctty = (struct tty_struct *)file->private_data;
tty1373drivers/char/tty_io.cif (tty_paranoia_check(tty, inode->i_rdev, "tty_ioctl"))
tty1376drivers/char/tty_io.cif (tty->driver.type == TTY_DRIVER_TYPE_PTY &&
tty1377drivers/char/tty_io.ctty->driver.subtype == PTY_TYPE_MASTER)
tty1378drivers/char/tty_io.creal_tty = tty->link;
tty1380drivers/char/tty_io.creal_tty = tty;
tty1384drivers/char/tty_io.cif ((current->tty != tty) && !suser())
tty1390drivers/char/tty_io.ctty->ldisc.receive_buf(tty, &ch, &mbz, 1);
tty1397drivers/char/tty_io.cmemcpy_tofs((struct winsize *) arg, &tty->winsize,
tty1407drivers/char/tty_io.cif (memcmp(&tmp_ws, &tty->winsize,
tty1409drivers/char/tty_io.cif (tty->pgrp > 0)
tty1410drivers/char/tty_io.ckill_pg(tty->pgrp, SIGWINCH, 1);
tty1411drivers/char/tty_io.cif ((real_tty->pgrp != tty->pgrp) &&
tty1415drivers/char/tty_io.ctty->winsize = tmp_ws;
tty1419drivers/char/tty_io.cif (tty->driver.type == TTY_DRIVER_TYPE_CONSOLE) {
tty1440drivers/char/tty_io.cset_bit(TTY_EXCLUSIVE, &tty->flags);
tty1443drivers/char/tty_io.cclear_bit(TTY_EXCLUSIVE, &tty->flags);
tty1446drivers/char/tty_io.cif (current->tty != tty)
tty1450drivers/char/tty_io.ccurrent->tty = NULL;
tty1454drivers/char/tty_io.c(current->session == tty->session))
tty1460drivers/char/tty_io.cif (!current->leader || current->tty)
tty1462drivers/char/tty_io.cif (tty->session > 0) {
tty1474drivers/char/tty_io.cif (p->tty == tty)
tty1475drivers/char/tty_io.cp->tty = NULL;
tty1479drivers/char/tty_io.ccurrent->tty = tty;
tty1481drivers/char/tty_io.ctty->session = current->session;
tty1482drivers/char/tty_io.ctty->pgrp = current->pgrp;
tty1489drivers/char/tty_io.cif (tty == real_tty && current->tty != real_tty)
tty1501drivers/char/tty_io.cif (!current->tty ||
tty1502drivers/char/tty_io.c(current->tty != real_tty) ||
tty1517drivers/char/tty_io.cput_user(tty->ldisc.num, (int *) arg);
tty1520drivers/char/tty_io.cretval = tty_check_change(tty);
tty1524drivers/char/tty_io.creturn tty_set_ldisc(tty, arg);
tty1526drivers/char/tty_io.cif (tty->driver.type != TTY_DRIVER_TYPE_CONSOLE)
tty1528drivers/char/tty_io.cif (current->tty != tty && !suser())
tty1546drivers/char/tty_io.creturn set_selection(arg, tty);
tty1548drivers/char/tty_io.creturn paste_selection(tty);
tty1590drivers/char/tty_io.ctty, sizeof(struct tty_struct));
tty1593drivers/char/tty_io.cif (tty->driver.ioctl) {
tty1594drivers/char/tty_io.cretval = (tty->driver.ioctl)(tty, file,
tty1599drivers/char/tty_io.cif (tty->ldisc.ioctl) {
tty1600drivers/char/tty_io.cretval = (tty->ldisc.ioctl)(tty, file,
tty1622drivers/char/tty_io.cvoid do_SAK( struct tty_struct *tty)
tty1625drivers/char/tty_io.ctty_hangup(tty);
tty1632drivers/char/tty_io.cif (!tty)
tty1634drivers/char/tty_io.csession  = tty->session;
tty1635drivers/char/tty_io.cif (tty->ldisc.flush_buffer)
tty1636drivers/char/tty_io.ctty->ldisc.flush_buffer(tty);
tty1637drivers/char/tty_io.cif (tty->driver.flush_buffer)
tty1638drivers/char/tty_io.ctty->driver.flush_buffer(tty);
tty1642drivers/char/tty_io.cif (((*p)->tty == tty) ||
tty1649drivers/char/tty_io.c(filp->private_data == tty)) {
tty1665drivers/char/tty_io.cstruct tty_struct *tty = (struct tty_struct *) private_;
tty1670drivers/char/tty_io.cif (tty->flip.buf_num) {
tty1671drivers/char/tty_io.ccp = tty->flip.char_buf + TTY_FLIPBUF_SIZE;
tty1672drivers/char/tty_io.cfp = tty->flip.flag_buf + TTY_FLIPBUF_SIZE;
tty1673drivers/char/tty_io.ctty->flip.buf_num = 0;
tty1676drivers/char/tty_io.ctty->flip.char_buf_ptr = tty->flip.char_buf;
tty1677drivers/char/tty_io.ctty->flip.flag_buf_ptr = tty->flip.flag_buf;
tty1679drivers/char/tty_io.ccp = tty->flip.char_buf;
tty1680drivers/char/tty_io.cfp = tty->flip.flag_buf;
tty1681drivers/char/tty_io.ctty->flip.buf_num = 1;
tty1684drivers/char/tty_io.ctty->flip.char_buf_ptr = tty->flip.char_buf + TTY_FLIPBUF_SIZE;
tty1685drivers/char/tty_io.ctty->flip.flag_buf_ptr = tty->flip.flag_buf + TTY_FLIPBUF_SIZE;
tty1687drivers/char/tty_io.ccount = tty->flip.count;
tty1688drivers/char/tty_io.ctty->flip.count = 0;
tty1692drivers/char/tty_io.cif (count > tty->max_flip_cnt)
tty1693drivers/char/tty_io.ctty->max_flip_cnt = count;
tty1695drivers/char/tty_io.ctty->ldisc.receive_buf(tty, cp, fp, count);
tty1701drivers/char/tty_io.cstatic void initialize_tty_struct(struct tty_struct *tty)
tty1703drivers/char/tty_io.cmemset(tty, 0, sizeof(struct tty_struct));
tty1704drivers/char/tty_io.ctty->magic = TTY_MAGIC;
tty1705drivers/char/tty_io.ctty->ldisc = ldiscs[N_TTY];
tty1706drivers/char/tty_io.ctty->pgrp = -1;
tty1707drivers/char/tty_io.ctty->flip.char_buf_ptr = tty->flip.char_buf;
tty1708drivers/char/tty_io.ctty->flip.flag_buf_ptr = tty->flip.flag_buf;
tty1709drivers/char/tty_io.ctty->flip.tqueue.routine = flush_to_ldisc;
tty1710drivers/char/tty_io.ctty->flip.tqueue.data = tty;
tty1716drivers/char/tty_io.cvoid tty_default_put_char(struct tty_struct *tty, unsigned char ch)
tty1718drivers/char/tty_io.ctty->driver.write(tty, 0, &ch, 1);
tty43drivers/char/tty_ioctl.cvoid tty_wait_until_sent(struct tty_struct * tty, int timeout)
tty48drivers/char/tty_ioctl.cprintk("%s wait until sent...\n", tty_name(tty));
tty50drivers/char/tty_ioctl.cif (!tty->driver.chars_in_buffer ||
tty51drivers/char/tty_ioctl.c!tty->driver.chars_in_buffer(tty))
tty53drivers/char/tty_ioctl.cadd_wait_queue(&tty->write_wait, &wait);
tty61drivers/char/tty_ioctl.cprintk("waiting %s...(%d)\n", tty_name(tty), tty->driver.chars_in_buffer(tty));
tty66drivers/char/tty_ioctl.cif (!tty->driver.chars_in_buffer(tty))
tty71drivers/char/tty_ioctl.cremove_wait_queue(&tty->write_wait, &wait);
tty97drivers/char/tty_ioctl.cstatic void change_termios(struct tty_struct * tty, struct termios * new_termios)
tty100drivers/char/tty_ioctl.cstruct termios old_termios = *tty->termios;
tty103drivers/char/tty_ioctl.c*tty->termios = *new_termios;
tty104drivers/char/tty_ioctl.cunset_locked_termios(tty->termios, &old_termios, tty->termios_locked);
tty105drivers/char/tty_ioctl.ccanon_change = (old_termios.c_lflag ^ tty->termios->c_lflag) & ICANON;
tty107drivers/char/tty_ioctl.cmemset(&tty->read_flags, 0, sizeof tty->read_flags);
tty108drivers/char/tty_ioctl.ctty->canon_head = tty->read_tail;
tty109drivers/char/tty_ioctl.ctty->canon_data = 0;
tty110drivers/char/tty_ioctl.ctty->erasing = 0;
tty113drivers/char/tty_ioctl.cif (canon_change && !L_ICANON(tty) && tty->read_cnt)
tty115drivers/char/tty_ioctl.cwake_up_interruptible(&tty->read_wait);
tty119drivers/char/tty_ioctl.cif (tty->link && tty->link->packet) {
tty123drivers/char/tty_ioctl.cint new_flow = (I_IXON(tty) &&
tty124drivers/char/tty_ioctl.cSTOP_CHAR(tty) == '\023' &&
tty125drivers/char/tty_ioctl.cSTART_CHAR(tty) == '\021');
tty127drivers/char/tty_ioctl.ctty->ctrl_status &= ~(TIOCPKT_DOSTOP | TIOCPKT_NOSTOP);
tty129drivers/char/tty_ioctl.ctty->ctrl_status |= TIOCPKT_DOSTOP;
tty131drivers/char/tty_ioctl.ctty->ctrl_status |= TIOCPKT_NOSTOP;
tty132drivers/char/tty_ioctl.cwake_up_interruptible(&tty->link->read_wait);
tty136drivers/char/tty_ioctl.cif (tty->driver.set_termios)
tty137drivers/char/tty_ioctl.c(*tty->driver.set_termios)(tty, &old_termios);
tty139drivers/char/tty_ioctl.cif (tty->ldisc.set_termios)
tty140drivers/char/tty_ioctl.c(*tty->ldisc.set_termios)(tty, &old_termios);
tty143drivers/char/tty_ioctl.cstatic int set_termios(struct tty_struct * tty, unsigned long arg, int opt)
tty148drivers/char/tty_ioctl.cretval = tty_check_change(tty);
tty157drivers/char/tty_ioctl.ctmp_termios = *tty->termios;
tty169drivers/char/tty_ioctl.cif ((opt & TERMIOS_FLUSH) && tty->ldisc.flush_buffer)
tty170drivers/char/tty_ioctl.ctty->ldisc.flush_buffer(tty);
tty173drivers/char/tty_ioctl.ctty_wait_until_sent(tty, 0);
tty175drivers/char/tty_ioctl.cchange_termios(tty, &tmp_termios);
tty179drivers/char/tty_ioctl.cstatic int get_termio(struct tty_struct * tty, struct termio * termio)
tty187drivers/char/tty_ioctl.ctrans_to_termio(tty->termios, &tmp_termio);
tty192drivers/char/tty_ioctl.cstatic unsigned long inq_canon(struct tty_struct * tty)
tty196drivers/char/tty_ioctl.cif (!tty->canon_data || !tty->read_buf)
tty198drivers/char/tty_ioctl.chead = tty->canon_head;
tty199drivers/char/tty_ioctl.ctail = tty->read_tail;
tty203drivers/char/tty_ioctl.cif (test_bit(tail, &tty->read_flags) &&
tty204drivers/char/tty_ioctl.ctty->read_buf[tail] == __DISABLED_CHAR)
tty217drivers/char/tty_ioctl.cstatic int get_sgflags(struct tty_struct * tty)
tty221drivers/char/tty_ioctl.cif (!(tty->termios->c_lflag & ICANON))
tty222drivers/char/tty_ioctl.cif (tty->termios->c_lflag & ISIG)
tty226drivers/char/tty_ioctl.cif (tty->termios->c_lflag & ECHO)
tty228drivers/char/tty_ioctl.cif (tty->termios->c_oflag & OPOST)
tty229drivers/char/tty_ioctl.cif (tty->termios->c_oflag & ONLCR)
tty234drivers/char/tty_ioctl.cstatic int get_sgttyb(struct tty_struct * tty, struct sgttyb * sgttyb)
tty244drivers/char/tty_ioctl.ctmp.sg_erase = tty->termios->c_cc[VERASE];
tty245drivers/char/tty_ioctl.ctmp.sg_kill = tty->termios->c_cc[VKILL];
tty246drivers/char/tty_ioctl.ctmp.sg_flags = get_sgflags(tty);
tty276drivers/char/tty_ioctl.cstatic int set_sgttyb(struct tty_struct * tty, struct sgttyb * sgttyb)
tty285drivers/char/tty_ioctl.cretval = tty_check_change(tty);
tty288drivers/char/tty_ioctl.ctermios =  *tty->termios;
tty293drivers/char/tty_ioctl.cchange_termios(tty, &termios);
tty299drivers/char/tty_ioctl.cstatic int get_tchars(struct tty_struct * tty, struct tchars * tchars)
tty307drivers/char/tty_ioctl.ctmp.t_intrc = tty->termios->c_cc[VINTR];
tty308drivers/char/tty_ioctl.ctmp.t_quitc = tty->termios->c_cc[VQUIT];
tty309drivers/char/tty_ioctl.ctmp.t_startc = tty->termios->c_cc[VSTART];
tty310drivers/char/tty_ioctl.ctmp.t_stopc = tty->termios->c_cc[VSTOP];
tty311drivers/char/tty_ioctl.ctmp.t_eofc = tty->termios->c_cc[VEOF];
tty312drivers/char/tty_ioctl.ctmp.t_brkc = tty->termios->c_cc[VEOL2];  /* what is brkc anyway? */
tty317drivers/char/tty_ioctl.cstatic int set_tchars(struct tty_struct * tty, struct tchars * tchars)
tty326drivers/char/tty_ioctl.ctty->termios->c_cc[VINTR] = tmp.t_intrc;
tty327drivers/char/tty_ioctl.ctty->termios->c_cc[VQUIT] = tmp.t_quitc;
tty328drivers/char/tty_ioctl.ctty->termios->c_cc[VSTART] = tmp.t_startc;
tty329drivers/char/tty_ioctl.ctty->termios->c_cc[VSTOP] = tmp.t_stopc;
tty330drivers/char/tty_ioctl.ctty->termios->c_cc[VEOF] = tmp.t_eofc;
tty331drivers/char/tty_ioctl.ctty->termios->c_cc[VEOL2] = tmp.t_brkc;  /* what is brkc anyway? */
tty337drivers/char/tty_ioctl.cstatic int get_ltchars(struct tty_struct * tty, struct ltchars * ltchars)
tty345drivers/char/tty_ioctl.ctmp.t_suspc = tty->termios->c_cc[VSUSP];
tty346drivers/char/tty_ioctl.ctmp.t_dsuspc = tty->termios->c_cc[VSUSP];  /* what is dsuspc anyway? */
tty347drivers/char/tty_ioctl.ctmp.t_rprntc = tty->termios->c_cc[VREPRINT];
tty348drivers/char/tty_ioctl.ctmp.t_flushc = tty->termios->c_cc[VEOL2];  /* what is flushc anyway? */
tty349drivers/char/tty_ioctl.ctmp.t_werasc = tty->termios->c_cc[VWERASE];
tty350drivers/char/tty_ioctl.ctmp.t_lnextc = tty->termios->c_cc[VLNEXT];
tty355drivers/char/tty_ioctl.cstatic int set_ltchars(struct tty_struct * tty, struct ltchars * ltchars)
tty364drivers/char/tty_ioctl.ctty->termios->c_cc[VSUSP] = tmp.t_suspc;
tty365drivers/char/tty_ioctl.ctty->termios->c_cc[VEOL2] = tmp.t_dsuspc;  /* what is dsuspc anyway? */
tty366drivers/char/tty_ioctl.ctty->termios->c_cc[VREPRINT] = tmp.t_rprntc;
tty367drivers/char/tty_ioctl.ctty->termios->c_cc[VEOL2] = tmp.t_flushc;  /* what is flushc anyway? */
tty368drivers/char/tty_ioctl.ctty->termios->c_cc[VWERASE] = tmp.t_werasc;
tty369drivers/char/tty_ioctl.ctty->termios->c_cc[VLNEXT] = tmp.t_lnextc;
tty374drivers/char/tty_ioctl.cint n_tty_ioctl(struct tty_struct * tty, struct file * file,
tty381drivers/char/tty_ioctl.cif (tty->driver.type == TTY_DRIVER_TYPE_PTY &&
tty382drivers/char/tty_ioctl.ctty->driver.subtype == PTY_TYPE_MASTER)
tty383drivers/char/tty_ioctl.creal_tty = tty->link;
tty385drivers/char/tty_ioctl.creal_tty = tty;
tty431drivers/char/tty_ioctl.cretval = tty_check_change(tty);
tty436drivers/char/tty_ioctl.cstop_tty(tty);
tty439drivers/char/tty_ioctl.cstart_tty(tty);
tty442drivers/char/tty_ioctl.cif (STOP_CHAR(tty) != __DISABLED_CHAR)
tty443drivers/char/tty_ioctl.ctty->driver.write(tty, 0,
tty444drivers/char/tty_ioctl.c&STOP_CHAR(tty), 1);
tty447drivers/char/tty_ioctl.cif (START_CHAR(tty) != __DISABLED_CHAR)
tty448drivers/char/tty_ioctl.ctty->driver.write(tty, 0,
tty449drivers/char/tty_ioctl.c&START_CHAR(tty), 1);
tty456drivers/char/tty_ioctl.cretval = tty_check_change(tty);
tty461drivers/char/tty_ioctl.cif (tty->ldisc.flush_buffer)
tty462drivers/char/tty_ioctl.ctty->ldisc.flush_buffer(tty);
tty465drivers/char/tty_ioctl.cif (tty->ldisc.flush_buffer)
tty466drivers/char/tty_ioctl.ctty->ldisc.flush_buffer(tty);
tty469drivers/char/tty_ioctl.cif (tty->driver.flush_buffer)
tty470drivers/char/tty_ioctl.ctty->driver.flush_buffer(tty);
tty481drivers/char/tty_ioctl.cif (tty->driver.chars_in_buffer)
tty482drivers/char/tty_ioctl.cput_user(tty->driver.chars_in_buffer(tty),
tty492drivers/char/tty_ioctl.cif (L_ICANON(tty))
tty493drivers/char/tty_ioctl.cput_fs_long(inq_canon(tty),
tty496drivers/char/tty_ioctl.cput_fs_long(tty->read_cnt,
tty520drivers/char/tty_ioctl.cif (tty->driver.type != TTY_DRIVER_TYPE_PTY ||
tty521drivers/char/tty_ioctl.ctty->driver.subtype != PTY_TYPE_MASTER)
tty528drivers/char/tty_ioctl.cif (!tty->packet) {
tty529drivers/char/tty_ioctl.ctty->packet = 1;
tty530drivers/char/tty_ioctl.ctty->link->ctrl_status = 0;
tty533drivers/char/tty_ioctl.ctty->packet = 0;
tty538drivers/char/tty_ioctl.cretval = tty_check_change(tty);
tty541drivers/char/tty_ioctl.ctty_wait_until_sent(tty, 0);
tty542drivers/char/tty_ioctl.cif (!tty->driver.ioctl)
tty544drivers/char/tty_ioctl.ctty->driver.ioctl(tty, file, cmd, arg);
tty125drivers/char/vt.cif ( p->tty && MAJOR(p->tty->device) == TTY_MAJOR &&
tty126drivers/char/vt.cMINOR(p->tty->device) <= MAX_NR_CONSOLES && MINOR(p->tty->device) )
tty196drivers/char/vt.cint vt_ioctl(struct tty_struct *tty, struct file * file,
tty203drivers/char/vt.cstruct vt_struct *vt = (struct vt_struct *)tty->driver_data;
tty215drivers/char/vt.cif (current->tty == tty || suser())
tty342drivers/char/vt.cif (tty->ldisc.flush_buffer)
tty343drivers/char/vt.ctty->ldisc.flush_buffer(tty);
tty237drivers/net/ppp.cstatic int ppp_tty_select (struct tty_struct *tty, struct inode *inode,
tty241drivers/net/ppp.cstatic int ppp_tty_room (struct tty_struct *tty);
tty242drivers/net/ppp.cstatic void ppp_tty_receive (struct tty_struct *tty, const u_char * cp,
tty244drivers/net/ppp.cstatic void ppp_tty_wakeup (struct tty_struct *tty);
tty255drivers/net/ppp.c#define tty2ppp(tty)  ((struct ppp *) (tty->disc_data))
tty257drivers/net/ppp.c#define ppp2tty(ppp)  ((struct tty_struct *) ppp->tty)
tty727drivers/net/ppp.cppp->tty->flags &= ~(1 << TTY_DO_WRITE_WAKEUP);
tty769drivers/net/ppp.cstruct tty_struct *tty;
tty772drivers/net/ppp.ctty = ppp2tty (ppp);
tty777drivers/net/ppp.cif (tty != NULL && tty->disc_data == ppp)
tty778drivers/net/ppp.ctty->disc_data = NULL;  /* Break the tty->ppp link */
tty806drivers/net/ppp.cppp->tty   = NULL;
tty816drivers/net/ppp.cppp_tty_close (struct tty_struct *tty)
tty818drivers/net/ppp.cstruct ppp *ppp = tty2ppp (tty);
tty843drivers/net/ppp.cppp_tty_open (struct tty_struct *tty)
tty845drivers/net/ppp.cstruct ppp *ppp = tty2ppp (tty);
tty871drivers/net/ppp.cppp->tty       = tty;
tty872drivers/net/ppp.ctty->disc_data = ppp;
tty876drivers/net/ppp.cif (tty->ldisc.flush_buffer)
tty877drivers/net/ppp.ctty->ldisc.flush_buffer (tty);
tty879drivers/net/ppp.cif (tty->driver.flush_buffer)
tty880drivers/net/ppp.ctty->driver.flush_buffer (tty);
tty931drivers/net/ppp.cppp_tty_wakeup_code (struct ppp *ppp, struct tty_struct *tty,
tty949drivers/net/ppp.cactual = tty->driver.write (tty, 0,
tty972drivers/net/ppp.ctty->flags  &= ~(1 << TTY_DO_WRITE_WAKEUP);
tty1025drivers/net/ppp.cppp_tty_wakeup (struct tty_struct *tty)
tty1028drivers/net/ppp.cstruct ppp *ppp = tty2ppp (tty);
tty1041drivers/net/ppp.ctty->flags &= ~(1 << TTY_DO_WRITE_WAKEUP);
tty1043drivers/net/ppp.cppp_tty_wakeup_code (ppp, tty, xbuf);
tty1082drivers/net/ppp.cppp->tty->flags |= (1 << TTY_DO_WRITE_WAKEUP);
tty1106drivers/net/ppp.cppp_tty_room (struct tty_struct *tty)
tty1116drivers/net/ppp.cppp_tty_receive (struct tty_struct *tty, const u_char * data,
tty1119drivers/net/ppp.cregister struct ppp *ppp = tty2ppp (tty);
tty1406drivers/net/ppp.cif (ppp->tty->fasync != NULL)
tty1407drivers/net/ppp.ckill_fasync (ppp->tty->fasync, SIGIO);
tty1773drivers/net/ppp.cppp_tty_read (struct tty_struct *tty, struct file *file, u_char * buf,
tty1776drivers/net/ppp.cstruct ppp *ppp = tty2ppp (tty);
tty1805drivers/net/ppp.cppp = tty2ppp (tty);
tty2163drivers/net/ppp.cppp_tty_write (struct tty_struct *tty, struct file *file, const u_char * data,
tty2166drivers/net/ppp.cstruct ppp *ppp = tty2ppp (tty);
tty2209drivers/net/ppp.cppp = tty2ppp (tty);
tty2327drivers/net/ppp.cppp_tty_ioctl (struct tty_struct *tty, struct file *file, unsigned int param2,
tty2330drivers/net/ppp.cstruct ppp *ppp = tty2ppp (tty);
tty2598drivers/net/ppp.cerror = n_tty_ioctl (tty, file, param2, param3);
tty2623drivers/net/ppp.cppp_tty_select (struct tty_struct *tty, struct inode *inode,
tty2626drivers/net/ppp.cstruct ppp *ppp = tty2ppp (tty);
tty2657drivers/net/ppp.cif (tty->flags & (1 << TTY_SLAVE_CLOSED))
tty2895drivers/net/ppp.cstruct tty_struct *tty = ppp2tty (ppp);
tty2904drivers/net/ppp.cif (tty == NULL) {
tty3022drivers/net/ppp.cstruct tty_struct *tty = ppp2tty (ppp);
tty3027drivers/net/ppp.cif (tty == NULL) {
tty3121drivers/net/ppp.cstruct tty_struct *tty = ppp2tty (ppp);
tty3147drivers/net/ppp.cif (tty == NULL) {
tty3343drivers/net/ppp.cppp->tty       = NULL;
tty3556drivers/net/ppp.cif (ppp->inuse && ppp->tty != NULL) {
tty147drivers/net/slip.cslp->ctrl.tty         = NULL;
tty445drivers/net/slip.csl->tty->flags |= (1 << TTY_DO_WRITE_WAKEUP);
tty446drivers/net/slip.cactual = sl->tty->driver.write(sl->tty, 0, sl->xbuff, count);
tty460drivers/net/slip.cstatic void slip_write_wakeup(struct tty_struct *tty)
tty463drivers/net/slip.cstruct slip *sl = (struct slip *) tty->disc_data;
tty473drivers/net/slip.ctty->flags &= ~(1 << TTY_DO_WRITE_WAKEUP);
tty480drivers/net/slip.cactual = tty->driver.write(tty, 0, sl->xhead, sl->xleft);
tty515drivers/net/slip.c(sl->tty->driver.chars_in_buffer(sl->tty) || sl->xleft) ?
tty518drivers/net/slip.csl->tty->flags &= ~(1 << TTY_DO_WRITE_WAKEUP);
tty580drivers/net/slip.cif (sl->tty == NULL) {
tty672drivers/net/slip.cif (sl->tty == NULL) {
tty675drivers/net/slip.csl->tty->flags &= ~(1 << TTY_DO_WRITE_WAKEUP);
tty685drivers/net/slip.cslip_receive_room(struct tty_struct *tty)
tty697drivers/net/slip.cslip_receive_buf(struct tty_struct *tty, const unsigned char *cp, char *fp, int count)
tty699drivers/net/slip.cstruct slip *sl = (struct slip *) tty->disc_data;
tty742drivers/net/slip.cslip_open(struct tty_struct *tty)
tty744drivers/net/slip.cstruct slip *sl = (struct slip *) tty->disc_data;
tty757drivers/net/slip.csl->tty = tty;
tty758drivers/net/slip.ctty->disc_data = sl;
tty759drivers/net/slip.cif (tty->driver.flush_buffer)  {
tty760drivers/net/slip.ctty->driver.flush_buffer(tty);
tty762drivers/net/slip.cif (tty->ldisc.flush_buffer)  {
tty763drivers/net/slip.ctty->ldisc.flush_buffer(tty);
tty793drivers/net/slip.cslip_close(struct tty_struct *tty)
tty795drivers/net/slip.cstruct slip *sl = (struct slip *) tty->disc_data;
tty804drivers/net/slip.ctty->disc_data = 0;
tty805drivers/net/slip.csl->tty = NULL;
tty1036drivers/net/slip.cslip_ioctl(struct tty_struct *tty, void *file, int cmd, void *arg)
tty1038drivers/net/slip.cstruct slip *sl = (struct slip *) tty->disc_data;
tty1172drivers/net/slip.creturn n_tty_ioctl(tty, (struct file *) file, cmd, (unsigned long) arg);
tty1182drivers/net/slip.cif(sl->tty==NULL)
tty1375drivers/net/slip.csl->tty->flags |= (1 << TTY_DO_WRITE_WAKEUP);
tty1376drivers/net/slip.csl->tty->driver.write(sl->tty, 0, &s, 1);
tty1405drivers/net/slip.ctty_hangup(sl->tty); /* this must hangup tty & close slip */
tty52drivers/net/slip.hstruct tty_struct  *tty;    /* ptr to TTY structure    */
tty384fs/dquot.ctty_write_message(current->tty, quotamessage);
tty395fs/dquot.ctty_write_message(current->tty, quotamessage);
tty405fs/dquot.ctty_write_message(current->tty, quotamessage);
tty422fs/dquot.ctty_write_message(current->tty, quotamessage);
tty433fs/dquot.ctty_write_message(current->tty, quotamessage);
tty443fs/dquot.ctty_write_message(current->tty, quotamessage);
tty614fs/open.cif (current->tty)
tty615fs/open.ctty_vhangup(current->tty);
tty498fs/proc/array.cif (tsk->tty)
tty499fs/proc/array.ctty_pgrp = tsk->tty->pgrp;
tty519fs/proc/array.ctsk->tty ? kdev_t_to_nr(tsk->tty->device) : 0,
tty79include/linux/cyclades.hstruct tty_struct   *tty;
tty112include/linux/if_pppvar.hstruct tty_struct  *tty;    /* ptr to TTY structure  */
tty232include/linux/scc.hstruct tty_struct *tty; /* link to tty control structure */
tty234include/linux/sched.hstruct tty_struct *tty; /* NULL if no tty */
tty138include/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))
tty288include/linux/tty.hextern int tty_paranoia_check(struct tty_struct *tty, kdev_t device,
tty290include/linux/tty.hextern char *_tty_name(struct tty_struct *tty, char *buf);
tty291include/linux/tty.hextern char *tty_name(struct tty_struct *tty);
tty292include/linux/tty.hextern void tty_wait_until_sent(struct tty_struct * tty, int timeout);
tty293include/linux/tty.hextern int tty_check_change(struct tty_struct * tty);
tty294include/linux/tty.hextern void stop_tty(struct tty_struct * tty);
tty295include/linux/tty.hextern void start_tty(struct tty_struct * tty);
tty299include/linux/tty.hextern int tty_read_raw_data(struct tty_struct *tty, unsigned char *bufp,
tty301include/linux/tty.hextern void tty_write_message(struct tty_struct *tty, char *msg);
tty305include/linux/tty.hextern int tty_signal(int sig, struct tty_struct *tty);
tty306include/linux/tty.hextern void tty_hangup(struct tty_struct * tty);
tty307include/linux/tty.hextern void tty_vhangup(struct tty_struct * tty);
tty310include/linux/tty.hextern void do_SAK(struct tty_struct *tty);
tty317include/linux/tty.hextern int n_tty_ioctl(struct tty_struct * tty, struct file * file,
tty322include/linux/tty.hextern int  rs_open(struct tty_struct * tty, struct file * filp);
tty326include/linux/tty.hextern int  pty_open(struct tty_struct * tty, struct file * filp);
tty330include/linux/tty.hextern int con_open(struct tty_struct * tty, struct file * filp);
tty336include/linux/tty.hextern int vt_ioctl(struct tty_struct *tty, struct file * file,
tty124include/linux/tty_driver.hint  (*open)(struct tty_struct * tty, struct file * filp);
tty125include/linux/tty_driver.hvoid (*close)(struct tty_struct * tty, struct file * filp);
tty126include/linux/tty_driver.hint  (*write)(struct tty_struct * tty, int from_user,
tty128include/linux/tty_driver.hvoid (*put_char)(struct tty_struct *tty, unsigned char ch);
tty129include/linux/tty_driver.hvoid (*flush_chars)(struct tty_struct *tty);
tty130include/linux/tty_driver.hint  (*write_room)(struct tty_struct *tty);
tty131include/linux/tty_driver.hint  (*chars_in_buffer)(struct tty_struct *tty);
tty132include/linux/tty_driver.hint  (*ioctl)(struct tty_struct *tty, struct file * file,
tty134include/linux/tty_driver.hvoid (*set_termios)(struct tty_struct *tty, struct termios * old);
tty135include/linux/tty_driver.hvoid (*throttle)(struct tty_struct * tty);
tty136include/linux/tty_driver.hvoid (*unthrottle)(struct tty_struct * tty);
tty137include/linux/tty_driver.hvoid (*stop)(struct tty_struct *tty);
tty138include/linux/tty_driver.hvoid (*start)(struct tty_struct *tty);
tty139include/linux/tty_driver.hvoid (*hangup)(struct tty_struct *tty);
tty140include/linux/tty_driver.hvoid (*flush_buffer)(struct tty_struct *tty);
tty141include/linux/tty_driver.hvoid (*set_ldisc)(struct tty_struct *tty);
tty10include/linux/tty_flip.h_INLINE_ void tty_insert_flip_char(struct tty_struct *tty,
tty13include/linux/tty_flip.hif (tty->flip.count++ >= TTY_FLIPBUF_SIZE)
tty15include/linux/tty_flip.h*tty->flip.flag_buf_ptr++ = flag;
tty16include/linux/tty_flip.h*tty->flip.char_buf_ptr++ = ch;
tty19include/linux/tty_flip.h_INLINE_ void tty_schedule_flip(struct tty_struct *tty)
tty21include/linux/tty_flip.hqueue_task(&tty->flip.tqueue, &tq_timer);
tty20include/linux/tty_ldisc.hvoid  (*flush_buffer)(struct tty_struct *tty);
tty21include/linux/tty_ldisc.hint  (*chars_in_buffer)(struct tty_struct *tty);
tty22include/linux/tty_ldisc.hint  (*read)(struct tty_struct * tty, struct file * file,
tty24include/linux/tty_ldisc.hint  (*write)(struct tty_struct * tty, struct file * file,
tty26include/linux/tty_ldisc.hint  (*ioctl)(struct tty_struct * tty, struct file * file,
tty28include/linux/tty_ldisc.hvoid  (*set_termios)(struct tty_struct *tty, struct termios * old);
tty29include/linux/tty_ldisc.hint  (*select)(struct tty_struct * tty, struct inode * inode,
tty248kernel/printk.cvoid tty_write_message(struct tty_struct *tty, char *msg)
tty250kernel/printk.cif (tty && tty->driver.write)
tty251kernel/printk.ctty->driver.write(tty, 0, msg, strlen(msg));
tty591kernel/sys.ccurrent->tty = NULL;