Home
last modified time | relevance | path

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

/linux/drivers/block/
A 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/drivers/scsi/
A Dst.h161 unsigned char write_prot; member
A Dsd.c186 wce = (ct & 0x02) && !sdkp->write_prot ? 1 : 0; in cache_type_store()
1393 if (sdkp->device->removable || sdkp->write_prot) { in sd_need_revalidate()
1457 if (sdkp->write_prot && (mode & FMODE_WRITE)) in sd_open()
2672 int old_wp = sdkp->write_prot; in sd_read_write_protect_flag()
2711 sdkp->write_prot = ((data.device_specific & 0x80) != 0); in sd_read_write_protect_flag()
2712 set_disk_ro(sdkp->disk, sdkp->write_prot); in sd_read_write_protect_flag()
2713 if (sdkp->first_scan || old_wp != sdkp->write_prot) { in sd_read_write_protect_flag()
2715 sdkp->write_prot ? "on" : "off"); in sd_read_write_protect_flag()
2860 if (sdkp->WCE && sdkp->write_prot) in sd_read_cache_type()
3559 sdkp->write_prot = 0; in sd_probe()
A Dsd.h105 u8 write_prot; member
A Dst.c1094 STp->write_prot = 0; in check_tape()
1194 STp->write_prot = 1; in check_tape()
1299 STp->write_prot = ((filp->f_flags & O_ACCMODE) == O_RDONLY); in st_open()
1650 if (STp->write_prot) { in st_write()
2802 if (STp->write_prot) in st_int_ioctl()
2875 if (STp->write_prot) in st_int_ioctl()

Completed in 25 milliseconds