tag | line | file | source code |
driver | 1388 | drivers/char/console.c | console_num = MINOR(tty->device) - (tty->driver.minor_start); |
driver | 1403 | drivers/char/console.c | console_num = MINOR(tty->device) - (tty->driver.minor_start); |
driver | 2352 | drivers/char/console.c | idx = MINOR(tty->device) - tty->driver.minor_start; |
driver | 2338 | drivers/char/cyclades.c | if (tty->driver.flush_buffer) |
driver | 2339 | drivers/char/cyclades.c | tty->driver.flush_buffer(tty); |
driver | 2435 | drivers/char/cyclades.c | if (tty->driver.subtype == SERIAL_TYPE_CALLOUT) { |
driver | 2565 | drivers/char/cyclades.c | line = MINOR(tty->device) - tty->driver.minor_start; |
driver | 2597 | drivers/char/cyclades.c | if (tty->driver.subtype == SERIAL_TYPE_NORMAL) |
driver | 947 | drivers/char/istallion.c | if (tty->driver.subtype == STL_DRVTYPCALLOUT) { |
driver | 971 | drivers/char/istallion.c | if (tty->driver.subtype == STL_DRVTYPSERIAL) |
driver | 524 | drivers/char/keyboard.c | (L_ECHO(tty) || (tty->driver.chars_in_buffer(tty) == 0)))) { |
driver | 79 | drivers/char/n_tty.c | if (tty->driver.unthrottle) |
driver | 80 | drivers/char/n_tty.c | (tty->driver.unthrottle)(tty); |
driver | 103 | drivers/char/n_tty.c | space = tty->driver.write_room(tty); |
driver | 115 | drivers/char/n_tty.c | tty->driver.put_char(tty, '\r'); |
driver | 137 | drivers/char/n_tty.c | tty->driver.write(tty, 0, " ", spaces); |
driver | 154 | drivers/char/n_tty.c | tty->driver.put_char(tty, c); |
driver | 160 | drivers/char/n_tty.c | tty->driver.put_char(tty, c); |
driver | 292 | drivers/char/n_tty.c | if (tty->driver.flush_buffer) |
driver | 293 | drivers/char/n_tty.c | tty->driver.flush_buffer(tty); |
driver | 576 | drivers/char/n_tty.c | if (tty->driver.flush_chars) |
driver | 577 | drivers/char/n_tty.c | tty->driver.flush_chars(tty); |
driver | 588 | drivers/char/n_tty.c | tty->driver.throttle && |
driver | 590 | drivers/char/n_tty.c | tty->driver.throttle(tty); |
driver | 670 | drivers/char/n_tty.c | (tty->driver.flags & TTY_DRIVER_REAL_RAW)) |
driver | 887 | drivers/char/n_tty.c | if (tty->driver.unthrottle && |
driver | 890 | drivers/char/n_tty.c | tty->driver.unthrottle(tty); |
driver | 947 | drivers/char/n_tty.c | if (tty->driver.flush_chars) |
driver | 948 | drivers/char/n_tty.c | tty->driver.flush_chars(tty); |
driver | 950 | drivers/char/n_tty.c | c = tty->driver.write(tty, 1, b, nr); |
driver | 992 | drivers/char/n_tty.c | if (tty->driver.chars_in_buffer(tty) < WAKEUP_CHARS) |
driver | 67 | drivers/char/pty.c | if (tty->driver.subtype == PTY_TYPE_MASTER) { |
driver | 80 | drivers/char/pty.c | if (tty->driver.subtype == PTY_TYPE_MASTER) |
driver | 125 | drivers/char/pty.c | ((tty->driver.subtype-1) * PTY_BUF_SIZE); |
driver | 189 | drivers/char/pty.c | line = MINOR(tty->device) - tty->driver.minor_start; |
driver | 201 | drivers/char/pty.c | if (tty->driver.subtype == PTY_TYPE_SLAVE) |
driver | 1718 | drivers/char/scc.c | chan = MINOR(tty->device) - tty->driver.minor_start; |
driver | 2077 | drivers/char/serial.c | if (tty->driver.flush_buffer) |
driver | 2078 | drivers/char/serial.c | tty->driver.flush_buffer(tty); |
driver | 2157 | drivers/char/serial.c | if (tty->driver.subtype == SERIAL_TYPE_CALLOUT) { |
driver | 2268 | drivers/char/serial.c | line = MINOR(tty->device) - tty->driver.minor_start; |
driver | 2276 | drivers/char/serial.c | printk("rs_open %s%d, count = %d\n", tty->driver.name, info->line, |
driver | 2306 | drivers/char/serial.c | if (tty->driver.subtype == SERIAL_TYPE_NORMAL) |
driver | 740 | drivers/char/stallion.c | if (tty->driver.subtype == STL_DRVTYPCALLOUT) { |
driver | 764 | drivers/char/stallion.c | if (tty->driver.subtype == STL_DRVTYPSERIAL) |
driver | 122 | drivers/char/tty_io.c | sprintf(buf, "%s%d", tty->driver.name, |
driver | 123 | drivers/char/tty_io.c | MINOR(tty->device) - tty->driver.minor_start + |
driver | 124 | drivers/char/tty_io.c | tty->driver.name_base); |
driver | 171 | drivers/char/tty_io.c | if (tty->driver.type == TTY_DRIVER_TYPE_PTY && |
driver | 172 | drivers/char/tty_io.c | tty->driver.subtype == PTY_TYPE_SLAVE && |
driver | 241 | drivers/char/tty_io.c | if (tty->ldisc.num != o_ldisc.num && tty->driver.set_ldisc) |
driver | 242 | drivers/char/tty_io.c | tty->driver.set_ldisc(tty); |
driver | 370 | drivers/char/tty_io.c | if (tty->driver.flush_buffer) |
driver | 371 | drivers/char/tty_io.c | tty->driver.flush_buffer(tty); |
driver | 410 | drivers/char/tty_io.c | if (tty->driver.flags & TTY_DRIVER_RESET_TERMIOS) |
driver | 411 | drivers/char/tty_io.c | *tty->termios = tty->driver.init_termios; |
driver | 412 | drivers/char/tty_io.c | if (tty->driver.hangup) |
driver | 413 | drivers/char/tty_io.c | (tty->driver.hangup)(tty); |
driver | 666 | drivers/char/tty_io.c | if (tty->driver.stop) |
driver | 667 | drivers/char/tty_io.c | (tty->driver.stop)(tty); |
driver | 680 | drivers/char/tty_io.c | if (tty->driver.start) |
driver | 681 | drivers/char/tty_io.c | (tty->driver.start)(tty); |
driver | 738 | drivers/char/tty_io.c | if (!tty || !tty->driver.write || (tty->flags & (1 << TTY_IO_ERROR))) |
driver | 771 | drivers/char/tty_io.c | struct tty_driver *driver; |
driver | 775 | drivers/char/tty_io.c | driver = get_tty_driver(device); |
driver | 776 | drivers/char/tty_io.c | if (!driver) |
driver | 779 | drivers/char/tty_io.c | idx = MINOR(device) - driver->minor_start; |
driver | 786 | drivers/char/tty_io.c | tty_loc = &driver->table[idx]; |
driver | 787 | drivers/char/tty_io.c | tp_loc = &driver->termios[idx]; |
driver | 788 | drivers/char/tty_io.c | ltp_loc = &driver->termios_locked[idx]; |
driver | 792 | drivers/char/tty_io.c | if (driver->type == TTY_DRIVER_TYPE_PTY && |
driver | 793 | drivers/char/tty_io.c | driver->subtype == PTY_TYPE_MASTER && |
driver | 802 | drivers/char/tty_io.c | tty->driver = *driver; |
driver | 810 | drivers/char/tty_io.c | *tp = driver->init_termios; |
driver | 821 | drivers/char/tty_io.c | if (driver->type == TTY_DRIVER_TYPE_PTY) { |
driver | 822 | drivers/char/tty_io.c | o_tty_loc = &driver->other->table[idx]; |
driver | 823 | drivers/char/tty_io.c | o_tp_loc = &driver->other->termios[idx]; |
driver | 824 | drivers/char/tty_io.c | o_ltp_loc = &driver->other->termios_locked[idx]; |
driver | 833 | drivers/char/tty_io.c | o_device = MKDEV(driver->other->major, |
driver | 834 | drivers/char/tty_io.c | driver->other->minor_start + idx); |
driver | 837 | drivers/char/tty_io.c | o_tty->driver = *driver->other; |
driver | 845 | drivers/char/tty_io.c | *o_tp = driver->other->init_termios; |
driver | 871 | drivers/char/tty_io.c | (*driver->refcount)++; |
driver | 891 | drivers/char/tty_io.c | if (driver->type == TTY_DRIVER_TYPE_PTY) { |
driver | 904 | drivers/char/tty_io.c | (*driver->other->refcount)++; |
driver | 917 | drivers/char/tty_io.c | if (driver->subtype == PTY_TYPE_MASTER) |
driver | 920 | drivers/char/tty_io.c | (*tty_loc)->driver = *driver; |
driver | 962 | drivers/char/tty_io.c | idx = MINOR(tty->device) - tty->driver.minor_start; |
driver | 964 | drivers/char/tty_io.c | if (idx < 0 || idx >= tty->driver.num) { |
driver | 969 | drivers/char/tty_io.c | if (tty != tty->driver.table[idx]) { |
driver | 974 | drivers/char/tty_io.c | if (tp != tty->driver.termios[idx]) { |
driver | 979 | drivers/char/tty_io.c | if (ltp != tty->driver.termios_locked[idx]) { |
driver | 996 | drivers/char/tty_io.c | if (tty->driver.other) { |
driver | 997 | drivers/char/tty_io.c | if (o_tty != tty->driver.other->table[idx]) { |
driver | 1002 | drivers/char/tty_io.c | if (o_tp != tty->driver.other->termios[idx]) { |
driver | 1007 | drivers/char/tty_io.c | if (o_ltp != tty->driver.other->termios_locked[idx]) { |
driver | 1020 | drivers/char/tty_io.c | if (tty->driver.close) |
driver | 1021 | drivers/char/tty_io.c | tty->driver.close(tty, filp); |
driver | 1022 | drivers/char/tty_io.c | if (tty->driver.type == TTY_DRIVER_TYPE_PTY && |
driver | 1023 | drivers/char/tty_io.c | tty->driver.subtype == PTY_TYPE_MASTER) { |
driver | 1044 | drivers/char/tty_io.c | tty->driver.other->table[idx] = NULL; |
driver | 1045 | drivers/char/tty_io.c | tty->driver.other->termios[idx] = NULL; |
driver | 1081 | drivers/char/tty_io.c | tty->driver.table[idx] = NULL; |
driver | 1082 | drivers/char/tty_io.c | if (tty->driver.flags & TTY_DRIVER_RESET_TERMIOS) { |
driver | 1083 | drivers/char/tty_io.c | tty->driver.termios[idx] = NULL; |
driver | 1108 | drivers/char/tty_io.c | (*tty->driver.refcount)--; |
driver | 1113 | drivers/char/tty_io.c | (*o_tty->driver.refcount)--; |
driver | 1157 | drivers/char/tty_io.c | if (tty->driver.type == TTY_DRIVER_TYPE_PTY && |
driver | 1158 | drivers/char/tty_io.c | tty->driver.subtype == PTY_TYPE_MASTER) |
driver | 1163 | drivers/char/tty_io.c | if (tty->driver.open) |
driver | 1164 | drivers/char/tty_io.c | retval = tty->driver.open(tty, filp); |
driver | 1341 | drivers/char/tty_io.c | if (tty->driver.type == TTY_DRIVER_TYPE_PTY && |
driver | 1342 | drivers/char/tty_io.c | tty->driver.subtype == PTY_TYPE_MASTER) |
driver | 1384 | drivers/char/tty_io.c | if (tty->driver.type == TTY_DRIVER_TYPE_CONSOLE) { |
driver | 1491 | drivers/char/tty_io.c | if (tty->driver.type != TTY_DRIVER_TYPE_CONSOLE) |
driver | 1547 | drivers/char/tty_io.c | if (tty->driver.ioctl) { |
driver | 1548 | drivers/char/tty_io.c | retval = (tty->driver.ioctl)(tty, file, |
driver | 1591 | drivers/char/tty_io.c | if (tty->driver.flush_buffer) |
driver | 1592 | drivers/char/tty_io.c | tty->driver.flush_buffer(tty); |
driver | 1672 | drivers/char/tty_io.c | tty->driver.write(tty, 0, &ch, 1); |
driver | 1678 | drivers/char/tty_io.c | int tty_register_driver(struct tty_driver *driver) |
driver | 1682 | drivers/char/tty_io.c | if (driver->flags & TTY_DRIVER_INSTALLED) |
driver | 1685 | drivers/char/tty_io.c | error = register_chrdev(driver->major, driver->name, &tty_fops); |
driver | 1688 | drivers/char/tty_io.c | else if(driver->major == 0) |
driver | 1689 | drivers/char/tty_io.c | driver->major = error; |
driver | 1691 | drivers/char/tty_io.c | if (!driver->put_char) |
driver | 1692 | drivers/char/tty_io.c | driver->put_char = tty_default_put_char; |
driver | 1694 | drivers/char/tty_io.c | driver->prev = 0; |
driver | 1695 | drivers/char/tty_io.c | driver->next = tty_drivers; |
driver | 1696 | drivers/char/tty_io.c | if (tty_drivers) tty_drivers->prev = driver; |
driver | 1697 | drivers/char/tty_io.c | tty_drivers = driver; |
driver | 1704 | drivers/char/tty_io.c | int tty_unregister_driver(struct tty_driver *driver) |
driver | 1711 | drivers/char/tty_io.c | if (*driver->refcount) |
driver | 1715 | drivers/char/tty_io.c | if (p == driver) |
driver | 1717 | drivers/char/tty_io.c | else if (p->major == driver->major) |
driver | 1722 | drivers/char/tty_io.c | retval = unregister_chrdev(driver->major, driver->name); |
driver | 1726 | drivers/char/tty_io.c | register_chrdev(driver->major, othername, &tty_fops); |
driver | 1728 | drivers/char/tty_io.c | if (driver->prev) |
driver | 1729 | drivers/char/tty_io.c | driver->prev->next = driver->next; |
driver | 1731 | drivers/char/tty_io.c | tty_drivers = driver->next; |
driver | 1733 | drivers/char/tty_io.c | if (driver->next) |
driver | 1734 | drivers/char/tty_io.c | driver->next->prev = driver->prev; |
driver | 50 | drivers/char/tty_ioctl.c | if (!tty->driver.chars_in_buffer || |
driver | 51 | drivers/char/tty_ioctl.c | !tty->driver.chars_in_buffer(tty)) |
driver | 61 | drivers/char/tty_ioctl.c | printk("waiting %s...(%d)\n", tty_name(tty), tty->driver.chars_in_buffer(tty)); |
driver | 66 | drivers/char/tty_ioctl.c | if (!tty->driver.chars_in_buffer(tty)) |
driver | 136 | drivers/char/tty_ioctl.c | if (tty->driver.set_termios) |
driver | 137 | drivers/char/tty_ioctl.c | (*tty->driver.set_termios)(tty, &old_termios); |
driver | 381 | drivers/char/tty_ioctl.c | if (tty->driver.type == TTY_DRIVER_TYPE_PTY && |
driver | 382 | drivers/char/tty_ioctl.c | tty->driver.subtype == PTY_TYPE_MASTER) |
driver | 443 | drivers/char/tty_ioctl.c | tty->driver.write(tty, 0, |
driver | 448 | drivers/char/tty_ioctl.c | tty->driver.write(tty, 0, |
driver | 469 | drivers/char/tty_ioctl.c | if (tty->driver.flush_buffer) |
driver | 470 | drivers/char/tty_ioctl.c | tty->driver.flush_buffer(tty); |
driver | 481 | drivers/char/tty_ioctl.c | if (tty->driver.chars_in_buffer) |
driver | 482 | drivers/char/tty_ioctl.c | put_user(tty->driver.chars_in_buffer(tty), |
driver | 520 | drivers/char/tty_ioctl.c | if (tty->driver.type != TTY_DRIVER_TYPE_PTY || |
driver | 521 | drivers/char/tty_ioctl.c | tty->driver.subtype != PTY_TYPE_MASTER) |
driver | 542 | drivers/char/tty_ioctl.c | if (!tty->driver.ioctl) |
driver | 544 | drivers/char/tty_ioctl.c | tty->driver.ioctl(tty, file, cmd, arg); |
driver | 536 | drivers/net/ppp.c | if (tty->driver.flush_buffer) |
driver | 537 | drivers/net/ppp.c | tty->driver.flush_buffer(tty); |
driver | 709 | drivers/net/ppp.c | actual = ppp->tty->driver.write(ppp->tty, 0, ppp->xbuff, count); |
driver | 744 | drivers/net/ppp.c | actual = tty->driver.write(tty, 0, ppp->xtail, count); |
driver | 442 | drivers/net/slip.c | actual = sl->tty->driver.write(sl->tty, 0, sl->xbuff, count); |
driver | 474 | drivers/net/slip.c | actual = tty->driver.write(tty, 0, sl->xhead, sl->xleft); |
driver | 509 | drivers/net/slip.c | (sl->tty->driver.chars_in_buffer(sl->tty) || sl->xleft) ? |
driver | 744 | drivers/net/slip.c | if (tty->driver.flush_buffer) { |
driver | 745 | drivers/net/slip.c | tty->driver.flush_buffer(tty); |
driver | 201 | include/linux/tty.h | struct tty_driver driver; |
driver | 300 | include/linux/tty.h | extern int tty_register_driver(struct tty_driver *driver); |
driver | 301 | include/linux/tty.h | extern int tty_unregister_driver(struct tty_driver *driver); |