Lines Matching defs:write

118 	"write through", "none", "write back",
119 "write back, no read (daft)"
484 [SD_ZERO_WRITE] = "write",
726 * write and whether dix and dif are enabled.
728 static unsigned int sd_prot_op(bool write, bool dix, bool dif)
730 /* Lookup table: bit 2 (write), bit 1 (dix), bit 0 (dif) */
742 return ops[write << 2 | dix << 1 | dif];
1041 * on the device physical size would cause a large write same
1047 * disks, but this is mandatory to avoid failure of large write
1048 * same requests directed at sequential write required zones of
1109 static blk_status_t sd_setup_rw32_cmnd(struct scsi_cmnd *cmd, bool write,
1117 cmd->cmnd[9] = write ? WRITE_32 : READ_32;
1127 static blk_status_t sd_setup_rw16_cmnd(struct scsi_cmnd *cmd, bool write,
1132 cmd->cmnd[0] = write ? WRITE_16 : READ_16;
1142 static blk_status_t sd_setup_rw10_cmnd(struct scsi_cmnd *cmd, bool write,
1147 cmd->cmnd[0] = write ? WRITE_10 : READ_10;
1157 static blk_status_t sd_setup_rw6_cmnd(struct scsi_cmnd *cmd, bool write,
1171 scmd_printk(KERN_ERR, cmd, "FUA write on READ/WRITE(6) drive\n");
1176 cmd->cmnd[0] = write ? WRITE_6 : READ_6;
1220 bool write = rq_data_dir(rq) == WRITE;
1274 ret = sd_setup_rw32_cmnd(cmd, write, lba, nr_blocks,
1277 ret = sd_setup_rw16_cmnd(cmd, write, lba, nr_blocks,
1281 ret = sd_setup_rw10_cmnd(cmd, write, lba, nr_blocks,
1284 ret = sd_setup_rw6_cmnd(cmd, write, lba, nr_blocks,
1309 write ? "writing" : "reading", nr_blocks,
1433 * If the device has the write protect tab set, have the open fail
1434 * if the user expects to be able to write to the thing.
2096 * If the device keeps failing read/write commands but TEST UNIT
2782 * set a bogus sector size so the normal read/write
2846 * read write protect setting, if possible - called only in sd_revalidate_disk()
3042 /* No cache flush allowed for write protected devices */
3071 "Assuming drive cache: write back\n");
3075 "Assuming drive cache: write through\n");
3303 * Per ZBC and ZAC specifications, writes in sequential write