/external/f2fs-tools/tools/sg_write_buffer/ |
D | sg_io_linux.c | 119 sg_linux_sense_print(const char * leadin, int scsi_status, int host_status, in sg_linux_sense_print() argument 130 if (leadin) in sg_linux_sense_print() 131 pr2ws("%s: ", leadin); in sg_linux_sense_print() 144 if (leadin && (! done_leadin)) in sg_linux_sense_print() 145 pr2ws("%s: ", leadin); in sg_linux_sense_print() 157 if (leadin && (! done_leadin)) in sg_linux_sense_print() 158 pr2ws("%s: ", leadin); in sg_linux_sense_print() 187 sg_chk_n_print3(const char * leadin, struct sg_io_hdr * hp, in sg_chk_n_print3() argument 190 return sg_linux_sense_print(leadin, hp->status, hp->host_status, in sg_chk_n_print3() 199 sg_chk_n_print(const char * leadin, int masked_status, int host_status, in sg_chk_n_print() argument [all …]
|
D | sg_cmds_basic.c | 119 sg_cmds_process_helper(const char * leadin, int mx_di_len, int resid, in sg_cmds_process_helper() argument 157 if (leadin && (strlen(leadin) > 0)) in sg_cmds_process_helper() 158 pr2ws("%s:\n", leadin); in sg_cmds_process_helper() 186 sg_cmds_process_resp(struct sg_pt_base * ptvp, const char * leadin, in sg_cmds_process_resp() argument 194 if (NULL == leadin) in sg_cmds_process_resp() 195 leadin = ""; in sg_cmds_process_resp() 199 pr2ws("%s: %s os error: %s\n", leadin, pass_through_s, in sg_cmds_process_resp() 207 pr2ws("%s: %s os error: %s\n", leadin, pass_through_s, in sg_cmds_process_resp() 211 pr2ws("%s: %s os error: %s\n", leadin, pass_through_s, in sg_cmds_process_resp() 216 pr2ws("%s: bad %s setup\n", leadin, pass_through_s); in sg_cmds_process_resp() [all …]
|
D | sg_lib.c | 1827 sg_print_sense(const char * leadin, const unsigned char * sbp, int sb_len, in sg_print_sense() argument 1837 sg_get_sense_str(leadin, sbp, sb_len, raw_sinfo, pg_sz, cp); in sg_print_sense() 1849 sg_if_can2stderr(const char * leadin, int exit_status) in sg_if_can2stderr() argument 1851 const char * s = leadin ? leadin : ""; in sg_if_can2stderr() 2793 dStrHexStr(const char * str, int len, const char * leadin, int format, in dStrHexStr() argument 2815 if (leadin) { in dStrHexStr() 2816 bpstart = strlen(leadin); in dStrHexStr() 2828 memcpy(buff, leadin, bpstart); in dStrHexStr() 2851 memcpy(buff, leadin, bpstart); in dStrHexStr() 2879 hex2str(const uint8_t * b_str, int len, const char * leadin, int format, in hex2str() argument [all …]
|
/external/f2fs-tools/tools/sg_write_buffer/include/ |
D | sg_lib.h | 241 int sg_get_sense_str(const char * leadin, const unsigned char * sense_buffer, 248 int sg_get_sense_descriptors_str(const char * leadin, 257 int sg_get_designation_descriptor_str(const char * leadin, 280 char * sg_decode_transportid_str(const char * leadin, unsigned char * bp, 357 void sg_print_sense(const char * leadin, const unsigned char * sense_buffer, 366 bool sg_if_can2stderr(const char * leadin, int exit_status); 491 int dStrHexStr(const char * str, int len, const char * leadin, int format, 500 int hex2str(const uint8_t * b_str, int len, const char * leadin, int format,
|
D | sg_io_linux.h | 148 int sg_chk_n_print(const char * leadin, int masked_status, int host_status, 157 int sg_chk_n_print3(const char * leadin, struct sg_io_hdr * hp,
|
D | sg_cmds_basic.h | 296 int sg_cmds_process_resp(struct sg_pt_base * ptvp, const char * leadin,
|
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/ |
D | sg_err.h | 116 extern void sg_print_sense(const char * leadin, 125 extern int sg_chk_n_print(const char * leadin, int masked_status, 132 extern int sg_chk_n_print3(const char * leadin, struct sg_io_hdr * hp);
|
D | sg_err.c | 1040 void sg_print_sense(const char *leadin, const unsigned char *sense_buffer, in sg_print_sense() argument 1055 if (leadin) in sg_print_sense() 1056 fprintf(OUTP, "%s: ", leadin); in sg_print_sense() 1147 if (leadin) in sg_print_sense() 1148 fprintf(OUTP, "%s: ", leadin); in sg_print_sense() 1225 static int sg_sense_print(const char *leadin, int scsi_status, in sg_sense_print() argument 1236 if (leadin) in sg_sense_print() 1237 fprintf(OUTP, "%s: ", leadin); in sg_sense_print() 1250 if (leadin && (!done_leadin)) in sg_sense_print() 1251 fprintf(OUTP, "%s: ", leadin); in sg_sense_print() [all …]
|
D | scsimain.c | 432 static void scan_dev_type(const char *leadin, int max_dev, int do_numeric, 611 void make_dev_name(char *fname, const char *leadin, int k, int do_numeric) in make_dev_name() argument 616 strcpy(fname, leadin ? leadin : "/dev/sg"); in make_dev_name() 3266 static void scan_dev_type(const char *leadin, int max_dev, int do_numeric, in scan_dev_type() argument 3293 make_dev_name(fname, leadin, k, do_numeric); in scan_dev_type()
|