Lines Matching refs:cdevs
3215 driver->cdevs[index] = cdev_alloc(); in tty_cdev_add()
3216 if (!driver->cdevs[index]) in tty_cdev_add()
3218 driver->cdevs[index]->ops = &tty_fops; in tty_cdev_add()
3219 driver->cdevs[index]->owner = driver->owner; in tty_cdev_add()
3220 err = cdev_add(driver->cdevs[index], dev, count); in tty_cdev_add()
3222 kobject_put(&driver->cdevs[index]->kobj); in tty_cdev_add()
3330 cdev_del(driver->cdevs[index]); in tty_register_device_attr()
3331 driver->cdevs[index] = NULL; in tty_register_device_attr()
3353 cdev_del(driver->cdevs[index]); in tty_unregister_device()
3354 driver->cdevs[index] = NULL; in tty_unregister_device()
3372 unsigned int cdevs = 1; in __tty_alloc_driver() local
3406 cdevs = lines; in __tty_alloc_driver()
3409 driver->cdevs = kcalloc(cdevs, sizeof(*driver->cdevs), GFP_KERNEL); in __tty_alloc_driver()
3410 if (!driver->cdevs) { in __tty_alloc_driver()
3420 kfree(driver->cdevs); in __tty_alloc_driver()
3449 cdev_del(driver->cdevs[0]); in destruct_tty_driver()
3451 kfree(driver->cdevs); in destruct_tty_driver()