Home
last modified time | relevance | path

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

/linux-3.4.99/include/scsi/
Dscsi_eh.h45 extern int scsi_normalize_sense(const u8 *sense_buffer, int sb_len,
55 extern const u8 * scsi_sense_desc_find(const u8 * sense_buffer, int sb_len,
58 extern int scsi_get_sense_info_fld(const u8 * sense_buffer, int sb_len,
/linux-3.4.99/drivers/scsi/
Dscsi_error.c2063 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()
[all …]
Dsg.c512 int sb_len = SCSI_SENSE_BUFFERSIZE; in sg_new_read() local
513 sb_len = (hp->mx_sb_len > sb_len) ? sb_len : hp->mx_sb_len; in sg_new_read()
515 len = (len > sb_len) ? sb_len : len; in sg_new_read()
/linux-3.4.99/net/phonet/
Dpep.c63 u8 sb_len; in pep_get_sb() member
68 if (ph == NULL || ph->sb_len < 2 || !pskb_may_pull(skb, ph->sb_len)) in pep_get_sb()
70 ph->sb_len -= 2; in pep_get_sb()
72 *plen = ph->sb_len; in pep_get_sb()
74 if (buflen > ph->sb_len) in pep_get_sb()
75 buflen = ph->sb_len; in pep_get_sb()
77 __skb_pull(skb, 2 + ph->sb_len); in pep_get_sb()