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()
335 cdev_del(&vol->cdev); in ubi_create_volume()
400 cdev_del(&vol->cdev); in ubi_remove_volume()
601 cdev_init(&vol->cdev, &ubi_vol_cdev_operations); in ubi_add_volume()
602 vol->cdev.owner = THIS_MODULE; in ubi_add_volume()
603 dev = MKDEV(MAJOR(ubi->cdev.dev), vol->vol_id + 1); in ubi_add_volume()
604 err = cdev_add(&vol->cdev, dev, 1); in ubi_add_volume()
627 cdev_del(&vol->cdev); in ubi_add_volume()
644 cdev_del(&vol->cdev); in ubi_free_volume()