Home
last modified time | relevance | path

Searched refs:sb_len (Results 1 – 3 of 3) sorted by relevance

/drivers/scsi/
Dscsi_common.c138 bool scsi_normalize_sense(const u8 *sense_buffer, int sb_len, in scsi_normalize_sense() argument
143 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 …]
Dsg.c575 int sb_len = SCSI_SENSE_BUFFERSIZE; in sg_new_read() local
576 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()
Dscsi_error.c2449 bool scsi_get_sense_info_fld(const u8 *sense_buffer, int sb_len, in scsi_get_sense_info_fld() argument
2454 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()