Home
last modified time | relevance | path

Searched refs:write_prot (Results 1 – 5 of 5) sorted by relevance

/linux-6.6.21/drivers/block/
Dswim3.c193 int write_prot; /* 1 if write-protected, 0 if not, -1 dunno */ member
333 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()
/linux-6.6.21/drivers/scsi/
Dst.h160 unsigned char write_prot; member
Dsd.h129 u8 write_prot; member
Dsd.c166 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()
2771 int old_wp = sdkp->write_prot; in sd_read_write_protect_flag()
2810 sdkp->write_prot = ((data.device_specific & 0x80) != 0); in sd_read_write_protect_flag()
2811 set_disk_ro(sdkp->disk, sdkp->write_prot); in sd_read_write_protect_flag()
2812 if (sdkp->first_scan || old_wp != sdkp->write_prot) { in sd_read_write_protect_flag()
2814 sdkp->write_prot ? "on" : "off"); in sd_read_write_protect_flag()
2959 if (sdkp->WCE && sdkp->write_prot) in sd_read_cache_type()
3733 sdkp->write_prot = 0; in sd_probe()
Dst.c1099 STp->write_prot = 0; in check_tape()
1199 STp->write_prot = 1; in check_tape()
1304 STp->write_prot = ((filp->f_flags & O_ACCMODE) == O_RDONLY); in st_open()
1655 if (STp->write_prot) { in st_write()
2807 if (STp->write_prot) in st_int_ioctl()
2880 if (STp->write_prot) in st_int_ioctl()