Searched refs:add_sb_len (Results 1 – 1 of 1) sorted by relevance
302 int add_sb_len, add_d_len, desc_len, k; in sg_scsi_sense_desc_find() local305 if ((sb_len < 8) || (0 == (add_sb_len = sbp[7]))) in sg_scsi_sense_desc_find()309 add_sb_len = (add_sb_len < (sb_len - 8)) ? add_sb_len : (sb_len - 8); in sg_scsi_sense_desc_find()311 for (desc_len = 0, k = 0; k < add_sb_len; k += desc_len) { in sg_scsi_sense_desc_find()313 add_d_len = (k < (add_sb_len - 1)) ? descp[1]: -1; in sg_scsi_sense_desc_find()1286 int add_sb_len, add_d_len, desc_len, k, j, sense_key; in sg_get_sense_descriptors_str() local1302 if ((sb_len < 8) || (0 == (add_sb_len = sbp[7]))) in sg_get_sense_descriptors_str()1304 add_sb_len = (add_sb_len < (sb_len - 8)) ? add_sb_len : (sb_len - 8); in sg_get_sense_descriptors_str()1308 (k < add_sb_len) && (n < blen); in sg_get_sense_descriptors_str()1310 add_d_len = (k < (add_sb_len - 1)) ? descp[1] : -1; in sg_get_sense_descriptors_str()[all …]