Home
last modified time | relevance | path

Searched refs:leadin (Results 1 – 9 of 9) sorted by relevance

/external/f2fs-tools/tools/sg_write_buffer/
Dsg_io_linux.c119 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 …]
Dsg_cmds_basic.c119 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 …]
Dsg_lib.c1827 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/
Dsg_lib.h241 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,
Dsg_io_linux.h148 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,
Dsg_cmds_basic.h296 int sg_cmds_process_resp(struct sg_pt_base * ptvp, const char * leadin,
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/
Dsg_err.h116 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);
Dsg_err.c1040 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 …]
Dscsimain.c432 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()