Searched refs:write_prot (Results 1 – 5 of 5) sorted by relevance
193 int write_prot; /* 1 if write-protected, 0 if not, -1 dunno */ member333 if (fs->write_prot < 0) in swim3_queue_rq()334 fs->write_prot = swim3_readbit(fs, WRITE_PROT); in swim3_queue_rq()335 if (fs->write_prot) { in swim3_queue_rq()942 fs->write_prot = -1; in floppy_open()972 if (fs->write_prot < 0) in floppy_open()973 fs->write_prot = swim3_readbit(fs, WRITE_PROT); in floppy_open()974 if (fs->write_prot) in floppy_open()1046 fs->write_prot = -1; in floppy_revalidate()
160 unsigned char write_prot; member
129 u8 write_prot; member
166 wce = (ct & 0x02) && !sdkp->write_prot ? 1 : 0; in cache_type_store()1353 if (sdkp->device->removable || sdkp->write_prot) { in sd_need_revalidate()1416 if (sdkp->write_prot && (mode & BLK_OPEN_WRITE)) in sd_open()2773 int old_wp = sdkp->write_prot; in sd_read_write_protect_flag()2812 sdkp->write_prot = ((data.device_specific & 0x80) != 0); in sd_read_write_protect_flag()2813 set_disk_ro(sdkp->disk, sdkp->write_prot); in sd_read_write_protect_flag()2814 if (sdkp->first_scan || old_wp != sdkp->write_prot) { in sd_read_write_protect_flag()2816 sdkp->write_prot ? "on" : "off"); in sd_read_write_protect_flag()2961 if (sdkp->WCE && sdkp->write_prot) in sd_read_cache_type()3742 sdkp->write_prot = 0; in sd_probe()
1100 STp->write_prot = 0; in check_tape()1200 STp->write_prot = 1; in check_tape()1305 STp->write_prot = ((filp->f_flags & O_ACCMODE) == O_RDONLY); in st_open()1656 if (STp->write_prot) { in st_write()2808 if (STp->write_prot) in st_int_ioctl()2881 if (STp->write_prot) in st_int_ioctl()