Lines Matching refs:cdev
269 cdev_init(&vol->cdev, &ubi_vol_cdev_operations); in ubi_create_volume()
270 vol->cdev.owner = THIS_MODULE; in ubi_create_volume()
271 dev = MKDEV(MAJOR(ubi->cdev.dev), vol_id + 1); in ubi_create_volume()
272 err = cdev_add(&vol->cdev, dev, 1); in ubi_create_volume()
329 cdev_del(&vol->cdev); in ubi_create_volume()
394 cdev_del(&vol->cdev); in ubi_remove_volume()
595 cdev_init(&vol->cdev, &ubi_vol_cdev_operations); in ubi_add_volume()
596 vol->cdev.owner = THIS_MODULE; in ubi_add_volume()
597 dev = MKDEV(MAJOR(ubi->cdev.dev), vol->vol_id + 1); in ubi_add_volume()
598 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()