sb_len 138 drivers/scsi/scsi_common.c bool scsi_normalize_sense(const u8 *sense_buffer, int sb_len, sb_len 143 drivers/scsi/scsi_common.c if (!sense_buffer || !sb_len) sb_len 155 drivers/scsi/scsi_common.c if (sb_len > 1) sb_len 157 drivers/scsi/scsi_common.c if (sb_len > 2) sb_len 159 drivers/scsi/scsi_common.c if (sb_len > 3) sb_len 161 drivers/scsi/scsi_common.c if (sb_len > 7) sb_len 167 drivers/scsi/scsi_common.c if (sb_len > 2) sb_len 169 drivers/scsi/scsi_common.c if (sb_len > 7) { sb_len 170 drivers/scsi/scsi_common.c sb_len = (sb_len < (sense_buffer[7] + 8)) ? sb_len 171 drivers/scsi/scsi_common.c sb_len : (sense_buffer[7] + 8); sb_len 172 drivers/scsi/scsi_common.c if (sb_len > 12) sb_len 174 drivers/scsi/scsi_common.c if (sb_len > 13) sb_len 196 drivers/scsi/scsi_common.c const u8 * scsi_sense_desc_find(const u8 * sense_buffer, int sb_len, sb_len 202 drivers/scsi/scsi_common.c if ((sb_len < 8) || (0 == (add_sen_len = sense_buffer[7]))) sb_len 206 drivers/scsi/scsi_common.c add_sen_len = (add_sen_len < (sb_len - 8)) ? sb_len 207 drivers/scsi/scsi_common.c add_sen_len : (sb_len - 8); sb_len 2441 drivers/scsi/scsi_error.c bool scsi_get_sense_info_fld(const u8 *sense_buffer, int sb_len, sb_len 2446 drivers/scsi/scsi_error.c if (sb_len < 7) sb_len 2458 drivers/scsi/scsi_error.c ucp = scsi_sense_desc_find(sense_buffer, sb_len, sb_len 579 drivers/scsi/sg.c int sb_len = SCSI_SENSE_BUFFERSIZE; sb_len 580 drivers/scsi/sg.c sb_len = (hp->mx_sb_len > sb_len) ? sb_len : hp->mx_sb_len; sb_len 582 drivers/scsi/sg.c len = (len > sb_len) ? sb_len : len; sb_len 62 include/scsi/scsi_common.h extern bool scsi_normalize_sense(const u8 *sense_buffer, int sb_len, sb_len 68 include/scsi/scsi_common.h extern const u8 * scsi_sense_desc_find(const u8 * sense_buffer, int sb_len, sb_len 27 include/scsi/scsi_eh.h extern bool scsi_get_sense_info_fld(const u8 *sense_buffer, int sb_len, sb_len 51 net/phonet/pep.c u8 sb_len; sb_len 56 net/phonet/pep.c if (ph == NULL || ph->sb_len < 2 || !pskb_may_pull(skb, ph->sb_len)) sb_len 58 net/phonet/pep.c ph->sb_len -= 2; sb_len 60 net/phonet/pep.c *plen = ph->sb_len; sb_len 62 net/phonet/pep.c if (buflen > ph->sb_len) sb_len 63 net/phonet/pep.c buflen = ph->sb_len; sb_len 65 net/phonet/pep.c __skb_pull(skb, 2 + ph->sb_len);