Home
last modified time | relevance | path

Searched refs:cdevs (Results 1 – 4 of 4) sorted by relevance

/linux-4.1.27/drivers/tty/
Dtty_io.c3220 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()
[all …]
/linux-4.1.27/drivers/scsi/
Dst.h71 struct cdev *cdevs[2]; /* Auto-rewind and non-rewind devices */ member
Dst.c2226 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()
/linux-4.1.27/include/linux/
Dtty_driver.h299 struct cdev *cdevs; member