Lines Matching full:rew
4191 static int create_one_cdev(struct scsi_tape *tape, int mode, int rew) in create_one_cdev() argument
4201 cdev_devno = MKDEV(SCSI_TAPE_MAJOR, TAPE_MINOR(dev_num, mode, rew)); in create_one_cdev()
4211 STm->cdevs[rew] = cdev; in create_one_cdev()
4216 rew ? "non" : "auto", mode); in create_one_cdev()
4222 snprintf(name, 10, "%s%s%s", rew ? "n" : "", in create_one_cdev()
4233 STm->devs[rew] = dev; in create_one_cdev()
4237 cdev_del(STm->cdevs[rew]); in create_one_cdev()
4239 STm->cdevs[rew] = NULL; in create_one_cdev()
4240 STm->devs[rew] = NULL; in create_one_cdev()
4262 int mode, rew; in remove_cdevs() local
4266 for (rew = 0; rew < 2; rew++) { in remove_cdevs()
4267 if (STm->cdevs[rew]) in remove_cdevs()
4268 cdev_del(STm->cdevs[rew]); in remove_cdevs()
4269 if (STm->devs[rew]) in remove_cdevs()
4270 device_unregister(STm->devs[rew]); in remove_cdevs()