Lines Matching defs:sshdr
177 * @sshdr: pointer to instance of structure that common
191 struct scsi_sense_hdr *sshdr)
193 memset(sshdr, 0, sizeof(struct scsi_sense_hdr));
198 sshdr->response_code = (sense_buffer[0] & 0x7f);
200 if (!scsi_sense_valid(sshdr))
203 if (sshdr->response_code >= 0x72) {
208 sshdr->sense_key = (sense_buffer[1] & 0xf);
210 sshdr->asc = sense_buffer[2];
212 sshdr->ascq = sense_buffer[3];
214 sshdr->additional_length = sense_buffer[7];
220 sshdr->sense_key = (sense_buffer[2] & 0xf);
224 sshdr->asc = sense_buffer[12];
226 sshdr->ascq = sense_buffer[13];