Lines Matching defs:sense
100 struct request_sense *sense = &drive->sense_data;
103 if (!sense || !rq || (rq->rq_flags & RQF_QUIET))
106 ide_debug_log(IDE_DBG_SENSE, "sense_key: 0x%x", sense->sense_key);
108 switch (sense->sense_key) {
117 if (sense->asc == 0x3a || sense->asc == 0x04)
126 if (scsi_req(rq)->cmd[0] == GPCMD_START_STOP_UNIT && sense->asc == 0x24)
133 * Some drives (i.e. Creative) fail to present the correct sense
148 struct request_sense *sense = &drive->sense_data;
154 sense->error_code, sense->sense_key);
169 if (sense->sense_key == 0x05 && sense->asc == 0x24)
173 if (sense->error_code == 0x70) {
174 switch (sense->sense_key) {
178 if (!sense->valid)
183 sector = (sense->information[0] << 24) |
184 (sense->information[1] << 16) |
185 (sense->information[2] << 8) |
186 (sense->information[3]);
209 ide_cd_log_error(drive->name, failed_command, sense);
216 * failed request. Also, the sense data should be read
218 * sense buffer if it got copied during mapping.
221 void *sense = bio_data(rq->bio);
228 memcpy(scsi_req(failed)->sense, sense, 18);
300 * We got an error trying to get sense info from the drive
398 * End a request through request sense analysis when we have sense data.
404 /* if we got a CHECK_CONDITION status, queue a request sense command */
424 * Some of the trailing request sense fields are optional,
475 scsi_normalize_sense(scsi_req(rq)->sense,
583 * it's silly to pretend we understand 6-byte sense commands, just
615 int sense = ata_sense_request(rq);
730 if (sense && write == 0)
769 if (sense && uptodate)
793 if (sense && rc == 2)
794 ide_error(drive, "request sense failure", stat);
916 /* prepare sense request for this command */
949 * subsequent request sense command. The pointer can also be NULL, in which case
950 * no sense information is returned.
1477 * mode sense page capabilities size, but older drives break.