Lines Matching defs:sshdr
125 * @sshdr: pointer to instance of structure that common
139 struct scsi_sense_hdr *sshdr)
141 memset(sshdr, 0, sizeof(struct scsi_sense_hdr));
146 sshdr->response_code = (sense_buffer[0] & 0x7f);
148 if (!scsi_sense_valid(sshdr))
151 if (sshdr->response_code >= 0x72) {
156 sshdr->sense_key = (sense_buffer[1] & 0xf);
158 sshdr->asc = sense_buffer[2];
160 sshdr->ascq = sense_buffer[3];
162 sshdr->additional_length = sense_buffer[7];
168 sshdr->sense_key = (sense_buffer[2] & 0xf);
173 sshdr->asc = sense_buffer[12];
175 sshdr->ascq = sense_buffer[13];