Searched refs:sb_len (Results 1 – 3 of 3) sorted by relevance
138 bool scsi_normalize_sense(const u8 *sense_buffer, int sb_len, in scsi_normalize_sense() argument143 if (!sense_buffer || !sb_len) in scsi_normalize_sense()155 if (sb_len > 1) in scsi_normalize_sense()157 if (sb_len > 2) in scsi_normalize_sense()159 if (sb_len > 3) in scsi_normalize_sense()161 if (sb_len > 7) in scsi_normalize_sense()167 if (sb_len > 2) in scsi_normalize_sense()169 if (sb_len > 7) { in scsi_normalize_sense()170 sb_len = (sb_len < (sense_buffer[7] + 8)) ? in scsi_normalize_sense()171 sb_len : (sense_buffer[7] + 8); in scsi_normalize_sense()[all …]
575 int sb_len = SCSI_SENSE_BUFFERSIZE; in sg_new_read() local576 sb_len = (hp->mx_sb_len > sb_len) ? sb_len : hp->mx_sb_len; in sg_new_read()578 len = (len > sb_len) ? sb_len : len; in sg_new_read()
2449 bool scsi_get_sense_info_fld(const u8 *sense_buffer, int sb_len, in scsi_get_sense_info_fld() argument2454 if (sb_len < 7) in scsi_get_sense_info_fld()2466 ucp = scsi_sense_desc_find(sense_buffer, sb_len, in scsi_get_sense_info_fld()