Lines Matching refs:cdevs
3220 cdev_init(&driver->cdevs[index], &tty_fops); in tty_cdev_add()
3221 driver->cdevs[index].owner = driver->owner; in tty_cdev_add()
3222 return cdev_add(&driver->cdevs[index], dev, count); in tty_cdev_add()
3329 cdev_del(&driver->cdevs[index]); in tty_register_device_attr()
3350 cdev_del(&driver->cdevs[index]); in tty_unregister_device()
3367 unsigned int cdevs = 1; in __tty_alloc_driver() local
3401 cdevs = lines; in __tty_alloc_driver()
3404 driver->cdevs = kcalloc(cdevs, sizeof(*driver->cdevs), GFP_KERNEL); in __tty_alloc_driver()
3405 if (!driver->cdevs) { in __tty_alloc_driver()
3443 cdev_del(&driver->cdevs[0]); in destruct_tty_driver()
3445 kfree(driver->cdevs); in destruct_tty_driver()