Searched refs:write_prot (Results 1 – 6 of 6) sorted by relevance
192 int write_prot; /* 1 if write-protected, 0 if not, -1 dunno */ member334 if (fs->write_prot < 0) in swim3_queue_rq()335 fs->write_prot = swim3_readbit(fs, WRITE_PROT); in swim3_queue_rq()336 if (fs->write_prot) { in swim3_queue_rq()925 fs->write_prot = -1; in floppy_open()954 if (fs->write_prot < 0) in floppy_open()955 fs->write_prot = swim3_readbit(fs, WRITE_PROT); in floppy_open()956 if (fs->write_prot) in floppy_open()1028 fs->write_prot = -1; in floppy_revalidate()
163 unsigned char write_prot; member
96 u8 write_prot; member
189 wce = (ct & 0x02) && !sdkp->write_prot ? 1 : 0; in cache_type_store()1355 if (sdev->removable || sdkp->write_prot) in sd_open()1370 if (sdkp->write_prot && (mode & FMODE_WRITE)) in sd_open()2574 int old_wp = sdkp->write_prot; in sd_read_write_protect_flag()2613 sdkp->write_prot = ((data.device_specific & 0x80) != 0); in sd_read_write_protect_flag()2614 set_disk_ro(sdkp->disk, sdkp->write_prot); in sd_read_write_protect_flag()2615 if (sdkp->first_scan || old_wp != sdkp->write_prot) { in sd_read_write_protect_flag()2617 sdkp->write_prot ? "on" : "off"); in sd_read_write_protect_flag()2761 if (sdkp->WCE && sdkp->write_prot) in sd_read_cache_type()3354 sdkp->write_prot = 0; in sd_probe()
1096 STp->write_prot = 0; in check_tape()1196 STp->write_prot = 1; in check_tape()1301 STp->write_prot = ((filp->f_flags & O_ACCMODE) == O_RDONLY); in st_open()1653 if (STp->write_prot) { in st_write()2806 if (STp->write_prot) in st_int_ioctl()2880 if (STp->write_prot) in st_int_ioctl()
217 char write_prot; member1194 if (tape->write_prot) in idetape_chrdev_write()1278 if (tape->write_prot) in idetape_mtioctop()1516 tape->write_prot = 1; in idetape_chrdev_open()1518 tape->write_prot = tape->drv_write_prot; in idetape_chrdev_open()1521 if (tape->write_prot) { in idetape_chrdev_open()