Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/scsi/
Dscsi_common.c191 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()
208 if (sb_len > 1) in scsi_normalize_sense()
210 if (sb_len > 2) in scsi_normalize_sense()
212 if (sb_len > 3) in scsi_normalize_sense()
214 if (sb_len > 7) in scsi_normalize_sense()
220 if (sb_len > 2) in scsi_normalize_sense()
222 if (sb_len > 7) { in scsi_normalize_sense()
223 sb_len = min(sb_len, sense_buffer[7] + 8); in scsi_normalize_sense()
224 if (sb_len > 12) in scsi_normalize_sense()
[all …]
Dsg.c580 int sb_len = SCSI_SENSE_BUFFERSIZE; in sg_new_read() local
581 sb_len = (hp->mx_sb_len > sb_len) ? sb_len : hp->mx_sb_len; in sg_new_read()
583 len = (len > sb_len) ? sb_len : len; in sg_new_read()
Dscsi_error.c2550 bool scsi_get_sense_info_fld(const u8 *sense_buffer, int sb_len, in scsi_get_sense_info_fld() argument
2555 if (sb_len < 7) in scsi_get_sense_info_fld()
2567 ucp = scsi_sense_desc_find(sense_buffer, sb_len, in scsi_get_sense_info_fld()
/linux-6.12.1/include/scsi/
Dscsi_common.h82 extern bool scsi_normalize_sense(const u8 *sense_buffer, int sb_len,
88 extern const u8 * scsi_sense_desc_find(const u8 * sense_buffer, int sb_len,
Dscsi_eh.h27 extern bool scsi_get_sense_info_fld(const u8 *sense_buffer, int sb_len,
/linux-6.12.1/net/phonet/
Dpep.c51 u8 sb_len; in pep_get_sb() member
56 if (ph == NULL || ph->sb_len < 2 || !pskb_may_pull(skb, ph->sb_len)) in pep_get_sb()
58 ph->sb_len -= 2; in pep_get_sb()
60 *plen = ph->sb_len; in pep_get_sb()
62 if (buflen > ph->sb_len) in pep_get_sb()
63 buflen = ph->sb_len; in pep_get_sb()
65 __skb_pull(skb, 2 + ph->sb_len); in pep_get_sb()