Lines Matching refs:sb_len
147 bool scsi_normalize_sense(const u8 *sense_buffer, int sb_len, in scsi_normalize_sense() argument
152 if (!sense_buffer || !sb_len) in scsi_normalize_sense()
164 if (sb_len > 1) in scsi_normalize_sense()
166 if (sb_len > 2) in scsi_normalize_sense()
168 if (sb_len > 3) in scsi_normalize_sense()
170 if (sb_len > 7) in scsi_normalize_sense()
176 if (sb_len > 2) in scsi_normalize_sense()
178 if (sb_len > 7) { in scsi_normalize_sense()
179 sb_len = (sb_len < (sense_buffer[7] + 8)) ? in scsi_normalize_sense()
180 sb_len : (sense_buffer[7] + 8); in scsi_normalize_sense()
181 if (sb_len > 12) in scsi_normalize_sense()
183 if (sb_len > 13) in scsi_normalize_sense()
205 const u8 * scsi_sense_desc_find(const u8 * sense_buffer, int sb_len, in scsi_sense_desc_find() argument
211 if ((sb_len < 8) || (0 == (add_sen_len = sense_buffer[7]))) in scsi_sense_desc_find()
215 add_sen_len = (add_sen_len < (sb_len - 8)) ? in scsi_sense_desc_find()
216 add_sen_len : (sb_len - 8); in scsi_sense_desc_find()