Lines Matching full:rew
4161 static int create_one_cdev(struct scsi_tape *tape, int mode, int rew) in create_one_cdev() argument
4171 cdev_devno = MKDEV(SCSI_TAPE_MAJOR, TAPE_MINOR(dev_num, mode, rew)); in create_one_cdev()
4181 STm->cdevs[rew] = cdev; in create_one_cdev()
4186 rew ? "non" : "auto", mode); in create_one_cdev()
4192 snprintf(name, 10, "%s%s%s", rew ? "n" : "", in create_one_cdev()
4203 STm->devs[rew] = dev; in create_one_cdev()
4207 cdev_del(STm->cdevs[rew]); in create_one_cdev()
4209 STm->cdevs[rew] = NULL; in create_one_cdev()
4210 STm->devs[rew] = NULL; in create_one_cdev()
4232 int mode, rew; in remove_cdevs() local
4236 for (rew = 0; rew < 2; rew++) { in remove_cdevs()
4237 if (STm->cdevs[rew]) in remove_cdevs()
4238 cdev_del(STm->cdevs[rew]); in remove_cdevs()
4239 if (STm->devs[rew]) in remove_cdevs()
4240 device_unregister(STm->devs[rew]); in remove_cdevs()