Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/scsi/
Dscsi_common.c147 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()
[all …]
Dsg.c577 int sb_len = SCSI_SENSE_BUFFERSIZE; in sg_new_read() local
578 sb_len = (hp->mx_sb_len > sb_len) ? sb_len : hp->mx_sb_len; in sg_new_read()
580 len = (len > sb_len) ? sb_len : len; in sg_new_read()
Dscsi_error.c2486 bool scsi_get_sense_info_fld(const u8 *sense_buffer, int sb_len, in scsi_get_sense_info_fld() argument
2491 if (sb_len < 7) in scsi_get_sense_info_fld()
2503 ucp = scsi_sense_desc_find(sense_buffer, sb_len, in scsi_get_sense_info_fld()
/linux-6.1.9/include/scsi/
Dscsi_common.h69 extern bool scsi_normalize_sense(const u8 *sense_buffer, int sb_len,
75 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.1.9/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()