Lines Matching refs:rew
4167 static int create_one_cdev(struct scsi_tape *tape, int mode, int rew) in create_one_cdev() argument
4177 cdev_devno = MKDEV(SCSI_TAPE_MAJOR, TAPE_MINOR(dev_num, mode, rew)); in create_one_cdev()
4187 STm->cdevs[rew] = cdev; in create_one_cdev()
4192 rew ? "non" : "auto", mode); in create_one_cdev()
4198 snprintf(name, 10, "%s%s%s", rew ? "n" : "", in create_one_cdev()
4209 STm->devs[rew] = dev; in create_one_cdev()
4213 cdev_del(STm->cdevs[rew]); in create_one_cdev()
4215 STm->cdevs[rew] = NULL; in create_one_cdev()
4216 STm->devs[rew] = NULL; in create_one_cdev()
4238 int mode, rew; in remove_cdevs() local
4242 for (rew = 0; rew < 2; rew++) { in remove_cdevs()
4243 if (STm->cdevs[rew]) in remove_cdevs()
4244 cdev_del(STm->cdevs[rew]); in remove_cdevs()
4245 if (STm->devs[rew]) in remove_cdevs()
4246 device_unregister(STm->devs[rew]); in remove_cdevs()