/external/f2fs-tools/tools/sg_write_buffer/ |
D | sg_io_linux.c | 121 int sb_len, bool raw_sinfo) in sg_linux_sense_print() argument 139 sg_print_sense(0, sense_buffer, sb_len, raw_sinfo); in sg_linux_sense_print() 165 sg_print_sense(0, sense_buffer, sb_len, raw_sinfo); in sg_linux_sense_print() 201 int sb_len, bool raw_sinfo) in sg_chk_n_print() argument 206 driver_status, sense_buffer, sb_len, in sg_chk_n_print() 221 const unsigned char * sense_buffer, int sb_len) in sg_err_category() argument 226 sense_buffer, sb_len); in sg_err_category() 231 const unsigned char * sense_buffer, int sb_len) in sg_err_category_new() argument 242 return sg_err_category_sense(sense_buffer, sb_len); in sg_err_category_new()
|
D | sg_lib.c | 216 sg_get_sense_key(const unsigned char * sbp, int sb_len) in sg_get_sense_key() argument 218 if ((NULL == sbp) || (sb_len < 2)) in sg_get_sense_key() 223 return (sb_len < 3) ? -1 : (sbp[2] & 0xf); in sg_get_sense_key() 299 sg_scsi_sense_desc_find(const unsigned char * sbp, int sb_len, in sg_scsi_sense_desc_find() argument 305 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() 327 sg_get_sense_info_fld(const unsigned char * sbp, int sb_len, in sg_get_sense_info_fld() argument 335 if (sb_len < 7) in sg_get_sense_info_fld() 345 bp = sg_scsi_sense_desc_find(sbp, sb_len, 0 /* info desc */); in sg_get_sense_info_fld() 364 sg_get_sense_cmd_spec_fld(const unsigned char * sbp, int sb_len, in sg_get_sense_cmd_spec_fld() argument [all …]
|
D | sg_cmds_extra.c | 1177 has_blk_ili(unsigned char * sensep, int sb_len) in has_blk_ili() argument 1182 if (sb_len < 8) in has_blk_ili() 1187 if ((cup = sg_scsi_sense_desc_find(sensep, sb_len, 0x5))) in has_blk_ili()
|
/external/f2fs-tools/tools/sg_write_buffer/include/ |
D | sg_lib.h | 206 bool sg_get_sense_info_fld(const unsigned char * sensep, int sb_len, 214 bool sg_get_sense_cmd_spec_fld(const unsigned char * sensep, int sb_len, 221 bool sg_get_sense_filemark_eom_ili(const unsigned char * sensep, int sb_len, 231 bool sg_get_sense_progress_fld(const unsigned char * sensep, int sb_len, 242 int sb_len, bool raw_sinfo, int buff_len, char * buff); 250 int sb_len, int blen, char * b); 358 int sb_len, bool raw_info); 426 int sg_err_category_sense(const unsigned char * sense_buffer, int sb_len);
|
D | sg_io_linux.h | 150 int sb_len, bool raw_sinfo); 167 const unsigned char * sense_buffer, int sb_len); 170 const unsigned char * sense_buffer, int sb_len);
|
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/ |
D | sg_err.h | 117 const unsigned char * sense_buffer, int sb_len); 127 const unsigned char * sense_buffer, int sb_len); 146 int sb_len); 150 int sb_len);
|
D | sg_err.c | 1041 int sb_len) in sg_print_sense() argument 1048 if (sb_len < 1) { in sg_print_sense() 1060 if (s > sb_len) { in sg_print_sense() 1063 "truncated\n", sb_len, s - sb_len); in sg_print_sense() 1064 s = sb_len; in sg_print_sense() 1142 if (sb_len < 4) { in sg_print_sense() 1227 const unsigned char *sense_buffer, int sb_len) in sg_sense_print() argument 1245 sg_print_sense(0, sense_buffer, sb_len); in sg_sense_print() 1270 sg_print_sense(0, sense_buffer, sb_len); in sg_sense_print() 1285 const unsigned char *sense_buffer, int sb_len) in sg_chk_n_print() argument [all …]
|