Lines Matching refs:sense_buffer
191 bool scsi_normalize_sense(const u8 *sense_buffer, int sb_len, in scsi_normalize_sense() argument
196 if (!sense_buffer || !sb_len) in scsi_normalize_sense()
199 sshdr->response_code = (sense_buffer[0] & 0x7f); in scsi_normalize_sense()
209 sshdr->sense_key = (sense_buffer[1] & 0xf); in scsi_normalize_sense()
211 sshdr->asc = sense_buffer[2]; in scsi_normalize_sense()
213 sshdr->ascq = sense_buffer[3]; in scsi_normalize_sense()
215 sshdr->additional_length = sense_buffer[7]; in scsi_normalize_sense()
221 sshdr->sense_key = (sense_buffer[2] & 0xf); in scsi_normalize_sense()
223 sb_len = min(sb_len, sense_buffer[7] + 8); in scsi_normalize_sense()
225 sshdr->asc = sense_buffer[12]; in scsi_normalize_sense()
227 sshdr->ascq = sense_buffer[13]; in scsi_normalize_sense()
248 const u8 * scsi_sense_desc_find(const u8 * sense_buffer, int sb_len, in scsi_sense_desc_find() argument
254 if ((sb_len < 8) || (0 == (add_sen_len = sense_buffer[7]))) in scsi_sense_desc_find()
256 if ((sense_buffer[0] < 0x72) || (sense_buffer[0] > 0x73)) in scsi_sense_desc_find()
260 descp = &sense_buffer[8]; in scsi_sense_desc_find()