Lines Matching refs:MKDEV
313 dev_t base = MKDEV(p->major, p->minor_start); in get_tty_driver()
360 *number = MKDEV(p->major, p->minor_start + index); in tty_dev_name_to_number()
1878 if (device != MKDEV(TTYAUX_MAJOR, 0)) in tty_open_current_tty()
1918 case MKDEV(TTY_MAJOR, 0): { in tty_lookup_driver()
1926 case MKDEV(TTYAUX_MAJOR, 1): { in tty_lookup_driver()
2170 (IS_ENABLED(CONFIG_VT) && device == MKDEV(TTY_MAJOR, 0)) || in tty_open()
2171 device == MKDEV(TTYAUX_MAJOR, 1) || in tty_open()
3215 dev_t devt = MKDEV(driver->major, driver->minor_start) + index; in tty_register_device_attr()
3292 MKDEV(driver->major, driver->minor_start) + index); in tty_unregister_device()
3426 dev = MKDEV(driver->major, driver->minor_start); in tty_register_driver()
3478 unregister_chrdev_region(MKDEV(driver->major, driver->minor_start), in tty_unregister_driver()
3488 return MKDEV(tty->driver->major, tty->driver->minor_start) + tty->index; in tty_devnum()
3501 if (dev->devt == MKDEV(TTYAUX_MAJOR, 0) || in tty_devnode()
3502 dev->devt == MKDEV(TTYAUX_MAJOR, 2)) in tty_devnode()
3583 if (cdev_add(&tty_cdev, MKDEV(TTYAUX_MAJOR, 0), 1) || in tty_init()
3584 register_chrdev_region(MKDEV(TTYAUX_MAJOR, 0), 1, "/dev/tty") < 0) in tty_init()
3586 device_create(tty_class, NULL, MKDEV(TTYAUX_MAJOR, 0), NULL, "tty"); in tty_init()
3589 if (cdev_add(&console_cdev, MKDEV(TTYAUX_MAJOR, 1), 1) || in tty_init()
3590 register_chrdev_region(MKDEV(TTYAUX_MAJOR, 1), 1, "/dev/console") < 0) in tty_init()
3593 MKDEV(TTYAUX_MAJOR, 1), NULL, in tty_init()