Searched refs:write_prot (Results 1 – 8 of 8) sorted by relevance
195 int write_prot; /* 1 if write-protected, 0 if not, -1 dunno */ member362 if (fs->write_prot < 0) in start_request()363 fs->write_prot = swim3_readbit(fs, WRITE_PROT); in start_request()364 if (fs->write_prot) { in start_request()957 fs->write_prot = -1; in floppy_open()986 if (fs->write_prot < 0) in floppy_open()987 fs->write_prot = swim3_readbit(fs, WRITE_PROT); in floppy_open()988 if (fs->write_prot) in floppy_open()1056 fs->write_prot = -1; in floppy_revalidate()
72 u8 write_prot; member
143 unsigned char write_prot; member
1147 if (sdev->removable || sdkp->write_prot) in sd_open()1162 if (sdkp->write_prot && (mode & FMODE_WRITE)) in sd_open()2255 int old_wp = sdkp->write_prot; in sd_read_write_protect_flag()2294 sdkp->write_prot = ((data.device_specific & 0x80) != 0); in sd_read_write_protect_flag()2295 set_disk_ro(sdkp->disk, sdkp->write_prot); in sd_read_write_protect_flag()2296 if (sdkp->first_scan || old_wp != sdkp->write_prot) { in sd_read_write_protect_flag()2298 sdkp->write_prot ? "on" : "off"); in sd_read_write_protect_flag()2823 sdkp->write_prot = 0; in sd_probe_async()
567 unsigned char write_prot; member
1029 STp->write_prot = 0; in check_tape()1128 STp->write_prot = 1; in check_tape()1235 STp->write_prot = ((filp->f_flags & O_ACCMODE) == O_RDONLY); in st_open()1586 if (STp->write_prot) { in st_write()2716 if (STp->write_prot) in st_int_ioctl()2785 if (STp->write_prot) in st_int_ioctl()
3426 if (STp->write_prot) { in osst_write()4185 if (STp->write_prot) in osst_int_ioctl()4273 if (STp->write_prot) in osst_int_ioctl()4503 STp->write_prot = ((flags & O_ACCMODE) == O_RDONLY); in __os_scsi_tape_open()4734 STp->write_prot = 0; in __os_scsi_tape_open()4759 STp->write_prot = 1; in __os_scsi_tape_open()
217 char write_prot; member1192 if (tape->write_prot) in idetape_chrdev_write()1276 if (tape->write_prot) in idetape_mtioctop()1514 tape->write_prot = 1; in idetape_chrdev_open()1516 tape->write_prot = tape->drv_write_prot; in idetape_chrdev_open()1519 if (tape->write_prot) { in idetape_chrdev_open()