Lines Matching refs:cdev
265 cdev_init(&vol->cdev, &ubi_vol_cdev_operations); in ubi_create_volume()
266 vol->cdev.owner = THIS_MODULE; in ubi_create_volume()
267 dev = MKDEV(MAJOR(ubi->cdev.dev), vol_id + 1); in ubi_create_volume()
268 err = cdev_add(&vol->cdev, dev, 1); in ubi_create_volume()
327 cdev_del(&vol->cdev); in ubi_create_volume()
392 cdev_del(&vol->cdev); in ubi_remove_volume()
593 cdev_init(&vol->cdev, &ubi_vol_cdev_operations); in ubi_add_volume()
594 vol->cdev.owner = THIS_MODULE; in ubi_add_volume()
595 dev = MKDEV(MAJOR(ubi->cdev.dev), vol->vol_id + 1); in ubi_add_volume()
596 err = cdev_add(&vol->cdev, dev, 1); in ubi_add_volume()
619 cdev_del(&vol->cdev); in ubi_add_volume()
636 cdev_del(&vol->cdev); in ubi_free_volume()