Searched refs:sb_len (Results 1 - 6 of 6) sorted by relevance
/linux-4.4.14/drivers/scsi/ |
H A D | scsi_common.c | 123 * @sb_len: number of valid bytes in sense_buffer 137 bool scsi_normalize_sense(const u8 *sense_buffer, int sb_len, scsi_normalize_sense() argument 140 if (!sense_buffer || !sb_len) scsi_normalize_sense() 154 if (sb_len > 1) scsi_normalize_sense() 156 if (sb_len > 2) scsi_normalize_sense() 158 if (sb_len > 3) scsi_normalize_sense() 160 if (sb_len > 7) scsi_normalize_sense() 166 if (sb_len > 2) scsi_normalize_sense() 168 if (sb_len > 7) { scsi_normalize_sense() 169 sb_len = (sb_len < (sense_buffer[7] + 8)) ? scsi_normalize_sense() 170 sb_len : (sense_buffer[7] + 8); scsi_normalize_sense() 171 if (sb_len > 12) scsi_normalize_sense() 173 if (sb_len > 13) scsi_normalize_sense() 185 * @sb_len: number of valid bytes in sense_buffer 195 const u8 * scsi_sense_desc_find(const u8 * sense_buffer, int sb_len, scsi_sense_desc_find() argument 201 if ((sb_len < 8) || (0 == (add_sen_len = sense_buffer[7]))) scsi_sense_desc_find() 205 add_sen_len = (add_sen_len < (sb_len - 8)) ? scsi_sense_desc_find() 206 add_sen_len : (sb_len - 8); scsi_sense_desc_find()
|
H A D | sg.c | 560 int sb_len = SCSI_SENSE_BUFFERSIZE; sg_new_read() local 561 sb_len = (hp->mx_sb_len > sb_len) ? sb_len : hp->mx_sb_len; sg_new_read() 563 len = (len > sb_len) ? sb_len : len; sg_new_read()
|
H A D | scsi_error.c | 2431 * @sb_len: number of valid bytes in sense_buffer 2438 int scsi_get_sense_info_fld(const u8 * sense_buffer, int sb_len, scsi_get_sense_info_fld() argument 2445 if (sb_len < 7) scsi_get_sense_info_fld() 2459 ucp = scsi_sense_desc_find(sense_buffer, sb_len, scsi_get_sense_info_fld()
|
/linux-4.4.14/include/scsi/ |
H A D | scsi_common.h | 61 extern bool scsi_normalize_sense(const u8 *sense_buffer, int sb_len, 66 extern const u8 * scsi_sense_desc_find(const u8 * sense_buffer, int sb_len,
|
H A D | scsi_eh.h | 25 extern int scsi_get_sense_info_fld(const u8 * sense_buffer, int sb_len,
|
/linux-4.4.14/net/phonet/ |
H A D | pep.c | 63 u8 sb_len; pep_get_sb() member in struct:__anon15050 68 if (ph == NULL || ph->sb_len < 2 || !pskb_may_pull(skb, ph->sb_len)) pep_get_sb() 70 ph->sb_len -= 2; pep_get_sb() 72 *plen = ph->sb_len; pep_get_sb() 74 if (buflen > ph->sb_len) pep_get_sb() 75 buflen = ph->sb_len; pep_get_sb() 77 __skb_pull(skb, 2 + ph->sb_len); pep_get_sb()
|
Completed in 173 milliseconds