Lines Matching defs:sshdr
235 struct scsi_sense_hdr sshdr;
237 if (! scsi_command_normalize_sense(scmd, &sshdr))
240 if (scsi_sense_is_deferred(&sshdr))
247 rc = sdev->scsi_dh_data->scsi_dh->check_sense(sdev, &sshdr);
257 if (sshdr.response_code == 0x70) {
267 if ((sshdr.additional_length > 3) &&
273 switch (sshdr.sense_key) {
280 if (sshdr.asc == 0x10) /* DIF */
300 if ((sshdr.asc == 0x04) && (sshdr.ascq == 0x01))
307 (sshdr.asc == 0x04) && (sshdr.ascq == 0x02))
310 if (sshdr.asc == 0x3f && sshdr.ascq == 0x0e)
316 else if (sshdr.asc == 0x3f)
344 if (sshdr.asc == 0x11 || /* UNRECOVERED READ ERR */
345 sshdr.asc == 0x13 || /* AMNF DATA FIELD */
346 sshdr.asc == 0x14) { /* RECORD NOT FOUND */
1946 * @sshdr: pointer to instance of structure that common
1960 struct scsi_sense_hdr *sshdr)
1965 memset(sshdr, 0, sizeof(struct scsi_sense_hdr));
1967 sshdr->response_code = (sense_buffer[0] & 0x7f);
1969 if (!scsi_sense_valid(sshdr))
1972 if (sshdr->response_code >= 0x72) {
1977 sshdr->sense_key = (sense_buffer[1] & 0xf);
1979 sshdr->asc = sense_buffer[2];
1981 sshdr->ascq = sense_buffer[3];
1983 sshdr->additional_length = sense_buffer[7];
1989 sshdr->sense_key = (sense_buffer[2] & 0xf);
1994 sshdr->asc = sense_buffer[12];
1996 sshdr->ascq = sense_buffer[13];
2005 struct scsi_sense_hdr *sshdr)
2008 SCSI_SENSE_BUFFERSIZE, sshdr);