Lines Matching refs:dev_t
307 static struct tty_driver *get_tty_driver(dev_t device, int *index)
312 dev_t base = MKDEV(p->major, p->minor_start);
323 * tty_dev_name_to_number - return dev_t for device name
325 * @number: pointer to dev_t that this function will populate
327 * This function converts device names like ttyS0 or ttyUSB1 into dev_t like
335 int tty_dev_name_to_number(const char *name, dev_t *number)
1874 static struct tty_struct *tty_open_current_tty(dev_t device, struct file *filp)
1912 static struct tty_driver *tty_lookup_driver(dev_t device, struct file *filp,
1951 static struct tty_struct *tty_kopen(dev_t device, int shared)
1987 * @device: dev_t of device to open
1999 struct tty_struct *tty_kopen_exclusive(dev_t device)
2007 * @device: dev_t of device to open
2014 struct tty_struct *tty_kopen_shared(dev_t device)
2022 * @device: dev_t of device to open
2036 static struct tty_struct *tty_open_by_driver(dev_t device,
2115 dev_t device = inode->i_rdev;
3073 dev_t devt = tty_devnum(tty);
3148 static int tty_cdev_add(struct tty_driver *driver, dev_t dev,
3221 dev_t devt = MKDEV(driver->major, driver->minor_start) + index;
3420 dev_t dev;
3491 dev_t tty_devnum(struct tty_struct *tty)