Lines Matching refs:driver
39 if (tty->driver->subtype == PTY_TYPE_MASTER) in pty_close()
59 if (tty->driver->subtype == PTY_TYPE_MASTER) { in pty_close()
62 if (tty->driver == ptm_driver) { in pty_close()
241 if (tty->driver->subtype == PTY_TYPE_SLAVE && tty->link->count != 1) in pty_open()
372 static int pty_common_install(struct tty_driver *driver, struct tty_struct *tty, in pty_common_install() argument
381 if (driver->subtype != PTY_TYPE_MASTER) in pty_common_install()
388 if (!try_module_get(driver->other->owner)) { in pty_common_install()
392 o_tty = alloc_tty_struct(driver->other, idx); in pty_common_install()
410 driver->other->ttys[idx] = o_tty; in pty_common_install()
411 driver->ttys[idx] = tty; in pty_common_install()
414 tty->termios = driver->init_termios; in pty_common_install()
416 o_tty->termios = driver->other->init_termios; in pty_common_install()
422 tty_driver_kref_get(driver->other); in pty_common_install()
436 tty_driver_kref_get(driver); in pty_common_install()
447 module_put(driver->other->owner); in pty_common_install()
462 static int pty_install(struct tty_driver *driver, struct tty_struct *tty) in pty_install() argument
464 return pty_common_install(driver, tty, true); in pty_install()
467 static void pty_remove(struct tty_driver *driver, struct tty_struct *tty) in pty_remove() argument
470 driver->ttys[tty->index] = NULL; in pty_remove()
472 pair->driver->ttys[pair->index] = NULL; in pty_remove()
628 static struct tty_struct *ptm_unix98_lookup(struct tty_driver *driver, in ptm_unix98_lookup() argument
644 static struct tty_struct *pts_unix98_lookup(struct tty_driver *driver, in pts_unix98_lookup() argument
661 static int pty_unix98_install(struct tty_driver *driver, struct tty_struct *tty) in pty_unix98_install() argument
663 return pty_common_install(driver, tty, false); in pty_unix98_install()
666 static void pty_unix98_remove(struct tty_driver *driver, struct tty_struct *tty) in pty_unix98_remove() argument
675 if (tty->driver->subtype == PTY_TYPE_MASTER) in pty_unix98_shutdown()