Lines Matching refs:sb_len
2063 int scsi_normalize_sense(const u8 *sense_buffer, int sb_len, in scsi_normalize_sense() argument
2066 if (!sense_buffer || !sb_len) in scsi_normalize_sense()
2080 if (sb_len > 1) in scsi_normalize_sense()
2082 if (sb_len > 2) in scsi_normalize_sense()
2084 if (sb_len > 3) in scsi_normalize_sense()
2086 if (sb_len > 7) in scsi_normalize_sense()
2092 if (sb_len > 2) in scsi_normalize_sense()
2094 if (sb_len > 7) { in scsi_normalize_sense()
2095 sb_len = (sb_len < (sense_buffer[7] + 8)) ? in scsi_normalize_sense()
2096 sb_len : (sense_buffer[7] + 8); in scsi_normalize_sense()
2097 if (sb_len > 12) in scsi_normalize_sense()
2099 if (sb_len > 13) in scsi_normalize_sense()
2129 const u8 * scsi_sense_desc_find(const u8 * sense_buffer, int sb_len, in scsi_sense_desc_find() argument
2135 if ((sb_len < 8) || (0 == (add_sen_len = sense_buffer[7]))) in scsi_sense_desc_find()
2139 add_sen_len = (add_sen_len < (sb_len - 8)) ? in scsi_sense_desc_find()
2140 add_sen_len : (sb_len - 8); in scsi_sense_desc_find()
2165 int scsi_get_sense_info_fld(const u8 * sense_buffer, int sb_len, in scsi_get_sense_info_fld() argument
2172 if (sb_len < 7) in scsi_get_sense_info_fld()
2186 ucp = scsi_sense_desc_find(sense_buffer, sb_len, in scsi_get_sense_info_fld()