tag | line | file | source code |
driver | 1315 | drivers/char/console.c | console_num = MINOR(tty->device) - (tty->driver.minor_start); |
driver | 1330 | drivers/char/console.c | console_num = MINOR(tty->device) - (tty->driver.minor_start); |
driver | 2158 | drivers/char/console.c | idx = MINOR(tty->device) - tty->driver.minor_start; |
driver | 515 | 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 | 566 | drivers/char/n_tty.c | if (tty->driver.flush_chars) |
driver | 567 | drivers/char/n_tty.c | tty->driver.flush_chars(tty); |
driver | 578 | drivers/char/n_tty.c | tty->driver.throttle && |
driver | 580 | drivers/char/n_tty.c | tty->driver.throttle(tty); |
driver | 660 | drivers/char/n_tty.c | (tty->driver.flags & TTY_DRIVER_REAL_RAW)) |
driver | 877 | drivers/char/n_tty.c | if (tty->driver.unthrottle && |
driver | 880 | drivers/char/n_tty.c | tty->driver.unthrottle(tty); |
driver | 937 | drivers/char/n_tty.c | if (tty->driver.flush_chars) |
driver | 938 | drivers/char/n_tty.c | tty->driver.flush_chars(tty); |
driver | 940 | drivers/char/n_tty.c | c = tty->driver.write(tty, 1, b, nr); |
driver | 982 | 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 | 1866 | drivers/char/serial.c | if (tty->driver.flush_buffer) |
driver | 1867 | drivers/char/serial.c | tty->driver.flush_buffer(tty); |
driver | 1944 | drivers/char/serial.c | if (tty->driver.subtype == SERIAL_TYPE_CALLOUT) { |
driver | 2049 | drivers/char/serial.c | line = MINOR(tty->device) - tty->driver.minor_start; |
driver | 2057 | drivers/char/serial.c | printk("rs_open %s%d, count = %d\n", tty->driver.name, info->line, |
driver | 2087 | drivers/char/serial.c | if (tty->driver.subtype == SERIAL_TYPE_NORMAL) |
driver | 113 | drivers/char/tty_io.c | sprintf(buf, "%s%d", tty->driver.name, |
driver | 114 | drivers/char/tty_io.c | MINOR(tty->device) - tty->driver.minor_start + |
driver | 115 | drivers/char/tty_io.c | tty->driver.name_base); |
driver | 205 | drivers/char/tty_io.c | if (tty->ldisc.num != o_ldisc.num && tty->driver.set_ldisc) |
driver | 206 | drivers/char/tty_io.c | tty->driver.set_ldisc(tty); |
driver | 333 | drivers/char/tty_io.c | if (tty->driver.flush_buffer) |
driver | 334 | drivers/char/tty_io.c | tty->driver.flush_buffer(tty); |
driver | 369 | drivers/char/tty_io.c | if (tty->driver.flags & TTY_DRIVER_RESET_TERMIOS) |
driver | 370 | drivers/char/tty_io.c | *tty->termios = tty->driver.init_termios; |
driver | 371 | drivers/char/tty_io.c | if (tty->driver.hangup) |
driver | 372 | drivers/char/tty_io.c | (tty->driver.hangup)(tty); |
driver | 615 | drivers/char/tty_io.c | if (tty->driver.stop) |
driver | 616 | drivers/char/tty_io.c | (tty->driver.stop)(tty); |
driver | 629 | drivers/char/tty_io.c | if (tty->driver.start) |
driver | 630 | drivers/char/tty_io.c | (tty->driver.start)(tty); |
driver | 687 | drivers/char/tty_io.c | if (!tty || !tty->driver.write || (tty->flags & (1 << TTY_IO_ERROR))) |
driver | 720 | drivers/char/tty_io.c | struct tty_driver *driver; |
driver | 724 | drivers/char/tty_io.c | driver = get_tty_driver(device); |
driver | 725 | drivers/char/tty_io.c | if (!driver) |
driver | 728 | drivers/char/tty_io.c | idx = MINOR(device) - driver->minor_start; |
driver | 735 | drivers/char/tty_io.c | tty_loc = &driver->table[idx]; |
driver | 736 | drivers/char/tty_io.c | tp_loc = &driver->termios[idx]; |
driver | 737 | drivers/char/tty_io.c | ltp_loc = &driver->termios_locked[idx]; |
driver | 741 | drivers/char/tty_io.c | if (driver->type == TTY_DRIVER_TYPE_PTY && |
driver | 742 | drivers/char/tty_io.c | driver->subtype == PTY_TYPE_MASTER && |
driver | 751 | drivers/char/tty_io.c | tty->driver = *driver; |
driver | 759 | drivers/char/tty_io.c | *tp = driver->init_termios; |
driver | 770 | drivers/char/tty_io.c | if (driver->type == TTY_DRIVER_TYPE_PTY) { |
driver | 771 | drivers/char/tty_io.c | o_tty_loc = &driver->other->table[idx]; |
driver | 772 | drivers/char/tty_io.c | o_tp_loc = &driver->other->termios[idx]; |
driver | 773 | drivers/char/tty_io.c | o_ltp_loc = &driver->other->termios_locked[idx]; |
driver | 782 | drivers/char/tty_io.c | o_device = MKDEV(driver->other->major, |
driver | 783 | drivers/char/tty_io.c | driver->other->minor_start + idx); |
driver | 786 | drivers/char/tty_io.c | o_tty->driver = *driver->other; |
driver | 794 | drivers/char/tty_io.c | *o_tp = driver->other->init_termios; |
driver | 820 | drivers/char/tty_io.c | (*driver->refcount)++; |
driver | 833 | drivers/char/tty_io.c | if (driver->type == TTY_DRIVER_TYPE_PTY) { |
driver | 846 | drivers/char/tty_io.c | (*driver->other->refcount)++; |
driver | 859 | drivers/char/tty_io.c | if (driver->subtype == PTY_TYPE_MASTER) |
driver | 862 | drivers/char/tty_io.c | (*tty_loc)->driver = *driver; |
driver | 903 | drivers/char/tty_io.c | idx = MINOR(tty->device) - tty->driver.minor_start; |
driver | 905 | drivers/char/tty_io.c | if (idx < 0 || idx >= tty->driver.num) { |
driver | 910 | drivers/char/tty_io.c | if (tty != tty->driver.table[idx]) { |
driver | 915 | drivers/char/tty_io.c | if (tp != tty->driver.termios[idx]) { |
driver | 920 | drivers/char/tty_io.c | if (ltp != tty->driver.termios_locked[idx]) { |
driver | 937 | drivers/char/tty_io.c | if (tty->driver.other) { |
driver | 938 | drivers/char/tty_io.c | if (o_tty != tty->driver.other->table[idx]) { |
driver | 943 | drivers/char/tty_io.c | if (o_tp != tty->driver.other->termios[idx]) { |
driver | 948 | drivers/char/tty_io.c | if (o_ltp != tty->driver.other->termios_locked[idx]) { |
driver | 961 | drivers/char/tty_io.c | if (tty->driver.close) |
driver | 962 | drivers/char/tty_io.c | tty->driver.close(tty, filp); |
driver | 963 | drivers/char/tty_io.c | if (tty->driver.type == TTY_DRIVER_TYPE_PTY && |
driver | 964 | drivers/char/tty_io.c | tty->driver.subtype == PTY_TYPE_MASTER) { |
driver | 982 | drivers/char/tty_io.c | tty->driver.other->table[idx] = NULL; |
driver | 983 | drivers/char/tty_io.c | tty->driver.other->termios[idx] = NULL; |
driver | 1019 | drivers/char/tty_io.c | tty->driver.table[idx] = NULL; |
driver | 1020 | drivers/char/tty_io.c | if (tty->driver.flags & TTY_DRIVER_RESET_TERMIOS) { |
driver | 1021 | drivers/char/tty_io.c | tty->driver.termios[idx] = NULL; |
driver | 1046 | drivers/char/tty_io.c | (*tty->driver.refcount)--; |
driver | 1050 | drivers/char/tty_io.c | (*o_tty->driver.refcount)--; |
driver | 1093 | drivers/char/tty_io.c | if (tty->driver.type == TTY_DRIVER_TYPE_PTY && |
driver | 1094 | drivers/char/tty_io.c | tty->driver.subtype == PTY_TYPE_MASTER) |
driver | 1099 | drivers/char/tty_io.c | if (tty->driver.open) |
driver | 1100 | drivers/char/tty_io.c | retval = tty->driver.open(tty, filp); |
driver | 1251 | drivers/char/tty_io.c | if (tty->driver.type == TTY_DRIVER_TYPE_PTY && |
driver | 1252 | drivers/char/tty_io.c | tty->driver.subtype == PTY_TYPE_MASTER) |
driver | 1294 | drivers/char/tty_io.c | if (tty->driver.type == TTY_DRIVER_TYPE_CONSOLE) { |
driver | 1437 | drivers/char/tty_io.c | if (tty->driver.ioctl) { |
driver | 1438 | drivers/char/tty_io.c | retval = (tty->driver.ioctl)(tty, file, |
driver | 1481 | drivers/char/tty_io.c | if (tty->driver.flush_buffer) |
driver | 1482 | drivers/char/tty_io.c | tty->driver.flush_buffer(tty); |
driver | 1562 | drivers/char/tty_io.c | tty->driver.write(tty, 0, &ch, 1); |
driver | 1568 | drivers/char/tty_io.c | int tty_register_driver(struct tty_driver *driver) |
driver | 1572 | drivers/char/tty_io.c | if (driver->flags & TTY_DRIVER_INSTALLED) |
driver | 1575 | drivers/char/tty_io.c | error = register_chrdev(driver->major, driver->name, &tty_fops); |
driver | 1578 | drivers/char/tty_io.c | else if(driver->major == 0) |
driver | 1579 | drivers/char/tty_io.c | driver->major = error; |
driver | 1581 | drivers/char/tty_io.c | if (!driver->put_char) |
driver | 1582 | drivers/char/tty_io.c | driver->put_char = tty_default_put_char; |
driver | 1584 | drivers/char/tty_io.c | driver->prev = 0; |
driver | 1585 | drivers/char/tty_io.c | driver->next = tty_drivers; |
driver | 1586 | drivers/char/tty_io.c | tty_drivers->prev = driver; |
driver | 1587 | drivers/char/tty_io.c | tty_drivers = driver; |
driver | 1594 | drivers/char/tty_io.c | int tty_unregister_driver(struct tty_driver *driver) |
driver | 1601 | drivers/char/tty_io.c | if (driver->refcount) |
driver | 1605 | drivers/char/tty_io.c | if (p == driver) |
driver | 1607 | drivers/char/tty_io.c | else if (p->major == driver->major) |
driver | 1612 | drivers/char/tty_io.c | retval = unregister_chrdev(driver->major, driver->name); |
driver | 1617 | drivers/char/tty_io.c | if (driver->prev) |
driver | 1618 | drivers/char/tty_io.c | driver->prev->next = driver->next; |
driver | 1620 | drivers/char/tty_io.c | tty_drivers = driver->next; |
driver | 1622 | drivers/char/tty_io.c | if (driver->next) |
driver | 1623 | drivers/char/tty_io.c | driver->next = driver->next->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 | 171 | drivers/char/tty_ioctl.c | if (tty->driver.set_termios) |
driver | 172 | drivers/char/tty_ioctl.c | (*tty->driver.set_termios)(tty, &old_termios); |
driver | 225 | drivers/char/tty_ioctl.c | if (tty->driver.type == TTY_DRIVER_TYPE_PTY && |
driver | 226 | drivers/char/tty_ioctl.c | tty->driver.subtype == PTY_TYPE_MASTER) |
driver | 268 | drivers/char/tty_ioctl.c | tty->driver.write(tty, 0, |
driver | 273 | drivers/char/tty_ioctl.c | tty->driver.write(tty, 0, |
driver | 294 | drivers/char/tty_ioctl.c | if (tty->driver.flush_buffer) |
driver | 295 | drivers/char/tty_ioctl.c | tty->driver.flush_buffer(tty); |
driver | 306 | drivers/char/tty_ioctl.c | if (tty->driver.chars_in_buffer) |
driver | 307 | drivers/char/tty_ioctl.c | put_fs_long(tty->driver.chars_in_buffer(tty), |
driver | 345 | drivers/char/tty_ioctl.c | if (tty->driver.type != TTY_DRIVER_TYPE_PTY || |
driver | 346 | drivers/char/tty_ioctl.c | tty->driver.subtype != PTY_TYPE_MASTER) |
driver | 367 | drivers/char/tty_ioctl.c | if (!tty->driver.ioctl) |
driver | 369 | drivers/char/tty_ioctl.c | tty->driver.ioctl(tty, file, cmd, arg); |
driver | 530 | drivers/net/ppp.c | if (tty->driver.flush_buffer) |
driver | 531 | drivers/net/ppp.c | tty->driver.flush_buffer(tty); |
driver | 699 | drivers/net/ppp.c | actual = ppp->tty->driver.write(ppp->tty, 0, ppp->xbuff, count); |
driver | 734 | drivers/net/ppp.c | actual = tty->driver.write(tty, 0, ppp->xtail, count); |
driver | 390 | drivers/net/slip.c | actual = sl->tty->driver.write(sl->tty, 0, sl->xbuff, count); |
driver | 428 | drivers/net/slip.c | answer = tty->driver.write(tty, 0, sl->xtail, count); |
driver | 715 | drivers/net/slip.c | if (tty->driver.flush_buffer) |
driver | 716 | drivers/net/slip.c | tty->driver.flush_buffer(tty); |
driver | 196 | include/linux/tty.h | struct tty_driver driver; |
driver | 291 | include/linux/tty.h | extern int tty_register_driver(struct tty_driver *driver); |
driver | 292 | include/linux/tty.h | extern int tty_unregister_driver(struct tty_driver *driver); |