Lines Matching refs:sshdr
300 struct scsi_sense_hdr sshdr;
302 if (! scsi_command_normalize_sense(scmd, &sshdr))
305 if (scsi_sense_is_deferred(&sshdr))
312 if (sshdr.response_code == 0x70) {
322 if ((sshdr.additional_length > 3) &&
328 switch (sshdr.sense_key) {
352 if ((sshdr.asc == 0x04) && (sshdr.ascq == 0x01))
359 (sshdr.asc == 0x04) && (sshdr.ascq == 0x02))
370 if (sshdr.asc == 0x11 || /* UNRECOVERED READ ERR */
371 sshdr.asc == 0x13 || /* AMNF DATA FIELD */
372 sshdr.asc == 0x14) { /* RECORD NOT FOUND */
1727 * @sshdr: pointer to instance of structure that common
1741 struct scsi_sense_hdr *sshdr)
1746 memset(sshdr, 0, sizeof(struct scsi_sense_hdr));
1748 sshdr->response_code = (sense_buffer[0] & 0x7f);
1750 if (!scsi_sense_valid(sshdr))
1753 if (sshdr->response_code >= 0x72) {
1758 sshdr->sense_key = (sense_buffer[1] & 0xf);
1760 sshdr->asc = sense_buffer[2];
1762 sshdr->ascq = sense_buffer[3];
1764 sshdr->additional_length = sense_buffer[7];
1770 sshdr->sense_key = (sense_buffer[2] & 0xf);
1775 sshdr->asc = sense_buffer[12];
1777 sshdr->ascq = sense_buffer[13];
1786 struct scsi_sense_hdr *sshdr)
1789 sizeof(cmd->sense_buffer), sshdr);