Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/block/
Dswim3.c193 int write_prot; /* 1 if write-protected, 0 if not, -1 dunno */ member
334 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()
943 fs->write_prot = -1; in floppy_open()
973 if (fs->write_prot < 0) in floppy_open()
974 fs->write_prot = swim3_readbit(fs, WRITE_PROT); in floppy_open()
975 if (fs->write_prot) in floppy_open()
1047 fs->write_prot = -1; in floppy_revalidate()
/linux-6.1.9/drivers/scsi/
Dst.h160 unsigned char write_prot; member
Dsd.h129 u8 write_prot; member
Dsd.c178 wce = (ct & 0x02) && !sdkp->write_prot ? 1 : 0; in cache_type_store()
1282 if (sdkp->device->removable || sdkp->write_prot) { in sd_need_revalidate()
1344 if (sdkp->write_prot && (mode & FMODE_WRITE)) in sd_open()
2573 int old_wp = sdkp->write_prot; in sd_read_write_protect_flag()
2612 sdkp->write_prot = ((data.device_specific & 0x80) != 0); in sd_read_write_protect_flag()
2613 set_disk_ro(sdkp->disk, sdkp->write_prot); in sd_read_write_protect_flag()
2614 if (sdkp->first_scan || old_wp != sdkp->write_prot) { in sd_read_write_protect_flag()
2616 sdkp->write_prot ? "on" : "off"); in sd_read_write_protect_flag()
2761 if (sdkp->WCE && sdkp->write_prot) in sd_read_cache_type()
3506 sdkp->write_prot = 0; in sd_probe()
Dst.c1097 STp->write_prot = 0; in check_tape()
1197 STp->write_prot = 1; in check_tape()
1302 STp->write_prot = ((filp->f_flags & O_ACCMODE) == O_RDONLY); in st_open()
1653 if (STp->write_prot) { in st_write()
2805 if (STp->write_prot) in st_int_ioctl()
2878 if (STp->write_prot) in st_int_ioctl()