Lines Matching defs:read
177 SA_QUIRK_NODREAD = 0x020, /* Don't try and dummy read density */
409 open_rdonly : 1, /* open read-only */
926 * system call traps attempts to write to a read-only
999 (bp->bio_cmd == BIO_READ)? "read" : "write"));
2330 &softc->inject_eom, 0, "Queue EOM for the next write/read");
2701 length, (bp->bio_cmd == BIO_READ)? "read" :
2708 length, (bp->bio_cmd == BIO_READ)? "read" :
2723 * our read buffer unless we set the block size
2727 * don't adjust their read size to match our record
2876 * oflags can be checked for 'kind' of open (read-only check) - later
2890 * we don't care about the unit read state and can instead use
2964 * Do a dummy test read to force access to the
2968 * read a full record.
2973 xpt_print(periph->path, "no memory for test read\n");
2993 "unable to rewind after test read\n");
3447 * If a read/write command, we handle it here.
3455 * PEW detected on a non read/write command, we assume
3486 * From this point out, we're only handling read/write cases.
3519 * Unconditionally, if we detected a filemark on a read,
3531 * Incorrect Length usually applies to read, but can apply to writes.
5495 int read;
5497 read = (readop & SCSI_RW_DIRMASK) == SCSI_RW_READ;
5500 scsi_cmd->opcode = read ? SA_READ : SA_WRITE;
5502 if (sli && read)
5509 cam_fill_csio(csio, retries, cbfcnp, (read ? CAM_DIR_IN : CAM_DIR_OUT) |