Searched refs:cdevs (Results 1 – 4 of 4) sorted by relevance
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() local3401 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()[all …]
71 struct cdev *cdevs[2]; /* Auto-rewind and non-rewind devices */ member
2226 cd0 = STm->cdevs[0];2227 cd1 = STm->cdevs[1];2231 STm->cdevs[0] = cd0;2232 STm->cdevs[1] = cd1;4040 STm->cdevs[rew] = cdev; in create_one_cdev()4058 cdev_del(STm->cdevs[rew]); in create_one_cdev()4059 STm->cdevs[rew] = NULL; in create_one_cdev()4087 if (STm->cdevs[rew]) in remove_cdevs()4088 cdev_del(STm->cdevs[rew]); in remove_cdevs()
299 struct cdev *cdevs; member